Interface DamageDealingEntity

All Superinterfaces:
Entity
All Known Implementing Classes:
HostileOrganism, SquadMember, Turret

public interface DamageDealingEntity extends Entity
An Entity that can attack a DamageableEntity within range.
  • Method Details

    • calcAttackDamage

      int calcAttackDamage()
      Returns:
      the damage dealt per attack
    • calcMaxAttackRange

      int calcMaxAttackRange()
      Returns:
      the maximum Chebyshev distance at which this entity can attack a target
    • attack

      void attack(DamageableEntity target)
      Attacks target, applying this entity's attack damage to it.
      Parameters:
      target - the entity to attack; expected to be within calcMaxAttackRange()