ch.sahits.game.openpatrician.model.player.BaseStrategyType<ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategy>, ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategyTypepublic enum EHireCaptainStrategyType extends java.lang.Enum<EHireCaptainStrategyType> implements ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategyType
| Enum Constant | Description |
|---|---|
HIRE_ALWAYS |
|
HIRE_FOR_SHIPS_ABOVE_300 |
|
HIRE_NEVER |
| Modifier and Type | Method | Description |
|---|---|---|
ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategy |
getStrategy() |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
|
static EHireCaptainStrategyType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static EHireCaptainStrategyType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EHireCaptainStrategyType HIRE_ALWAYS
public static final EHireCaptainStrategyType HIRE_NEVER
public static final EHireCaptainStrategyType HIRE_FOR_SHIPS_ABOVE_300
public static EHireCaptainStrategyType[] values()
for (EHireCaptainStrategyType c : EHireCaptainStrategyType.values()) System.out.println(c);
public static EHireCaptainStrategyType 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 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategy getStrategy()
getStrategy in interface ch.sahits.game.openpatrician.model.player.BaseStrategyType<ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategy>Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.