|
RuneHive-Game
|
The group of an object, which indicates its general class (e.g. More...
Public Member Functions | |
| int | getValue () |
| Gets the value of this ObjectGroup. | |
| ObjectGroup (int value) | |
| Creates the ObjectGroup. | |
Static Public Member Functions | |
| static Optional< ObjectGroup > | valueOf (int value) |
| Attempts to find the ObjectGroup with the specified integer value. | |
Public Attributes | |
| GROUND_DECORATION =(3) | |
| The ground decoration object group, which may block a tile. | |
| INTERACTABLE_OBJECT =(2) | |
| The interactable object group, for objects that can be clicked and interacted with. | |
| ROOFING =(4) | |
| The roof parts that disappear on a camera angle. | |
| WALL =(0) | |
| The wall object group, which may block a tile. | |
| WALL_DECORATION =(1) | |
| The wall decoration object group, which never blocks a tile. | |
Private Attributes | |
| final int | value |
| The integer value of the group. | |
The group of an object, which indicates its general class (e.g.
if it's a wall, or a floor decoration).
Definition at line 14 of file ObjectGroup.java.
| com.runehive.game.world.object.ObjectGroup.ObjectGroup | ( | int | value | ) |
Creates the ObjectGroup.
| value | The integer value of the group. Must be unique. |
Definition at line 53 of file ObjectGroup.java.
References value.
| int com.runehive.game.world.object.ObjectGroup.getValue | ( | ) |
Gets the value of this ObjectGroup.
Definition at line 62 of file ObjectGroup.java.
References value.
|
static |
Attempts to find the ObjectGroup with the specified integer value.
| value | The integer value of the ObjectGroup. |
Optional possibly containing the ObjectGroup, if found. Definition at line 41 of file ObjectGroup.java.
References value.
| com.runehive.game.world.object.ObjectGroup.GROUND_DECORATION =(3) |
The ground decoration object group, which may block a tile.
Definition at line 29 of file ObjectGroup.java.
| com.runehive.game.world.object.ObjectGroup.INTERACTABLE_OBJECT =(2) |
The interactable object group, for objects that can be clicked and interacted with.
Definition at line 26 of file ObjectGroup.java.
| com.runehive.game.world.object.ObjectGroup.ROOFING =(4) |
The roof parts that disappear on a camera angle.
Definition at line 32 of file ObjectGroup.java.
|
private |
The integer value of the group.
Definition at line 46 of file ObjectGroup.java.
Referenced by getValue(), ObjectGroup(), and valueOf().
| com.runehive.game.world.object.ObjectGroup.WALL =(0) |
The wall object group, which may block a tile.
Definition at line 17 of file ObjectGroup.java.
| com.runehive.game.world.object.ObjectGroup.WALL_DECORATION =(1) |
The wall decoration object group, which never blocks a tile.
Definition at line 20 of file ObjectGroup.java.