Interface Attributes

All Known Implementing Classes:
Fortune, Knight, MOB

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
If you are curious about why these are called attributes or statistics, it is common in roleplaying games.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the armor attribute value, often between 8-20 for a D20 system, but not fixed.
    Gets the Damage Die Type.
    int
    A whole number of any int value to apply when making 'hit roles'.
    int
    Gets the maximum hit points attribute.
  • 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