Package wizardquest.abilities
Class ThunderDamageResistanceUpgrade
java.lang.Object
wizardquest.abilities.UpgradeBase
wizardquest.abilities.ThunderDamageResistanceUpgrade
- All Implemented Interfaces:
EntityInterface,PlayerInterface
-
Field Summary
Fields inherited from class wizardquest.abilities.UpgradeBase
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList the upgrades that have been purchased between encounters by the player.voidloseHealth(int amount, DamageEnum type) Decrements an entity's health by a given amount, as a result of a certain damage type being inflicted upon them.Methods inherited from class wizardquest.abilities.UpgradeBase
calcDamage, gainCoins, gainMagic, getAbilities, getCoins, getHealth, getLives, getMagic, getMagicRegenRate, getMaxHealth, getMaxMagic, getType, loseCoins, loseLives, loseMagic, resetHealth, resetMagic
-
Constructor Details
-
ThunderDamageResistanceUpgrade
-
-
Method Details
-
loseHealth
Description copied from interface:EntityInterfaceDecrements an entity's health by a given amount, as a result of a certain damage type being inflicted upon them.- Specified by:
loseHealthin interfaceEntityInterface- Overrides:
loseHealthin classUpgradeBase- Parameters:
amount- the total health that the entity will lose.type- the inflicted damage type that has caused this health loss.
-
getUpgrades
Description copied from interface:PlayerInterfaceList the upgrades that have been purchased between encounters by the player.- Specified by:
getUpgradesin interfacePlayerInterface- Overrides:
getUpgradesin classUpgradeBase- Returns:
- a list of purchased upgrades.
-