mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 08:14:13 +00:00
added command sample
This commit is contained in:
1 parent
f0e7f22266
commit
0785bccffb
11 files changed
+250
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class Goblin extends Target {
|
||||
|
||||
public Goblin() {
|
||||
this.setSize(Size.NORMAL);
|
||||
this.setVisibility(Visibility.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Goblin";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user