Package com.mg105.interface_adapters.map
Enum Class RoomTileType
- All Implemented Interfaces:
Serializable
,Comparable<RoomTileType>
,Constable
Types of tiles that can appear within a room.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA treasure chestA treasure chest that has been openedA doorwayEmpty floor that can be walked onA potential battleWall that cannot be walked on.A wall where you can see the side -
Method Summary
Modifier and TypeMethodDescriptionstatic RoomTileType
Returns the enum constant of this class with the specified name.static RoomTileType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLOOR
Empty floor that can be walked on -
WALL
Wall that cannot be walked on. Mainly used for the border -
WALL_WITH_FACE
A wall where you can see the side -
EXIT
A doorway -
CHEST
A treasure chest -
CHEST_OPEN
A treasure chest that has been opened -
OPPONENT_SET
A potential battle
-
-
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
-