public enum ETradeReason extends java.lang.Enum<ETradeReason>
| Enum Constant | Description |
|---|---|
PRODUCED_WARE_IN_CITY |
Ware is produced in the city
|
PRODUCED_WARE_IN_WORKSHOP |
Ware is produced in players workshop
|
REQUIRE_FOR_BASIC_NEEDS |
Ware is required to cover basic needs in city
|
REQUIRE_FOR_CITY_PRODUCTION |
Ware is required for production in the city
|
REQUIRE_FOR_PRODUCTION |
Ware is required for production in players workshops
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Comparator<ETradeReason> |
comparator() |
|
boolean |
isBuyReason() |
Is the reason a buy reason.
|
static ETradeReason |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ETradeReason[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ETradeReason REQUIRE_FOR_PRODUCTION
public static final ETradeReason REQUIRE_FOR_BASIC_NEEDS
public static final ETradeReason PRODUCED_WARE_IN_WORKSHOP
public static final ETradeReason PRODUCED_WARE_IN_CITY
public static final ETradeReason REQUIRE_FOR_CITY_PRODUCTION
public static ETradeReason[] values()
for (ETradeReason c : ETradeReason.values()) System.out.println(c);
public static ETradeReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isBuyReason()
public static java.util.Comparator<ETradeReason> comparator()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.