Enum Class Alignment

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

public enum Alignment extends Enum<Alignment>
Indicates how drunk you are, or how thirsty.
Author:
maartenl
  • Enum Constant Details

    • EVIL

      public static final Alignment EVIL
    • BAD

      public static final Alignment BAD
    • MEAN

      public static final Alignment MEAN
    • UNTRUSTWORTHY

      public static final Alignment UNTRUSTWORTHY
    • NEUTRAL

      public static final Alignment NEUTRAL
    • TRUSTWORTHY

      public static final Alignment TRUSTWORTHY
    • KIND

      public static final Alignment KIND
    • AWFULLY_GOOD

      public static final Alignment AWFULLY_GOOD
    • GOOD

      public static final Alignment GOOD
  • Method Details

    • values

      public static Alignment[] 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 Alignment 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()
    • getAlignment

      public static Alignment getAlignment(Integer alignment)
      Returns the thirstiness of the character. Must be a number between -5999 and 5999, where -5999..-5000 is out of your skull on alcohol and 5000..5999 is no longer able to drink.
      Returns:
      Alignment enum.
      Throws:
      RuntimeException - if the movement is not allowed
      NullPointerException - if movement not provided
    • getDescription

      public String getDescription()
      Returns the description of this enum.
      Returns:
      for example "mean"
    • getOrdinalValue

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