|
RuneHive-Game
|
Contains traversal data for a set of regions. More...
Static Public Member Functions | |
| static void | block (Region region, int height, int localX, int localY) |
| Marks the specified set of coordinates blocked, unable to be passed through. | |
| static boolean | blockedEast (Position position) |
| static boolean | blockedNorth (Position position) |
| static boolean | blockedSouth (Position position) |
| static boolean | blockedWest (Position position) |
| static int | getFlags (int x, int y, int height) |
| static int | getFlags (Position position) |
| static Position | getRandomNonDiagonal (Position from) |
| static Position | getRandomTraversableTile (Position southWest, int width, int length) |
| static List< Position > | getTraversableTiles (Position southWest, int width, int length) |
Returns a List of positions that are traversable from the specified position. | |
| static boolean | isTraversable (Position from, Direction direction, boolean impenetrable) |
| Tests whether or not a specified position is traversable in the specified direction. | |
| static boolean | isTraversable (Position from, Direction direction, int size) |
| Tests whether or not a specified position is traversable in the specified direction. | |
| static void | markBridge (Region region, int height, int x, int y) |
| Marks the specified coordinates a bridge. | |
| static void | markObject (Region region, GameObject object, boolean add, boolean list) |
Marks a GameObject with the specified attributes on the specified Position to the TraversalMap. | |
| static void | markOccupant (Region region, int height, int x, int y, int width, int length, boolean impenetrable, boolean add) |
| Marks the specified coordinates occupied by some object. | |
| static void | set (Region region, int height, int x, int y, int flag) |
| Sets a flag on the specified position. | |
Private Member Functions | |
| TraversalMap () | |
Static Private Member Functions | |
| static boolean | isInactive (int height, int x, int y, int flag) |
| Checks whether or not the specified flag is not active on the specified position. | |
| static boolean | isTraversableEast (int height, int x, int y) |
| Tests if the specified position can be traversed east. | |
| static boolean | isTraversableEast (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed east. | |
| static boolean | isTraversableEast (int height, int x, int y, int size) |
| Tests if the specified position can be traversed east. | |
| static boolean | isTraversableNorth (int height, int x, int y) |
| Tests if the specified position can be traversed north. | |
| static boolean | isTraversableNorth (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed north. | |
| static boolean | isTraversableNorth (int height, int x, int y, int size) |
| Tests if the specified position can be traversed north. | |
| static boolean | isTraversableNorthEast (int height, int x, int y) |
| Tests if the specified position can be traversed north east. | |
| static boolean | isTraversableNorthEast (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed north east. | |
| static boolean | isTraversableNorthEast (int height, int x, int y, int size) |
| Tests if the specified position can be traversed north east. | |
| static boolean | isTraversableNorthWest (int height, int x, int y) |
| Tests if the specified position can be traversed north west. | |
| static boolean | isTraversableNorthWest (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed north west. | |
| static boolean | isTraversableNorthWest (int height, int x, int y, int size) |
| Tests if the specified position can be traversed north west. | |
| static boolean | isTraversableSouth (int height, int x, int y) |
| Tests if the specified position can be traversed south. | |
| static boolean | isTraversableSouth (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed south. | |
| static boolean | isTraversableSouth (int height, int x, int y, int size) |
| Tests if the specified position can be traversed south. | |
| static boolean | isTraversableSouthEast (int height, int x, int y) |
| Tests if the specified position can be traversed south east. | |
| static boolean | isTraversableSouthEast (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed south east. | |
| static boolean | isTraversableSouthEast (int height, int x, int y, int size) |
| Tests if the specified position can be traversed south east. | |
| static boolean | isTraversableSouthWest (int height, int x, int y) |
| Tests if the specified position can be traversed south west. | |
| static boolean | isTraversableSouthWest (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed south west. | |
| static boolean | isTraversableSouthWest (int height, int x, int y, int size) |
| Tests if the specified position can be traversed south west. | |
| static boolean | isTraversableWest (int height, int x, int y) |
| Tests if the specified position can be traversed west. | |
| static boolean | isTraversableWest (int height, int x, int y, boolean impenetrable) |
| Tests if the specified position can be traversed west. | |
| static boolean | isTraversableWest (int height, int x, int y, int size) |
| Tests if the specified position can be traversed west. | |
| static void | markWall (Region reg, ObjectDirection orientation, int height, int x, int y, ObjectType type, boolean impenetrable) |
| Informs the region of an existing wall. | |
| static void | unmarkWall (Region reg, ObjectDirection orientation, int height, int x, int y, ObjectType type, boolean impenetrable) |
| Informs the region of an existing wall being removed. | |
| static void | unset (Region region, int height, int x, int y, int flag) |
| Unsets the specified flag from the specified position. | |
Contains traversal data for a set of regions.
Definition at line 24 of file TraversalMap.java.
|
private |
Definition at line 26 of file TraversalMap.java.
|
static |
Marks the specified set of coordinates blocked, unable to be passed through.
| height | The height. |
| localX | The x coordinate. |
| localY | The y coordinate. |
Definition at line 352 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED.
Referenced by com.runehive.fs.cache.decoder.RegionDecoder.parseTerrain().
|
static |
Definition at line 1027 of file TraversalMap.java.
References isTraversableEast().
Referenced by com.runehive.game.world.region.Region.reachable().
|
static |
Definition at line 1023 of file TraversalMap.java.
References isTraversableNorth().
Referenced by com.runehive.game.world.region.Region.reachable().
|
static |
Definition at line 1031 of file TraversalMap.java.
References isTraversableSouth().
Referenced by com.runehive.game.world.region.Region.reachable().
|
static |
Definition at line 1035 of file TraversalMap.java.
References isTraversableWest().
Referenced by com.runehive.game.world.region.Region.reachable().
|
static |
Definition at line 1012 of file TraversalMap.java.
References com.runehive.game.world.region.RegionManager.getRegion(), and com.runehive.game.world.World.getRegions().
Referenced by getFlags(), and com.runehive.game.world.entity.mob.movement.waypoint.Waypoint.withinDistance().
|
static |
Definition at line 1019 of file TraversalMap.java.
References getFlags().
|
static |
Definition at line 991 of file TraversalMap.java.
References com.runehive.game.world.position.Position.east(), com.runehive.game.world.position.Position.getHeight(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), isTraversableEast(), isTraversableNorth(), isTraversableSouth(), isTraversableWest(), com.runehive.game.world.position.Position.north(), com.runehive.util.RandomUtils.random(), com.runehive.game.world.position.Position.south(), and com.runehive.game.world.position.Position.west().
Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.start().
|
static |
Definition at line 955 of file TraversalMap.java.
References com.runehive.game.world.position.Position.east(), com.runehive.game.world.position.Position.getHeight(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), isTraversableEast(), isTraversableNorth(), isTraversableNorthEast(), isTraversableNorthWest(), isTraversableSouth(), isTraversableSouthEast(), isTraversableSouthWest(), isTraversableWest(), com.runehive.game.world.position.Position.north(), com.runehive.game.world.position.Position.northEast(), com.runehive.game.world.position.Position.northWest(), com.runehive.util.RandomUtils.random(), com.runehive.game.world.position.Position.south(), com.runehive.game.world.position.Position.southEast(), com.runehive.game.world.position.Position.southWest(), com.runehive.game.world.position.Position.transform(), and com.runehive.game.world.position.Position.west().
Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.finish(), and com.runehive.content.activity.impl.duelarena.DuelArenaActivity.start().
|
static |
Returns a List of positions that are traversable from the specified position.
| southWest | The position moving from. |
| width | The size of the mob attempting to traverse. |
| length |
List of positions. Definition at line 921 of file TraversalMap.java.
References com.runehive.game.world.position.Position.east(), com.runehive.game.world.position.Position.getHeight(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), isTraversableEast(), isTraversableNorth(), isTraversableNorthEast(), isTraversableNorthWest(), isTraversableSouth(), isTraversableSouthEast(), isTraversableSouthWest(), isTraversableWest(), com.runehive.game.world.position.Position.north(), com.runehive.game.world.position.Position.northEast(), com.runehive.game.world.position.Position.northWest(), com.runehive.game.world.position.Position.south(), com.runehive.game.world.position.Position.southEast(), com.runehive.game.world.position.Position.southWest(), com.runehive.game.world.position.Position.transform(), and com.runehive.game.world.position.Position.west().
Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.spawn(), and com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.start().
|
staticprivate |
Checks whether or not the specified flag is not active on the specified position.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| flag | The flag to check. |
true if the specified flag is not active on the specified position, otherwise false. Definition at line 823 of file TraversalMap.java.
References com.runehive.game.world.region.RegionManager.getRegion(), and com.runehive.game.world.World.getRegions().
Referenced by isTraversableEast(), isTraversableNorth(), isTraversableNorthEast(), isTraversableNorthWest(), isTraversableSouth(), isTraversableSouthEast(), isTraversableSouthWest(), and isTraversableWest().
|
static |
Tests whether or not a specified position is traversable in the specified direction.
| from | The position. |
| direction | The direction to traverse. |
| impenetrable | The condition if impenetrability must be checked. |
true if the direction is traversable otherwise false. Definition at line 887 of file TraversalMap.java.
References com.runehive.game.world.position.Position.getHeight(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), isTraversableEast(), isTraversableNorth(), isTraversableNorthEast(), isTraversableNorthWest(), isTraversableSouth(), isTraversableSouthEast(), isTraversableSouthWest(), and isTraversableWest().
|
static |
Tests whether or not a specified position is traversable in the specified direction.
| from | The position. |
| direction | The direction to traverse. |
| size | The size of the entity attempting to traverse. |
true if the direction is traversable otherwise false. Definition at line 852 of file TraversalMap.java.
References com.runehive.game.world.position.Position.getHeight(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), isTraversableEast(), isTraversableNorth(), isTraversableNorthEast(), isTraversableNorthWest(), isTraversableSouth(), isTraversableSouthEast(), isTraversableSouthWest(), and isTraversableWest().
Referenced by com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonSpear.canAttack(), com.runehive.content.gambling.GambleManager.canPlayFlowerPokerAtPositon(), com.runehive.util.Utility.findAccessableTile(), com.runehive.util.Utility.fixInsidePosition(), com.runehive.content.activity.impl.magearena.MageArena.getAvailablePosition(), com.runehive.game.world.pathfinding.path.PathFinder.projectileCheck(), com.runehive.game.world.entity.mob.Mob.takeStep(), com.runehive.game.world.pathfinding.path.PathFinder.traversable(), and com.runehive.game.world.pathfinding.path.PathFinder.traversable().
|
staticprivate |
Tests if the specified position can be traversed east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse east otherwise false. Definition at line 524 of file TraversalMap.java.
References isTraversableEast().
|
staticprivate |
Tests if the specified position can be traversed east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse east otherwise false. Definition at line 538 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_WEST, isInactive(), and com.runehive.game.world.pathfinding.TraversalConstants.WALL_WEST.
|
staticprivate |
Tests if the specified position can be traversed east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse east. |
true if it is possible to traverse east otherwise false Definition at line 504 of file TraversalMap.java.
References isTraversableEast().
Referenced by blockedEast(), getRandomNonDiagonal(), getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableEast(), and isTraversableEast().
|
staticprivate |
Tests if the specified position can be traversed north.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse north otherwise false. Definition at line 422 of file TraversalMap.java.
References isTraversableNorth().
|
staticprivate |
Tests if the specified position can be traversed north.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse north otherwise false. Definition at line 436 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH, isInactive(), and com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH.
|
staticprivate |
Tests if the specified position can be traversed north.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse north. |
true if it is possible to traverse north otherwise false Definition at line 402 of file TraversalMap.java.
References isTraversableNorth().
Referenced by blockedNorth(), getRandomNonDiagonal(), getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableNorth(), and isTraversableNorth().
|
staticprivate |
Tests if the specified position can be traversed north east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse north east otherwise false. Definition at line 626 of file TraversalMap.java.
References isTraversableNorthEast().
|
staticprivate |
Tests if the specified position can be traversed north east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse north east otherwise false. Definition at line 640 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_WEST, isInactive(), com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH_WEST, and com.runehive.game.world.pathfinding.TraversalConstants.WALL_WEST.
|
staticprivate |
Tests if the specified position can be traversed north east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse north east. |
true if it is possible to traverse north east otherwise false Definition at line 606 of file TraversalMap.java.
References isTraversableNorthEast().
Referenced by getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableNorthEast(), and isTraversableNorthEast().
|
staticprivate |
Tests if the specified position can be traversed north west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse north west otherwise false. Definition at line 677 of file TraversalMap.java.
References isTraversableNorthWest().
|
staticprivate |
Tests if the specified position can be traversed north west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse north west otherwise false. Definition at line 691 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH_EAST, isInactive(), com.runehive.game.world.pathfinding.TraversalConstants.WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH, and com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH_EAST.
|
staticprivate |
Tests if the specified position can be traversed north west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse north west. |
true if it is possible to traverse north west otherwise false Definition at line 657 of file TraversalMap.java.
References isTraversableNorthWest().
Referenced by getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableNorthWest(), and isTraversableNorthWest().
|
staticprivate |
Tests if the specified position can be traversed south.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse south otherwise false. Definition at line 473 of file TraversalMap.java.
References isTraversableSouth().
|
staticprivate |
Tests if the specified position can be traversed south.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse south otherwise false. Definition at line 487 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH, isInactive(), and com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH.
|
staticprivate |
Tests if the specified position can be traversed south.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse south. |
true if it is possible to traverse south otherwise false Definition at line 453 of file TraversalMap.java.
References isTraversableSouth().
Referenced by blockedSouth(), getRandomNonDiagonal(), getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableSouth(), and isTraversableSouth().
|
staticprivate |
Tests if the specified position can be traversed south east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse south east otherwise false. Definition at line 728 of file TraversalMap.java.
References isTraversableSouthEast().
|
staticprivate |
Tests if the specified position can be traversed south east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse south east otherwise false. Definition at line 742 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_WEST, isInactive(), com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH_WEST, and com.runehive.game.world.pathfinding.TraversalConstants.WALL_WEST.
|
staticprivate |
Tests if the specified position can be traversed south east.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse south east. |
true if it is possible to traverse south east otherwise false Definition at line 708 of file TraversalMap.java.
References isTraversableSouthEast().
Referenced by getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableSouthEast(), and isTraversableSouthEast().
|
staticprivate |
Tests if the specified position can be traversed south west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse south west otherwise false. Definition at line 779 of file TraversalMap.java.
References isTraversableSouthWest().
|
staticprivate |
Tests if the specified position can be traversed south west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse south west otherwise false. Definition at line 793 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH_EAST, isInactive(), com.runehive.game.world.pathfinding.TraversalConstants.WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH, and com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH_EAST.
|
staticprivate |
Tests if the specified position can be traversed south west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse south west. |
true if it is possible to traverse south west otherwise false Definition at line 759 of file TraversalMap.java.
References isTraversableSouthWest().
Referenced by getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableSouthWest(), and isTraversableSouthWest().
|
staticprivate |
Tests if the specified position can be traversed west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
true if it is possible to traverse west otherwise false. Definition at line 575 of file TraversalMap.java.
References isTraversableWest().
|
staticprivate |
Tests if the specified position can be traversed west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| impenetrable | Whether or not this occupation can be traversed. |
true if it is possible to traverse west otherwise false. Definition at line 589 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_EAST, isInactive(), and com.runehive.game.world.pathfinding.TraversalConstants.WALL_EAST.
|
staticprivate |
Tests if the specified position can be traversed west.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| size | The size of the entity attempting to traverse west. |
true if it is possible to traverse west otherwise false Definition at line 555 of file TraversalMap.java.
References isTraversableWest().
Referenced by blockedWest(), getRandomNonDiagonal(), getRandomTraversableTile(), getTraversableTiles(), isTraversable(), isTraversable(), isTraversableWest(), and isTraversableWest().
|
static |
Marks the specified coordinates a bridge.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
Definition at line 388 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BRIDGE.
|
static |
Marks a GameObject with the specified attributes on the specified Position to the TraversalMap.
| object | The game object. |
| add | The condition if the object is added. |
| list | the condition if the region object list will be affected. |
Definition at line 36 of file TraversalMap.java.
References markOccupant(), markWall(), com.runehive.game.world.object.GameObjectDefinition.MAX_DEFINITIONS, com.runehive.game.world.object.ObjectDirection.NORTH, com.runehive.game.world.object.ObjectDirection.SOUTH, and unmarkWall().
Referenced by com.runehive.game.world.object.CustomGameObject.addToRegion(), com.runehive.fs.cache.decoder.RegionDecoder.parseGameObject(), com.runehive.game.world.object.StaticGameObject.register(), com.runehive.game.world.object.CustomGameObject.removeFromRegion(), and com.runehive.game.world.object.StaticGameObject.unregister().
|
static |
Marks the specified coordinates occupied by some object.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| width | The width of the occupation. |
| length | The length of the occupation. |
| impenetrable | Whether or not this occupation can be passed through. |
| add | Flag if the occupant is added or removed. |
Definition at line 368 of file TraversalMap.java.
References com.runehive.game.world.pathfinding.TraversalConstants.BLOCKED, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_BLOCKED, and unset().
Referenced by markObject().
|
staticprivate |
Informs the region of an existing wall.
| orientation | The orientation of the wall. |
| height | The walls height. |
| x | The walls x coordinate. |
| y | The walls y coordinate. |
| type | The type of wall. |
| impenetrable | Whether or not this wall can be passed through. |
Definition at line 94 of file TraversalMap.java.
References com.runehive.game.world.object.ObjectDirection.EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_WEST, com.runehive.game.world.object.ObjectDirection.NORTH, com.runehive.game.world.object.ObjectDirection.SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_WEST, and com.runehive.game.world.object.ObjectDirection.WEST.
Referenced by markObject().
|
static |
Sets a flag on the specified position.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| flag | The flag to put on this tile. |
Definition at line 808 of file TraversalMap.java.
|
staticprivate |
Informs the region of an existing wall being removed.
| orientation | The orientation of the wall. |
| height | The walls height. |
| x | The walls x coordinate. |
| y | The walls y coordinate. |
| type | The type of wall. |
| impenetrable | Whether or not this wall can be passed through. |
Definition at line 224 of file TraversalMap.java.
References com.runehive.game.world.object.ObjectDirection.EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_NORTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_SOUTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.IMPENETRABLE_WALL_WEST, com.runehive.game.world.object.ObjectDirection.NORTH, com.runehive.game.world.object.ObjectDirection.SOUTH, unset(), com.runehive.game.world.pathfinding.TraversalConstants.WALL_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_NORTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH_EAST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_SOUTH_WEST, com.runehive.game.world.pathfinding.TraversalConstants.WALL_WEST, and com.runehive.game.world.object.ObjectDirection.WEST.
Referenced by markObject().
|
staticprivate |
Unsets the specified flag from the specified position.
| height | The height. |
| x | The x coordinate. |
| y | The y coordinate. |
| flag | The flag to unset from the specified position. |
Definition at line 838 of file TraversalMap.java.
Referenced by markOccupant(), and unmarkWall().