Class Position
java.lang.Object
org.rspeer.game.position.Position
- All Implemented Interfaces:
SceneNode
- Direct Known Subclasses:
AbsolutePosition, RelativePosition
Deprecated.
Represents a
Position relative to the game world- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface SceneNode
SceneNode.Query<Q> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(int x, int y, int level) Deprecated.booleanDeprecated.static Positionfrom(int x, int y) Deprecated.static Positionfrom(int x, int y, int level) Deprecated.static PositionDeprecated.static PositionfromAbsolute(int x, int y, int level) Deprecated.Deprecated.static PositionfromMatrix(jag.oldscape.RSWorldMatrix matrix, Position coordWorld) Deprecated.static PositionfromRelative(int x, int y, int level) Deprecated.static PositionfromScript(int regionX, int regionY, int insetX, int insetY, int level) Deprecated.Constructs a Position using jagex's inhouse position system.getChunk()Deprecated.org.rspeer.commons.IntPairDeprecated.intDeprecated.intDeprecated.getCoord()Deprecated.Deprecated.intDeprecated.Deprecated.jag.oldscape.RSWorldMatrixDeprecated.intDeprecated.Deprecated.intDeprecated.intDeprecated.intDeprecated.intDeprecated.intDeprecated.intgetX()Deprecated.intgetY()Deprecated.inthashCode()Deprecated.booleanDeprecated.booleanDeprecated.static booleanisValidBounds(int x, int y, int level) Deprecated.static voidDeprecated.rotate(int rotation) Deprecated.static Positionrotate(int x, int y, int level, int rotation) Deprecated.setMatrix(jag.oldscape.RSWorldMatrix matrix) Deprecated.Deprecated.toScene()Deprecated.toString()Deprecated.toWorld()Deprecated.translate(int x, int y) Deprecated.Deprecated.static Positionunpack(int packed) Deprecated.booleanDeprecated.Methods inherited from interface SceneNode
distance, distance, distance, distance, getArea, getCoordArea, getCoordArea, getCoordView, getEntityPositionHeight, getEntityPositionWidth, getSceneContext, getWorldEntity, getWorldEntity, isInFieldOfViewOf, isInFieldOfViewOf
-
Field Details
-
NIL
Deprecated.
-
-
Constructor Details
-
Position
-
Position
-
-
Method Details
-
resetCache
public static void resetCache()Deprecated. -
isValidBounds
public static boolean isValidBounds(int x, int y, int level) Deprecated. -
from
Deprecated. -
from
Deprecated. -
fromRelative
Deprecated. -
fromAbsolute
Deprecated. -
fromScript
Deprecated.Constructs a Position using jagex's inhouse position system.- Returns:
- A Position comprised of regionX, regionY, insetX, insetY and floor level.
-
unpack
Deprecated. -
rotate
Deprecated. -
fromMatrix
-
from
-
getRegionX
public int getRegionX()Deprecated. -
getRegionY
public int getRegionY()Deprecated. -
getRegionXInset
public int getRegionXInset()Deprecated. -
getRegionYInset
public int getRegionYInset()Deprecated. -
getRegionId
public int getRegionId()Deprecated. -
getChunkX
public int getChunkX()Deprecated. -
getChunkY
public int getChunkY()Deprecated. -
getChunk
Deprecated. -
getChunkOffset
public org.rspeer.commons.IntPair getChunkOffset()Deprecated. -
getMatrixId
-
getX
-
getY
-
getFloorLevel
-
translate
-
translate
Deprecated. -
toWorld
Deprecated. -
toScene
Deprecated. -
toPrecise
Deprecated. -
fromInstance
Deprecated. -
getInstancePositions
-
isInstanced
public boolean isInstanced()Deprecated. -
getPosition
-
getCoord
-
getCoordFine
-
toString
-
equals
public boolean equals(int x, int y, int level) Deprecated. -
equals
-
isInScene
public boolean isInScene()Deprecated. -
rotate
Deprecated. -
within
Deprecated. -
hashCode
-
getMatrix
public jag.oldscape.RSWorldMatrix getMatrix()Deprecated. -
setMatrix
Deprecated.
-