|
RuneHive-Game
|
Represents a single tile on the game world. More...
Public Member Functions | |
| Position | copy () |
| Creates a deep copy of this location. | |
| Position | east () |
| boolean | equals (Object obj) |
| int | getChebyshevDistance (int x1, int y1, int x2, int y2) |
| int | getChebyshevDistance (Position other) |
| int | getChevDistance (Position other) |
| int | getChunkX () |
| Gets the chunk x coordinate. | |
| int | getChunkY () |
| Gets the chunk y coordinate. | |
| int | getCoordFaceX (final int sizeX) |
| int | getCoordFaceX (final int sizeX, final int sizeY, final int rotation) |
| int | getCoordFaceY (final int sizeX, final int sizeY, final int rotation) |
| int | getCoordFaceY (final int sizeY) |
| Position | getDelta (Position location, Position other) |
| double | getDistance (Position other) |
| Gets the distance between this location and another location. | |
| int | getDistances (Position other) |
| Absolute distance between this Coordiante and another. | |
| int | getHeight () |
| Gets the height coordinate, or height. | |
| int | getLocalX () |
| Gets the local x coordinate relative to this region. | |
| int | getLocalX (Position origin) |
| Gets the local x coordinate relative to a specific region. | |
| int | getLocalY () |
| Gets the local y coordinate relative to this region. | |
| int | getLocalY (Position origin) |
| Gets the local y coordinate relative to a specific region. | |
| int | getLongestDelta (Position other) |
| Gets the longest horizontal or vertical delta between the two positions. | |
| int | getManhattanDistance (Position other) |
| Gets the distance between this location and another location without diagonals. | |
| Region | getRegion () |
| int | getRegionX () |
| int | getRegionY () |
| int | getX () |
| Gets the absolute x coordinate. | |
| int | getY () |
| Gets the absolute y coordinate. | |
| int | hashCode () |
| boolean | inLocation (Position southWest, Position northEast, boolean inclusive) |
| boolean | isViewableFrom (Position other) |
| boolean | isWithinDistance (Position other, int radius) |
| Checks if this location is within range of another. | |
| boolean | matches (int x, int y) |
| boolean | matches (int x, int y, int z) |
| Position | north () |
| Position | northEast () |
| Position | northWest () |
| Position (int x, int y) | |
| Creates a location with a default height of 0. | |
| Position (int x, int y, int height) | |
| Creates a location. | |
| Position | south () |
| Position | southEast () |
| Position | southWest () |
| String | toString () |
| Position | transform (int diffX, int diffY) |
| Creates a new location based on this location. | |
| Position | transform (int diffX, int diffY, int diffZ) |
| Creates a new location based on this location. | |
| Position | transform (Position other) |
| Creates a new location based on this location. | |
| Position | west () |
Static Public Member Functions | |
| static Position | create (int x, int y) |
| Creates a location. | |
| static Position | create (int x, int y, int z) |
| Creates a location. | |
| static double | getDistance (Position first, Position second) |
Gets the Euclidean (straight-line) distance between two Position s. | |
| static int | getManhattanDistance (Interactable origin, Interactable target) |
| Gets the manhattan distance between two interactable object. | |
| static int | getManhattanDistance (Position first, Position second) |
Gets the Euclidean (straight-line) distance between two Position s. | |
| static int | hash (int x, int y, int z) |
| static boolean | isWithinDiagonalDistance (Mob attacker, Mob defender, int distance) |
Static Public Attributes | |
| static final int | HEIGHT_LEVELS = 4 |
| The maximum amount of height-planes. | |
Private Attributes | |
| final int | height |
| The height coordinate. | |
| final int | x |
| The x coordinate. | |
| final int | y |
| The y coordinate. | |
Represents a single tile on the game world.
Definition at line 14 of file Position.java.
| com.runehive.game.world.position.Position.Position | ( | int | x, |
| int | y ) |
Creates a location with a default height of 0.
Definition at line 29 of file Position.java.
Referenced by copy(), create(), create(), east(), equals(), getChebyshevDistance(), getChevDistance(), getDelta(), getDistance(), getDistance(), getDistances(), getLocalX(), getLocalY(), getLongestDelta(), getManhattanDistance(), getManhattanDistance(), com.runehive.content.ai.AIDialogueHandler.handleAICommand(), inLocation(), isViewableFrom(), isWithinDiagonalDistance(), isWithinDistance(), north(), northEast(), northWest(), south(), southEast(), southWest(), transform(), transform(), transform(), and west().
| com.runehive.game.world.position.Position.Position | ( | int | x, |
| int | y, | ||
| int | height ) |
Creates a location.
Definition at line 34 of file Position.java.
| Position com.runehive.game.world.position.Position.copy | ( | ) |
Creates a deep copy of this location.
Definition at line 314 of file Position.java.
References height, Position(), x, and y.
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.dragonFireTickableTask(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.drop(), com.runehive.net.packet.out.SendMapRegion.encode(), com.runehive.net.packet.in.DropItemPacketListener.handlePacket(), isWithinDiagonalDistance(), com.runehive.content.lms.lobby.LMSLobby.leaveLobby(), com.runehive.content.Waypoints.setWaypoint(), com.runehive.game.world.entity.mob.Viewport.shouldRemove(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.start(), and com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.start().
|
static |
Creates a location.
| x | The x coordinate. |
| y | The y coordinate. |
Definition at line 266 of file Position.java.
References Position(), x, and y.
|
static |
Creates a location.
| x | The x coordinate. |
| y | The y coordinate. |
| z | The height coordinate. |
Definition at line 255 of file Position.java.
References Position(), x, and y.
Referenced by com.runehive.content.gambling.GambleManager.canPlayFlowerPokerAtPositon(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.content.gambling.impl.FlowerPoker.gamble(), com.runehive.util.Utility.getDelta(), com.runehive.util.Utility.getDelta(), com.runehive.content.bot.objective.impl.WildernessDitchObjective.init(), com.runehive.content.bot.objective.impl.WildernessWalkObjective.init(), com.runehive.content.skill.impl.agility.obstacle.impl.ClimbOverInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.RopeSwingInteraction.onExecution(), com.runehive.content.skill.impl.prayer.BoneSacrifice.sacrifice(), and com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.GhostAttack.start().
| Position com.runehive.game.world.position.Position.east | ( | ) |
Definition at line 101 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), and com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles().
| boolean com.runehive.game.world.position.Position.equals | ( | Object | obj | ) |
Definition at line 319 of file Position.java.
References height, Position(), x, and y.
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.AcidTask(), com.runehive.content.skill.impl.firemaking.Firemaking.clickObject(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.dragonFireTickableTask(), com.runehive.game.world.items.ground.GroundItem.equals(), com.runehive.game.world.object.CustomGameObject.equals(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.execute(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.util.Utility.findBestInside(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.hit(), com.runehive.game.world.entity.combat.strategy.npc.boss.Zulrah.MeleeAttack.hit(), com.runehive.game.world.entity.combat.strategy.player.custom.ScytheOfViturStrategy.hitEvent(), com.runehive.util.Utility.inside(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.lavaTask(), com.runehive.content.skill.impl.agility.obstacle.impl.WildernessDoorInteraction.onExecution(), com.runehive.game.world.entity.combat.strategy.npc.boss.Hydra.poisonTask(), com.runehive.game.world.entity.combat.strategy.npc.boss.ChaosFanatic.RainAttack.start(), and com.runehive.game.world.entity.combat.strategy.npc.boss.CrazyArchaeologist.RainAttack.start().
| int com.runehive.game.world.position.Position.getChebyshevDistance | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2 ) |
Definition at line 386 of file Position.java.
| int com.runehive.game.world.position.Position.getChebyshevDistance | ( | Position | other | ) |
Definition at line 382 of file Position.java.
References getChebyshevDistance(), getX(), getY(), and Position().
Referenced by com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), getChebyshevDistance(), and com.runehive.game.world.entity.combat.strategy.player.PlayerMagicStrategy.start().
| int com.runehive.game.world.position.Position.getChevDistance | ( | Position | other | ) |
Definition at line 180 of file Position.java.
References getX(), getY(), and Position().
| int com.runehive.game.world.position.Position.getChunkX | ( | ) |
Gets the chunk x coordinate.
Definition at line 76 of file Position.java.
References x.
Referenced by com.runehive.net.packet.out.SendMapRegion.encode(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), getLocalX(), getRegionX(), and com.runehive.util.Utility.isRegionChange().
| int com.runehive.game.world.position.Position.getChunkY | ( | ) |
Gets the chunk y coordinate.
Definition at line 81 of file Position.java.
References y.
Referenced by com.runehive.net.packet.out.SendMapRegion.encode(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), getLocalY(), getRegionY(), and com.runehive.util.Utility.isRegionChange().
| int com.runehive.game.world.position.Position.getCoordFaceX | ( | final int | sizeX | ) |
Definition at line 390 of file Position.java.
References getCoordFaceX().
Referenced by getCoordFaceX().
| int com.runehive.game.world.position.Position.getCoordFaceX | ( | final int | sizeX, |
| final int | sizeY, | ||
| final int | rotation ) |
Definition at line 394 of file Position.java.
References getX().
| int com.runehive.game.world.position.Position.getCoordFaceY | ( | final int | sizeX, |
| final int | sizeY, | ||
| final int | rotation ) |
Definition at line 402 of file Position.java.
References getY().
| int com.runehive.game.world.position.Position.getCoordFaceY | ( | final int | sizeY | ) |
Definition at line 398 of file Position.java.
References getCoordFaceY().
Referenced by getCoordFaceY().
Definition at line 218 of file Position.java.
References getHeight(), Position(), x, and y.
Referenced by com.runehive.game.world.World.executeProjectile(), and isViewableFrom().
|
static |
Gets the Euclidean (straight-line) distance between two Position s.
Definition at line 190 of file Position.java.
References getX(), getY(), and Position().
| double com.runehive.game.world.position.Position.getDistance | ( | Position | other | ) |
Gets the distance between this location and another location.
| other | The other location. |
Definition at line 163 of file Position.java.
References height, Position(), x, and y.
Referenced by com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), and com.runehive.game.world.entity.combat.strategy.npc.NpcMagicStrategy.getAttackDelay().
| int com.runehive.game.world.position.Position.getDistances | ( | Position | other | ) |
Absolute distance between this Coordiante and another.
| other | The other Coordiante. |
Definition at line 176 of file Position.java.
References height, Position(), x, and y.
Referenced by com.runehive.content.lms.LMSGame.handleFogDamage().
| int com.runehive.game.world.position.Position.getHeight | ( | ) |
Gets the height coordinate, or height.
Definition at line 51 of file Position.java.
References height.
Referenced by com.runehive.game.world.pathfinding.path.SimplePathChecker.check(), com.runehive.game.world.pathfinding.path.impl.Node.equals(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.content.ai.AIDialogueHandler.findNearbyNpc(), getDelta(), com.runehive.util.Utility.getDelta(), com.runehive.util.Utility.getDistance(), com.runehive.game.world.Interactable.getHeight(), com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), com.runehive.content.ai.AIDialogueHandler.handleAICommand(), com.runehive.content.ai.LazyAIManager.handleGandalfAIClick(), com.runehive.game.world.pathfinding.path.impl.Node.hashCode(), com.runehive.game.world.pathfinding.TraversalMap.isTraversable(), com.runehive.game.world.pathfinding.TraversalMap.isTraversable(), isViewableFrom(), com.runehive.content.wintertodt.Wintertodt.shootFlame(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.shoulderShot(), transform(), com.runehive.util.Utility.within(), com.runehive.game.world.entity.mob.movement.waypoint.Waypoint.withinDistance(), and com.runehive.util.Utility.withinOctal().
| int com.runehive.game.world.position.Position.getLocalX | ( | ) |
Gets the local x coordinate relative to this region.
Definition at line 56 of file Position.java.
References getLocalX().
Referenced by com.runehive.net.packet.out.SendPlayerUpdate.appendForceMovementMask(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), getLocalX(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.shoulderShot(), and com.runehive.net.packet.out.SendPlayerUpdate.updateMovement().
| int com.runehive.game.world.position.Position.getLocalX | ( | Position | origin | ) |
Gets the local x coordinate relative to a specific region.
Definition at line 66 of file Position.java.
References getChunkX(), Position(), and x.
| int com.runehive.game.world.position.Position.getLocalY | ( | ) |
Gets the local y coordinate relative to this region.
Definition at line 61 of file Position.java.
References getLocalY().
Referenced by com.runehive.net.packet.out.SendPlayerUpdate.appendForceMovementMask(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), getLocalY(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.shoulderShot(), and com.runehive.net.packet.out.SendPlayerUpdate.updateMovement().
| int com.runehive.game.world.position.Position.getLocalY | ( | Position | origin | ) |
Gets the local y coordinate relative to a specific region.
Definition at line 71 of file Position.java.
References getChunkY(), Position(), and y.
| int com.runehive.game.world.position.Position.getLongestDelta | ( | Position | other | ) |
Gets the longest horizontal or vertical delta between the two positions.
| other | The other position. |
Definition at line 240 of file Position.java.
References getX(), getY(), height, and Position().
Referenced by com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.find().
|
static |
Gets the manhattan distance between two interactable object.
| origin | The originating location. |
| target | The target location. |
Definition at line 136 of file Position.java.
References com.runehive.util.Utility.getDistance().
|
static |
Gets the Euclidean (straight-line) distance between two Position s.
Definition at line 228 of file Position.java.
References getX(), getY(), and Position().
| int com.runehive.game.world.position.Position.getManhattanDistance | ( | Position | other | ) |
Gets the distance between this location and another location without diagonals.
| other | The other location. |
Definition at line 203 of file Position.java.
References height, Position(), x, and y.
| Region com.runehive.game.world.position.Position.getRegion | ( | ) |
Definition at line 93 of file Position.java.
References com.runehive.game.world.region.RegionManager.getRegion(), and com.runehive.game.world.World.getRegions().
Referenced by com.runehive.game.world.object.StaticGameObject.active(), com.runehive.game.world.object.StaticGameObject.register(), and com.runehive.game.world.object.StaticGameObject.unregister().
| int com.runehive.game.world.position.Position.getRegionX | ( | ) |
Definition at line 85 of file Position.java.
References getChunkX().
| int com.runehive.game.world.position.Position.getRegionY | ( | ) |
Definition at line 89 of file Position.java.
References getChunkY().
| int com.runehive.game.world.position.Position.getX | ( | ) |
Gets the absolute x coordinate.
Definition at line 41 of file Position.java.
References x.
Referenced by com.runehive.net.packet.out.SendNpcUpdate.addNewNpc(), com.runehive.game.world.pathfinding.path.Path.addSteps(), com.runehive.net.packet.out.SendNpcUpdate.appendFaceCoordinateMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendFaceCoordinteMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendForceMovementMask(), com.runehive.content.wintertodt.Wintertodt.breakBrazier(), com.runehive.game.world.pathfinding.distance.Chebyshev.calculate(), com.runehive.game.world.pathfinding.distance.Distance.Chebyshev.calculate(), com.runehive.game.world.pathfinding.distance.Distance.Euclidean.calculate(), com.runehive.game.world.pathfinding.distance.Distance.Manhattan.calculate(), com.runehive.game.world.pathfinding.distance.Euclidean.calculate(), com.runehive.game.world.pathfinding.distance.Manhattan.calculate(), com.runehive.content.skill.impl.hunter.trap.TrapManager.canLay(), com.runehive.content.gambling.GambleManager.canPlayFlowerPokerAtPositon(), com.runehive.game.world.pathfinding.path.SimplePathChecker.check(), com.runehive.content.wintertodt.Wintertodt.doMagicAttack(), com.runehive.content.skill.impl.construction.House.enter(), com.runehive.game.world.pathfinding.path.impl.Node.equals(), com.runehive.game.action.impl.RevShortcutAction.execute(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.util.Utility.findBestInside(), com.runehive.util.Utility.fixInsidePosition(), com.runehive.content.gambling.impl.FlowerPoker.gamble(), getChebyshevDistance(), getChevDistance(), getCoordFaceX(), com.runehive.util.Utility.getDelta(), com.runehive.util.Utility.getDelta(), com.runehive.game.world.entity.mob.Direction.getDirection(), getDistance(), com.runehive.util.Utility.getDistance(), com.runehive.util.Utility.getDistance(), com.runehive.game.world.entity.mob.Direction.getFollowDirection(), getLongestDelta(), com.runehive.game.world.entity.mob.Direction.getManhattanDirection(), getManhattanDistance(), com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), com.runehive.game.world.Interactable.getX(), com.runehive.content.skill.impl.hunter.trap.TrapManager.goodArea(), com.runehive.content.ai.AIDialogueHandler.handleAICommand(), com.runehive.content.ai.LazyAIManager.handleGandalfAIClick(), com.runehive.game.world.pathfinding.path.impl.Node.hashCode(), com.runehive.game.world.position.Area.inArea(), com.runehive.util.Utility.inside(), com.runehive.util.Utility.isRegionChange(), com.runehive.game.world.pathfinding.TraversalMap.isTraversable(), com.runehive.game.world.pathfinding.TraversalMap.isTraversable(), isWithinDiagonalDistance(), com.runehive.content.lms.lobby.LMSLobby.leaveLobby(), com.runehive.content.skill.impl.agility.obstacle.impl.ClimbOverInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.RopeSwingInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.SteppingStonesInteraction.onExecution(), com.runehive.game.ProjectileTest.ProjectileTest(), com.runehive.game.world.region.Region.reachable(), com.runehive.content.lms.LMSGame.reset(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.content.wintertodt.Wintertodt.shootFlame(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.shoulderShot(), com.runehive.content.lms.crate.LMSCrate.spawn(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Derwen.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Justiciar.LightingRain.start(), com.runehive.game.world.entity.mob.player.Player.toSceneLocalX(), transform(), com.runehive.util.Utility.within(), com.runehive.game.world.entity.mob.movement.waypoint.Waypoint.withinDistance(), com.runehive.util.Utility.withinOctal(), and com.runehive.util.Utility.withinViewingDistance().
| int com.runehive.game.world.position.Position.getY | ( | ) |
Gets the absolute y coordinate.
Definition at line 46 of file Position.java.
References y.
Referenced by com.runehive.net.packet.out.SendNpcUpdate.addNewNpc(), com.runehive.game.world.pathfinding.path.Path.addSteps(), com.runehive.net.packet.out.SendNpcUpdate.appendFaceCoordinateMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendFaceCoordinteMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendForceMovementMask(), com.runehive.content.wintertodt.Wintertodt.breakBrazier(), com.runehive.game.world.pathfinding.distance.Chebyshev.calculate(), com.runehive.game.world.pathfinding.distance.Distance.Chebyshev.calculate(), com.runehive.game.world.pathfinding.distance.Distance.Euclidean.calculate(), com.runehive.game.world.pathfinding.distance.Distance.Manhattan.calculate(), com.runehive.game.world.pathfinding.distance.Euclidean.calculate(), com.runehive.game.world.pathfinding.distance.Manhattan.calculate(), com.runehive.content.skill.impl.hunter.trap.TrapManager.canLay(), com.runehive.content.gambling.GambleManager.canPlayFlowerPokerAtPositon(), com.runehive.game.world.pathfinding.path.SimplePathChecker.check(), com.runehive.content.wintertodt.Wintertodt.doMagicAttack(), com.runehive.content.skill.impl.construction.House.enter(), com.runehive.game.world.pathfinding.path.impl.Node.equals(), com.runehive.game.action.impl.RevShortcutAction.execute(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.util.Utility.findBestInside(), com.runehive.util.Utility.fixInsidePosition(), com.runehive.content.gambling.impl.FlowerPoker.gamble(), getChebyshevDistance(), getChevDistance(), getCoordFaceY(), com.runehive.util.Utility.getDelta(), com.runehive.util.Utility.getDelta(), com.runehive.game.world.entity.mob.Direction.getDirection(), getDistance(), com.runehive.util.Utility.getDistance(), com.runehive.util.Utility.getDistance(), com.runehive.game.world.entity.mob.Direction.getFollowDirection(), getLongestDelta(), com.runehive.game.world.entity.mob.Direction.getManhattanDirection(), getManhattanDistance(), com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), com.runehive.game.world.Interactable.getY(), com.runehive.content.skill.impl.hunter.trap.TrapManager.goodArea(), com.runehive.content.ai.AIDialogueHandler.handleAICommand(), com.runehive.content.ai.LazyAIManager.handleGandalfAIClick(), com.runehive.game.world.pathfinding.path.impl.Node.hashCode(), com.runehive.game.world.position.Area.inArea(), com.runehive.util.Utility.inside(), com.runehive.util.Utility.isRegionChange(), com.runehive.game.world.pathfinding.TraversalMap.isTraversable(), com.runehive.game.world.pathfinding.TraversalMap.isTraversable(), isWithinDiagonalDistance(), com.runehive.content.lms.lobby.LMSLobby.leaveLobby(), com.runehive.content.skill.impl.agility.obstacle.impl.ClimbOverInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.RopeSwingInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.SteppingStonesInteraction.onExecution(), com.runehive.game.world.entity.mob.player.Player.onStep(), com.runehive.game.ProjectileTest.ProjectileTest(), com.runehive.game.world.region.Region.reachable(), com.runehive.content.lms.LMSGame.reset(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.content.wintertodt.Wintertodt.shootFlame(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.shoulderShot(), com.runehive.content.lms.crate.LMSCrate.spawn(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Derwen.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Justiciar.LightingRain.start(), com.runehive.game.world.entity.mob.player.Player.toSceneLocalY(), transform(), com.runehive.util.Utility.within(), com.runehive.game.world.entity.mob.movement.waypoint.Waypoint.withinDistance(), com.runehive.util.Utility.withinOctal(), and com.runehive.util.Utility.withinViewingDistance().
|
static |
Definition at line 348 of file Position.java.
Referenced by hashCode(), com.runehive.fs.cache.decoder.RegionDecoder.parseGameObject(), and com.runehive.fs.cache.decoder.RegionDecoder.parseTerrain().
| int com.runehive.game.world.position.Position.hashCode | ( | ) |
| boolean com.runehive.game.world.position.Position.inLocation | ( | Position | southWest, |
| Position | northEast, | ||
| boolean | inclusive ) |
Definition at line 294 of file Position.java.
References northEast(), Position(), and southWest().
Referenced by com.runehive.content.skill.impl.prayer.BoneSacrifice.sacrifice(), and com.runehive.content.activity.impl.barrows.BarrowsUtility.teleportPlayer().
| boolean com.runehive.game.world.position.Position.isViewableFrom | ( | Position | other | ) |
Definition at line 210 of file Position.java.
References getDelta(), getHeight(), and Position().
Referenced by com.runehive.game.world.World.executeProjectile().
|
static |
Definition at line 352 of file Position.java.
References copy(), com.runehive.game.world.entity.mob.npc.Npc.definition, com.runehive.game.world.entity.mob.Mob.getNpc(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.getSize(), getX(), getY(), com.runehive.game.world.entity.mob.Mob.isNpc(), and Position().
Referenced by com.runehive.game.world.entity.combat.strategy.player.custom.ScytheOfViturStrategy.hitEvent().
| boolean com.runehive.game.world.position.Position.isWithinDistance | ( | Position | other, |
| int | radius ) |
Checks if this location is within range of another.
| other | The other location. |
| radius | The radius from the origin point. |
True if the location is within the radius. Definition at line 147 of file Position.java.
References height, Position(), x, and y.
Referenced by com.runehive.content.activity.infernomobs.Jalimkot.canAttack(), com.runehive.game.world.region.RegionManager.getLocalNpcs(), com.runehive.game.world.region.RegionManager.getLocalPlayers(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.lavaTask(), com.runehive.content.ProfileViewer.open(), com.runehive.content.skill.impl.hunter.trap.TrapExecution.setTrapProcess(), and com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.MinionsAttack.start().
| boolean com.runehive.game.world.position.Position.matches | ( | int | x, |
| int | y ) |
Definition at line 330 of file Position.java.
| boolean com.runehive.game.world.position.Position.matches | ( | int | x, |
| int | y, | ||
| int | z ) |
Definition at line 334 of file Position.java.
| Position com.runehive.game.world.position.Position.north | ( | ) |
Definition at line 97 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), and com.runehive.content.lms.lobby.LMSLobby.joinLobby().
| Position com.runehive.game.world.position.Position.northEast | ( | ) |
Definition at line 113 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), and inLocation().
| Position com.runehive.game.world.position.Position.northWest | ( | ) |
Definition at line 117 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), and com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles().
| Position com.runehive.game.world.position.Position.south | ( | ) |
Definition at line 105 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), and com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles().
| Position com.runehive.game.world.position.Position.southEast | ( | ) |
Definition at line 121 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), and com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles().
| Position com.runehive.game.world.position.Position.southWest | ( | ) |
Definition at line 125 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), and inLocation().
| String com.runehive.game.world.position.Position.toString | ( | ) |
Definition at line 344 of file Position.java.
| Position com.runehive.game.world.position.Position.transform | ( | int | diffX, |
| int | diffY ) |
Creates a new location based on this location.
| diffX | X difference. |
| diffY | Y difference. |
Definition at line 289 of file Position.java.
References height, Position(), x, and y.
| Position com.runehive.game.world.position.Position.transform | ( | int | diffX, |
| int | diffY, | ||
| int | diffZ ) |
Creates a new location based on this location.
| diffX | X difference. |
| diffY | Y difference. |
| diffZ | Z difference. |
Definition at line 278 of file Position.java.
References height, Position(), x, and y.
Referenced by com.runehive.content.pet.Pets.abandon(), com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.addWalks(), east(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.util.Utility.findBestInside(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.finishIncoming(), com.runehive.util.Utility.fixInsidePosition(), com.runehive.util.Utility.getBoundaries(), com.runehive.util.Utility.getDelta(), com.runehive.util.Utility.getDistance(), com.runehive.util.Utility.getDistance(), com.runehive.util.Utility.getInnerBoundaries(), com.runehive.util.Utility.getInnerBoundaries(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonSpear.hit(), com.runehive.util.Utility.inside(), com.runehive.content.lms.lobby.LMSLobby.leaveLobby(), north(), northEast(), northWest(), com.runehive.game.world.region.Region.reachable(), south(), southEast(), southWest(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Derwen.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Justiciar.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.Magic.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.start(), transform(), com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.traversable(), west(), com.runehive.util.Utility.within(), com.runehive.util.Utility.withinOctal(), and com.runehive.util.Utility.withinViewingDistance().
Creates a new location based on this location.
| other | The difference. |
Definition at line 304 of file Position.java.
References getHeight(), getX(), getY(), Position(), and transform().
| Position com.runehive.game.world.position.Position.west | ( | ) |
Definition at line 109 of file Position.java.
References Position(), and transform().
Referenced by com.runehive.game.world.pathfinding.TraversalMap.getRandomNonDiagonal(), com.runehive.game.world.pathfinding.TraversalMap.getRandomTraversableTile(), and com.runehive.game.world.pathfinding.TraversalMap.getTraversableTiles().
|
private |
The height coordinate.
Definition at line 26 of file Position.java.
Referenced by copy(), equals(), getDistance(), getDistances(), getHeight(), getLongestDelta(), getManhattanDistance(), hashCode(), isWithinDistance(), Position(), toString(), transform(), and transform().
|
static |
The maximum amount of height-planes.
Definition at line 17 of file Position.java.
|
private |
The x coordinate.
Definition at line 20 of file Position.java.
Referenced by copy(), create(), create(), equals(), getChunkX(), getDelta(), getDistance(), getDistances(), getLocalX(), getManhattanDistance(), getX(), hash(), hashCode(), isWithinDistance(), matches(), matches(), Position(), Position(), toString(), transform(), and transform().
|
private |
The y coordinate.
Definition at line 23 of file Position.java.
Referenced by copy(), create(), create(), equals(), getChunkY(), getDelta(), getDistance(), getDistances(), getLocalY(), getManhattanDistance(), getY(), hash(), hashCode(), isWithinDistance(), matches(), matches(), Position(), Position(), toString(), transform(), and transform().