Enum GameLevel.Mode
- All Implemented Interfaces:
Comparable<GameLevel.Mode>
- Enclosing class:
GameLevel
The kind of a level, which decides how its elements are realized and rendered. Each
constant carries its JSON wire token (
#wireName()) and a display #label().-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic GameLevel.ModeThe mode for a JSON wire token (case-insensitive); defaults to#TWO_Dfor an unknown or missing token, so an older or hand-edited file still loads.label()A human-readable label for menus ("2D"/"3D"/"Board").static GameLevel.ModeReturns the enum constant of this type with the specified name.static GameLevel.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.wireName()The lowercase token this mode is written as in the.gameJSON ("2d"/"3d"/"board").Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
TWO_D
Orthographic 2D: tile layers + sprites in pixel space. -
THREE_D
Perspective 3D: meshes, terrain and lights in a world. -
BOARD
Isometric board: sprites placed through anIsoProjection.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
wireName
The lowercase token this mode is written as in the.gameJSON ("2d"/"3d"/"board"). -
label
A human-readable label for menus ("2D"/"3D"/"Board"). -
fromWire
The mode for a JSON wire token (case-insensitive); defaults to#TWO_Dfor an unknown or missing token, so an older or hand-edited file still loads.
-