|
RuneHive-Game
|
The enumerated type whose elements represent the directions for objects. More...
Public Member Functions | |
| final int | getId () |
| Gets the identification of this direction. | |
| ObjectDirection (int id) | |
Creates a new ObjectDirection. | |
Static Public Member Functions | |
| [static initializer] | |
| static Optional< ObjectDirection > | valueOf (final int id) |
Returns a ObjectDirection wrapped in an Optional for the specified id. | |
Public Attributes | |
| EAST =(2) | |
| The east orientation. | |
| NORTH =(1) | |
| The north orientation. | |
| SOUTH =(3) | |
| The south orientation. | |
| WEST =(0) | |
| The west orientation. | |
Private Attributes | |
| final int | id |
| The identification of this direction. | |
Static Private Attributes | |
| static final Int2ObjectMap< ObjectDirection > | idToDirection = new Int2ObjectOpenHashMap<>(values.length) |
A mutable Map of int keys to ObjectDirection values. | |
| static final ObjectDirection[] | values = values() |
The enumerated type whose elements represent the directions for objects.
Definition at line 15 of file ObjectDirection.java.
| com.runehive.game.world.object.ObjectDirection.ObjectDirection | ( | int | id | ) |
Creates a new ObjectDirection.
Definition at line 45 of file ObjectDirection.java.
References id.
Referenced by [static initializer]().
|
static |
| final int com.runehive.game.world.object.ObjectDirection.getId | ( | ) |
Gets the identification of this direction.
Definition at line 54 of file ObjectDirection.java.
References id.
|
static |
Returns a ObjectDirection wrapped in an Optional for the specified id.
| id | The game object orientation id. |
Definition at line 80 of file ObjectDirection.java.
References idToDirection.
Referenced by com.runehive.content.skill.impl.hunter.birdhouse.action.FillBirdhouse.execute(), com.runehive.game.world.entity.mob.player.Player.loadRegion(), com.runehive.util.parser.impl.GlobalObjectParser.parse(), com.runehive.fs.cache.decoder.RegionDecoder.parseGameObject(), and com.runehive.content.skill.impl.hunter.birdhouse.Birdhouses.receiveLoot().
| com.runehive.game.world.object.ObjectDirection.EAST =(2) |
The east orientation.
Definition at line 30 of file ObjectDirection.java.
Referenced by com.runehive.game.world.pathfinding.TraversalMap.markWall(), com.runehive.content.skill.impl.construction.House.toolkit(), and com.runehive.game.world.pathfinding.TraversalMap.unmarkWall().
|
private |
The identification of this direction.
Definition at line 40 of file ObjectDirection.java.
Referenced by getId(), and ObjectDirection().
|
staticprivate |
A mutable Map of int keys to ObjectDirection values.
Definition at line 64 of file ObjectDirection.java.
Referenced by [static initializer](), and valueOf().
| com.runehive.game.world.object.ObjectDirection.NORTH =(1) |
The north orientation.
Definition at line 20 of file ObjectDirection.java.
Referenced by com.runehive.game.world.pathfinding.TraversalMap.markObject(), com.runehive.game.world.pathfinding.TraversalMap.markWall(), com.runehive.content.skill.impl.construction.House.toolkit(), and com.runehive.game.world.pathfinding.TraversalMap.unmarkWall().
| com.runehive.game.world.object.ObjectDirection.SOUTH =(3) |
The south orientation.
Definition at line 25 of file ObjectDirection.java.
Referenced by com.runehive.content.skill.impl.agility.obstacle.impl.WildernessDoorInteraction.canExecute(), com.runehive.game.world.pathfinding.TraversalMap.markObject(), com.runehive.game.world.pathfinding.TraversalMap.markWall(), com.runehive.content.skill.impl.construction.House.toolkit(), and com.runehive.game.world.pathfinding.TraversalMap.unmarkWall().
|
staticprivate |
Definition at line 58 of file ObjectDirection.java.
Referenced by [static initializer]().
| com.runehive.game.world.object.ObjectDirection.WEST =(0) |
The west orientation.
Definition at line 35 of file ObjectDirection.java.
Referenced by com.runehive.game.world.pathfinding.TraversalMap.markWall(), com.runehive.content.ai.AIDialogueHandler.processGandalfAIMessage(), com.runehive.content.skill.impl.construction.House.toolkit(), and com.runehive.game.world.pathfinding.TraversalMap.unmarkWall().