Interface Attributes
public interface Attributes
Basic "attributes" or stats used throughout the game. Anything that utilizes the states (MobileObjects, Buffs, etc)
should implement this interface, so the various stats can be applied. For this version of the game,
the stats are
- armor (AC)
- max Health (Hit Points / HP)
- damage die used in attacks
- hit modifier - modifier to roll to hit
-
Method Summary
-
Method Details
-
getArmor
int getArmor()Gets the armor attribute value, often between 8-20 for a D20 system, but not fixed. Also called "armor class/AC".- Returns:
- whole number value of the armor stat
-
getMaxHP
int getMaxHP()Gets the maximum hit points attribute. While HP can go over max, they should always be reset to maxHP. Essentially maxHP is fixed, and remaining HP is modified either up or down and calculated when needed.- Returns:
- whole number value of the HP
-
getDamageDie
DiceType getDamageDie()Gets the Damage Die Type.- Returns:
- a DiceType often ranging from D4-D12
- See Also:
-
getHitModifier
int getHitModifier()A whole number of any int value to apply when making 'hit roles'.- Returns:
- whole number value of the modifier
-