java.lang.Object
java.lang.Enum<Hint>
ch.ladestation.connectncharge.model.game.gamelogic.Hint
All Implemented Interfaces:
Serializable, Comparable<Hint>, Constable

public enum Hint extends Enum<Hint>
  • Enum Constant Details

    • HINT_EMPTY_HINT

      public static final Hint HINT_EMPTY_HINT
    • HINT_NOT_ALL_NODES_CONNECTED

      public static final Hint HINT_NOT_ALL_NODES_CONNECTED
    • HINT_PICK_EDGE

      public static final Hint HINT_PICK_EDGE
    • HINT_REMOVE_EDGE

      public static final Hint HINT_REMOVE_EDGE
    • HINT_CYCLE

      public static final Hint HINT_CYCLE
    • HINT_SOLUTION_NOT_FOUND

      public static final Hint HINT_SOLUTION_NOT_FOUND
  • Method Details

    • values

      public static Hint[] 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 Hint 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
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)