Enum Class Movement

Object
Enum<Movement>
Movement
All Implemented Interfaces:
Serializable, Comparable<Movement>, Constable

public enum Movement extends Enum<Movement>
Indicates how tired you are. Indicates the manner of movement possible.
Author:
maartenl
  • Enum Constant Details

    • FULLY_EXHAUSTED

      public static final Movement FULLY_EXHAUSTED
    • ALMOST_EXHAUSTED

      public static final Movement ALMOST_EXHAUSTED
    • VERY_TIRED

      public static final Movement VERY_TIRED
    • SLIGHTLY_TIRED

      public static final Movement SLIGHTLY_TIRED
    • SLIGHTLY_FATIGUED

      public static final Movement SLIGHTLY_FATIGUED
    • NOT_TIRED_AT_ALL

      public static final Movement NOT_TIRED_AT_ALL
  • Method Details

    • values

      public static Movement[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Movement valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • min

      public static Integer min()
    • max

      public static Integer max()
    • getMovement

      public static Movement getMovement(Integer movement)
      Returns the movement of the character. Must be a number between 0 and 5999, where 0..999 is FULLY_EXHAUSTED and 5999 is NOT_TIRED_AT_ALL.
      Returns:
      Movement enum.
    • getDescription

      public String getDescription()
      Returns the description of this enum.
      Returns:
      for example "not tired at all"
    • getOrdinalValue

      public int getOrdinalValue()
      Returns the integer indicating the movement.
      Returns:
      integer