Beispiel #1
0
 //this interacts with character
 public void interact(CharacterEntity character, Direction direction)
 {
     character.affectHealth(this.doDamage());
     animateInteraction(direction);
 }
Beispiel #2
0
 public CharacterEntity(CharacterEntity character)
     : this(character.imgPath, character.x, character.y, character.hp, character.minDp, character.maxDp)
 {
 }