mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 09:13:27 +00:00
Added some creatures.
This commit is contained in:
1 parent
6f55b917ce
commit
35e3d833cb
3 files changed
+24
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class KillerBee extends AbstractCreature {
|
||||
|
||||
public KillerBee() {
|
||||
super("KillerBee", Size.SMALL, Movement.FLYING, Color.LIGHT);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class Shark extends AbstractCreature {
|
||||
|
||||
public Shark() {
|
||||
super("Shark", Size.NORMAL, Movement.SWIMMING, Color.LIGHT);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class Troll extends AbstractCreature {
|
||||
|
||||
public Troll() {
|
||||
super("Troll", Size.LARGE, Movement.WALKING, Color.DARK);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user