Class FishMan

All Implemented Interfaces:
EntityInterface

public class FishMan extends EnemyBase
Fishman - is a water-based beginner-level enemy Uses water based techniques, and is water damage resistant Phase 1 enemy
  • Constructor Details

    • FishMan

      public FishMan(DifficultyEnum difficulty)
      Parameters:
      difficulty - defines the current game difficulty for this concrete enemy, used to scale health
  • Method Details

    • getAbilities

      public List<AbilityEnum> getAbilities()
      Description copied from interface: EntityInterface
      List the abilities that are currently usable by the entity.
      Specified by:
      getAbilities in interface EntityInterface
      Specified by:
      getAbilities in class EnemyBase
      Returns:
      a list of abilities.
    • getType

      public EntityEnum getType()
      Description copied from interface: EntityInterface
      Get the enumerated type of the entity.
      Returns:
      the entity type.
    • loseHealth

      public void loseHealth(int amount, DamageEnum type)
      Description copied from interface: EntityInterface
      Decrements an entity's health by a given amount, as a result of a certain damage type being inflicted upon them.
      Specified by:
      loseHealth in interface EntityInterface
      Overrides:
      loseHealth in class EnemyBase
      Parameters:
      amount - the total health that the entity will lose.
      type - the inflicted damage type that has caused this health loss.