Class FireDamageResistanceUpgrade

java.lang.Object
wizardquest.abilities.UpgradeBase
wizardquest.abilities.FireDamageResistanceUpgrade
All Implemented Interfaces:
EntityInterface, PlayerInterface

public class FireDamageResistanceUpgrade extends UpgradeBase
  • Constructor Details

    • FireDamageResistanceUpgrade

      public FireDamageResistanceUpgrade(PlayerInterface player)
  • Method Details

    • 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 UpgradeBase
      Parameters:
      amount - the total health that the entity will lose.
      type - the inflicted damage type that has caused this health loss.
    • getUpgrades

      public List<UpgradeEnum> getUpgrades()
      Description copied from interface: PlayerInterface
      List the upgrades that have been purchased between encounters by the player.
      Specified by:
      getUpgrades in interface PlayerInterface
      Overrides:
      getUpgrades in class UpgradeBase
      Returns:
      a list of purchased upgrades.