Package rekit.persistence.level
Enum Class SettingKey
- All Implemented Interfaces:
Serializable
,Comparable<SettingKey>
,Constable
This enum defines all valid settings of a
LevelDefinition
.- Author:
- Dominik Fuchss
- See Also:
-
LevelDefinition.setSetting(SettingKey, String)
LevelDefinition.getSetting(SettingKey)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates whether coins shall automatically spawn (id=autoCoinSpawn).Indicates whether it is allowed to create gaps (only floor) sections between different structures (id=doGaps).The group of the level for arcade grouping (id=group).Indicates whether the level is infinite (does not end) (id=infinite).The name of the level (id=name).Indicates whether the structures can be shuffled (id=shuffle). -
Method Summary
Modifier and TypeMethodDescriptionstatic final SettingKey
getByString
(String id) Find SettingKey by id.toString()
static SettingKey
Returns the enum constant of this class with the specified name.static SettingKey[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAME
The name of the level (id=name). -
GROUP
The group of the level for arcade grouping (id=group). -
AUTO_COIN_SPAWN
Indicates whether coins shall automatically spawn (id=autoCoinSpawn). -
INFINITE
Indicates whether the level is infinite (does not end) (id=infinite). -
SHUFFLE
Indicates whether the structures can be shuffled (id=shuffle). -
DO_GAPS
Indicates whether it is allowed to create gaps (only floor) sections between different structures (id=doGaps).
-
-
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
-
getByString
Find SettingKey by id.- Parameters:
id
- the id- Returns:
- the key or
null
if not found
-
toString
- Overrides:
toString
in classEnum<SettingKey>
-