|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<UnitLocation.NoAddReason>
net.sf.freecol.common.model.UnitLocation.NoAddReason
public static enum UnitLocation.NoAddReason
| Enum Constant Summary | |
|---|---|
ALREADY_PRESENT
Unit is already in the location. |
|
ANOTHER_COLONY
Claimed and in use by another of our colonies. |
|
CAPACITY_EXCEEDED
Locatable can not be added because the Location is already full. |
|
CLAIM_REQUIRED
Either unclaimed or claimed but could be acquired. |
|
COLONY_CENTER
Can not add to settlement center tile. |
|
MISSING_ABILITY
Missing ability to work colony tile. |
|
MISSING_SKILL
Missing skill to work colony tile. |
|
NONE
No reason why Locatable can not be added. |
|
OCCUPIED_BY_ENEMY
Locatable can not be added because the Location is occupied by objects belonging to another player. |
|
OWNED_BY_ENEMY
Locatable can not be added because the Location belongs to another player and does not admit foreign objects. |
|
WRONG_TYPE
Locatable can not be added because it has the wrong type. |
|
| Method Summary | |
|---|---|
static UnitLocation.NoAddReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UnitLocation.NoAddReason[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UnitLocation.NoAddReason NONE
public static final UnitLocation.NoAddReason ALREADY_PRESENT
public static final UnitLocation.NoAddReason WRONG_TYPE
Building can not be added to a
Unit.
public static final UnitLocation.NoAddReason CAPACITY_EXCEEDED
public static final UnitLocation.NoAddReason OCCUPIED_BY_ENEMY
public static final UnitLocation.NoAddReason OWNED_BY_ENEMY
public static final UnitLocation.NoAddReason ANOTHER_COLONY
public static final UnitLocation.NoAddReason COLONY_CENTER
public static final UnitLocation.NoAddReason MISSING_ABILITY
public static final UnitLocation.NoAddReason MISSING_SKILL
public static final UnitLocation.NoAddReason CLAIM_REQUIRED
| Method Detail |
|---|
public static UnitLocation.NoAddReason[] values()
for (UnitLocation.NoAddReason c : UnitLocation.NoAddReason.values()) System.out.println(c);
public static UnitLocation.NoAddReason 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 name
java.lang.NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||