예제 #1
0
 public int getHealth()
 {
     if (hp != 0 || parent == null)
     {
         return(hp);
     }
     return(parent.getHealth());
 }
예제 #2
0
 public Enemy(Breed breed)
 {
     health = breed.getHealth();
     b      = breed;
 }