Package net.jcm.vsch.config
Enum Class ShipLandingMode
- All Implemented Interfaces:
Serializable,Comparable<ShipLandingMode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen a ship is near a planet with a player,will be usedWhen a ship is near a planet and there is no player nearby,will be usedWhen a ship is near a planet, the history launch position will be used for the ship to land.Always use the player menu to make ship land on a planet. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic ShipLandingModeReturns the enum constant of this class with the specified name.static ShipLandingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER_MENU
Always use the player menu to make ship land on a planet. A ship without player nearby will not land and may get freezed in the space untill a player appear and lands it. -
HISTORY
When a ship is near a planet, the history launch position will be used for the ship to land. If no history is present, the ship will land at the origin. -
AUTO_HISTORY
When a ship is near a planet with a player,will be usedWhen a ship is near a planet and there is no player nearby,will be used
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
canOpenMenu
public boolean canOpenMenu() -
canUseHistory
public boolean canUseHistory()
-