Enum Class TradeState

java.lang.Object
java.lang.Enum<TradeState>
games.stendhal.common.TradeState
All Implemented Interfaces:
Serializable, Comparable<TradeState>, Constable

public enum TradeState extends Enum<TradeState>
the state of the trading.
  • Enum Constant Details

    • NO_ACTIVE_TRADE

      public static final TradeState NO_ACTIVE_TRADE
      there is no active trade at the moment
    • OFFERING_TRADE

      public static final TradeState OFFERING_TRADE
      Offering to begin a trade
    • MAKING_OFFERS

      public static final TradeState MAKING_OFFERS
      making offers in an active trade
    • LOCKED

      public static final TradeState LOCKED
      i completed my offer, waiting for the other party to confirm
    • DEAL_WAITING_FOR_OTHER_DEAL

      public static final TradeState DEAL_WAITING_FOR_OTHER_DEAL
      waiting for the other player to click deal.
    • TRADE_COMPLETED

      public static final TradeState TRADE_COMPLETED
      a trade was accpeted and completed
  • Method Details

    • values

      public static TradeState[] 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 TradeState 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