Package games.stendhal.common
Enum Class TradeState
- All Implemented Interfaces:
Serializable
,Comparable<TradeState>
,Constable
the state of the trading.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionwaiting for the other player to click deal.i completed my offer, waiting for the other party to confirmmaking offers in an active tradethere is no active trade at the momentOffering to begin a tradea trade was accpeted and completed -
Method Summary
Modifier and TypeMethodDescriptionstatic TradeState
Returns the enum constant of this class with the specified name.static TradeState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_ACTIVE_TRADE
there is no active trade at the moment -
OFFERING_TRADE
Offering to begin a trade -
MAKING_OFFERS
making offers in an active trade -
LOCKED
i completed my offer, waiting for the other party to confirm -
DEAL_WAITING_FOR_OTHER_DEAL
waiting for the other player to click deal. -
TRADE_COMPLETED
a trade was accpeted and completed
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-