Package main.forneymon.species
Class Dampymon
- java.lang.Object
-
- main.forneymon.species.Forneymon
-
- main.forneymon.species.Dampymon
-
- All Implemented Interfaces:
MinForneymon
public class Dampymon extends Forneymon
Water-pale Forneymon that takes bonus BURNY damage.
-
-
Field Summary
Fields Modifier and Type Field Description static intDMG_MODIFIERstatic DamageTypeDTstatic intSTART_HEALTH
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dampymonclone()Creates a copy of this ForneymoninttakeDamage(int dmg, DamageType type)Reduces the Forneymon's health by the amount specified, with the potential for bonuses / penalties based on the damage type-
Methods inherited from class main.forneymon.species.Forneymon
equals, getDamageType, getHealth, getLevel, getSpecies, hashCode, toString
-
-
-
-
Field Detail
-
START_HEALTH
public static final int START_HEALTH
- See Also:
- Constant Field Values
-
DMG_MODIFIER
public static final int DMG_MODIFIER
- See Also:
- Constant Field Values
-
DT
public static final DamageType DT
-
-
Constructor Detail
-
Dampymon
public Dampymon(int level)
Creates a new Forneymon of this species with the given level- Parameters:
level- Level in which to initialize this Forneymon
-
Dampymon
public Dampymon(Dampymon toCopy)
Copy constructor for Dampymon that creates a deep-copy of the given other toCopy- Parameters:
toCopy- The other to copy from
-
-
Method Detail
-
takeDamage
public int takeDamage(int dmg, DamageType type)Description copied from class:ForneymonReduces the Forneymon's health by the amount specified, with the potential for bonuses / penalties based on the damage type- Specified by:
takeDamagein interfaceMinForneymon- Overrides:
takeDamagein classForneymon- Parameters:
dmg- Amount of damage takentype- Damage Type of the damage taken- Returns:
- This Forneymon's health remaining
- See Also:
Dampymon take bonus BURNY damage
-
-