Consolidate zombie prototyping
This commit is contained in:
parent
56708e907a
commit
f262f9a627
@ -7,18 +7,14 @@ public class Zombie : Mob {
|
||||
|
||||
this() {
|
||||
super();
|
||||
writeln("I am creating a zombie object");
|
||||
writeln("My UUID is: ", this.getUUID());
|
||||
}
|
||||
|
||||
void scream() {
|
||||
writeln("I am at health: ", this.getHealth());
|
||||
// writeln("I am creating a zombie object");
|
||||
// writeln("My UUID is: ", this.getUUID());
|
||||
}
|
||||
|
||||
|
||||
override void onSpawn() {
|
||||
this.setHealth(10);
|
||||
this.scream();
|
||||
writeln("I am at health: ", this.getHealth());
|
||||
}
|
||||
|
||||
override void onTick(double delta) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user