Enum Class EntrySide

java.lang.Object
java.lang.Enum<EntrySide>
net.sf.colossus.game.EntrySide
All Implemented Interfaces:
Serializable, Comparable<EntrySide>, Constable

public enum EntrySide extends Enum<EntrySide>
The entry side for a battle.
  • Enum Constant Details

    • TOP_DEFENSE

      public static final EntrySide TOP_DEFENSE
    • RIGHT_DEFENSE

      public static final EntrySide RIGHT_DEFENSE
    • BOTTOM

      public static final EntrySide BOTTOM
    • LEFT_DEFENSE

      public static final EntrySide LEFT_DEFENSE
    • LEFT

      public static final EntrySide LEFT
    • NOT_SET

      public static final EntrySide NOT_SET
  • Field Details

    • label

      private final String label
  • Constructor Details

    • EntrySide

      private EntrySide(String label)
  • Method Details

    • values

      public static EntrySide[] 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 EntrySide 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
    • getLabel

      public String getLabel()
    • isAttackerSide

      public boolean isAttackerSide()
    • getOpposingSide

      public EntrySide getOpposingSide()
    • fromLabel

      public static EntrySide fromLabel(String label)