Class Dice

All Implemented Interfaces:
EquipListener, TurnListener, UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class Dice extends Item
  • Constructor Details

    • Dice

      public Dice(Map<String,​String> attributes)
    • Dice

      public Dice()
    • Dice

      public Dice(Dice item)
      copy constructor.
      Parameters:
      item - item to copy
  • Method Details

    • setCroupierNPC

      public void setCroupierNPC(CroupierNPC croupierNPC)
    • getSum

      public int getSum()
      Get the sum of the thrown dice.
      Returns:
      sum of the set of dices
    • onPutOnGround

      public void onPutOnGround(Player player)
      Description copied from class: Item
      Is called when the item is moved to the ground.
      Overrides:
      onPutOnGround in class Item
      Parameters:
      player - the player who drops the Item.
    • describe

      public String describe()
      Description copied from class: Entity
      Describes the entity (if a players looks at it).
      Overrides:
      describe in class Item
      Returns:
      description from the players point of view