public enum ECollectWareStrategyType extends Enum<ECollectWareStrategyType> implements ch.sahits.game.openpatrician.model.player.IAITradeStrategyType
| Enum Constant and Description |
|---|
CELEBRATION |
HOMETOWN_COG |
HOMETOWN_CRAYER |
HOMETOWN_HOLK |
HOMETOWN_SNAIKKA |
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private Class<? extends CollectionWaresStrategy> |
strategyClass |
| Modifier and Type | Method and Description |
|---|---|
ch.sahits.game.openpatrician.model.player.IAITradeStrategy |
getStrategy() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
static ECollectWareStrategyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECollectWareStrategyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECollectWareStrategyType HOMETOWN_SNAIKKA
public static final ECollectWareStrategyType HOMETOWN_CRAYER
public static final ECollectWareStrategyType HOMETOWN_COG
public static final ECollectWareStrategyType HOMETOWN_HOLK
public static final ECollectWareStrategyType CELEBRATION
private org.springframework.context.ApplicationContext context
private final Class<? extends CollectionWaresStrategy> strategyClass
public static ECollectWareStrategyType[] values()
for (ECollectWareStrategyType c : ECollectWareStrategyType.values()) System.out.println(c);
public static ECollectWareStrategyType 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 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic ch.sahits.game.openpatrician.model.player.IAITradeStrategy getStrategy()
getStrategy in interface ch.sahits.game.openpatrician.model.player.BaseStrategyType<ch.sahits.game.openpatrician.model.player.IAITradeStrategy>Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.