public enum ETradeReason extends Enum<ETradeReason>
| Enum Constant and 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 | Field and Description |
|---|---|
private boolean |
buyReason |
private int |
prio |
| Modifier and Type | Method and Description |
|---|---|
static Comparator<ETradeReason> |
comparator() |
boolean |
isBuyReason()
Is the reason a buy reason.
|
static ETradeReason |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isBuyReason()
public static Comparator<ETradeReason> comparator()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.