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