public enum EAIRepairStrategy extends Enum<EAIRepairStrategy> implements ch.sahits.game.openpatrician.model.player.IAIShipRepairStrategyType
| Enum Constant and Description |
|---|
EIGHTY_PERCENT |
ONLY_HOMEWOTN |
ONLY_KONTOR_TYPE |
ONLY_TRADINGOFFICE |
ONLY_WEST |
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private Class<? extends ch.sahits.game.openpatrician.model.player.IAIShipRepairStrategy> |
strategyClass |
| Modifier and Type | Method and Description |
|---|---|
ch.sahits.game.openpatrician.model.player.IAIShipRepairStrategy |
getStrategy() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
static EAIRepairStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EAIRepairStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EAIRepairStrategy EIGHTY_PERCENT
public static final EAIRepairStrategy ONLY_HOMEWOTN
public static final EAIRepairStrategy ONLY_WEST
public static final EAIRepairStrategy ONLY_TRADINGOFFICE
public static final EAIRepairStrategy ONLY_KONTOR_TYPE
private org.springframework.context.ApplicationContext context
private final Class<? extends ch.sahits.game.openpatrician.model.player.IAIShipRepairStrategy> strategyClass
public static EAIRepairStrategy[] values()
for (EAIRepairStrategy c : EAIRepairStrategy.values()) System.out.println(c);
public static EAIRepairStrategy 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.IAIShipRepairStrategy getStrategy()
getStrategy in interface ch.sahits.game.openpatrician.model.player.IAIShipRepairStrategyTypeCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.