Package org.rspeer.game.position
Class Position
- java.lang.Object
-
- org.rspeer.game.position.Position
-
- All Implemented Interfaces:
SceneNode
- Direct Known Subclasses:
AbsolutePosition,RelativePosition
@Deprecated public class Position extends Object implements SceneNode
Deprecated.Represents aPositionrelative to the game world- See Also:
Coord
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.SceneNode
SceneNode.Query<Q extends SceneNode.Query<Q>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(int x, int y, int level)Deprecated.booleanequals(Object obj)Deprecated.static Positionfrom(int x, int y)Deprecated.static Positionfrom(int x, int y, int level)Deprecated.static Positionfrom(Coord coord)Deprecated.static PositionfromAbsolute(int x, int y, int level)Deprecated.PositionfromInstance()Deprecated.static PositionfromMatrix(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.ChunkgetChunk()Deprecated.IntPairgetChunkOffset()Deprecated.intgetChunkX()Deprecated.intgetChunkY()Deprecated.CoordgetCoord()Deprecated.CoordFinegetCoordFine()Deprecated.intgetFloorLevel()Deprecated.List<Position>getInstancePositions()Deprecated.RSWorldMatrixgetMatrix()Deprecated.intgetMatrixId()Deprecated.PositiongetPosition()Deprecated.intgetRegionId()Deprecated.intgetRegionX()Deprecated.intgetRegionXInset()Deprecated.intgetRegionY()Deprecated.intgetRegionYInset()Deprecated.intgetX()Deprecated.intgetY()Deprecated.inthashCode()Deprecated.booleanisInScene()Deprecated.booleanisInstanced()Deprecated.static booleanisValidBounds(int x, int y, int level)Deprecated.static voidresetCache()Deprecated.Positionrotate(int rotation)Deprecated.static Positionrotate(int x, int y, int level, int rotation)Deprecated.PositionsetMatrix(RSWorldMatrix matrix)Deprecated.PositiontoPrecise()Deprecated.PositiontoScene()Deprecated.StringtoString()Deprecated.PositiontoWorld()Deprecated.Positiontranslate(int x, int y)Deprecated.Positiontranslate(Direction d)Deprecated.static Positionunpack(int packed)Deprecated.booleanwithin(Area area)Deprecated.-
Methods inherited from interface org.rspeer.game.adapter.type.SceneNode
distance, distance, distance, distance, getArea, getCoordArea, getCoordArea, getCoordView, getEntityPositionHeight, getEntityPositionWidth, getSceneContext, getWorldEntity, getWorldEntity, isInFieldOfViewOf, isInFieldOfViewOf
-
-
-
-
Field Detail
-
NIL
public static final Position NIL
Deprecated.
-
-
Constructor Detail
-
Position
@Deprecated public Position(int x, int y, int level)
Deprecated.- See Also:
from(int, int, int)
-
Position
@Deprecated public Position(int x, int y)
Deprecated.- See Also:
from(int, int)
-
-
Method Detail
-
resetCache
public static void resetCache()
Deprecated.
-
isValidBounds
public static boolean isValidBounds(int x, int y, int level)Deprecated.
-
from
public static Position from(int x, int y, int level)
Deprecated.
-
from
public static Position from(int x, int y)
Deprecated.
-
fromRelative
public static Position fromRelative(int x, int y, int level)
Deprecated.
-
fromAbsolute
public static Position fromAbsolute(int x, int y, int level)
Deprecated.
-
fromScript
public static Position fromScript(int regionX, int regionY, int insetX, int insetY, int level)
Deprecated.Constructs a Position using jagex's inhouse position system.- Returns:
- A Position comprised of regionX, regionY, insetX, insetY and floor level.
-
unpack
public static Position unpack(int packed)
Deprecated.
-
rotate
public static Position rotate(int x, int y, int level, int rotation)
Deprecated.
-
fromMatrix
public static Position fromMatrix(RSWorldMatrix matrix, Position coordWorld)
Deprecated.
-
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
public Chunk getChunk()
Deprecated.
-
getChunkOffset
public IntPair getChunkOffset()
Deprecated.
-
getMatrixId
public int getMatrixId()
Deprecated.- Specified by:
getMatrixIdin interfaceSceneNode
-
getFloorLevel
public int getFloorLevel()
Deprecated.- Specified by:
getFloorLevelin interfaceSceneNode
-
translate
public Position translate(int x, int y)
Deprecated.
-
toWorld
public Position toWorld()
Deprecated.
-
toScene
public Position toScene()
Deprecated.
-
toPrecise
public Position toPrecise()
Deprecated.
-
fromInstance
public Position fromInstance()
Deprecated.
-
isInstanced
public boolean isInstanced()
Deprecated.
-
getPosition
public Position getPosition()
Deprecated.- Specified by:
getPositionin interfaceSceneNode
-
getCoordFine
public CoordFine getCoordFine()
Deprecated.- Specified by:
getCoordFinein interfaceSceneNode
-
equals
public boolean equals(int x, int y, int level)Deprecated.
-
isInScene
public boolean isInScene()
Deprecated.
-
rotate
public Position rotate(int rotation)
Deprecated.
-
within
public boolean within(Area area)
Deprecated.
-
getMatrix
public RSWorldMatrix getMatrix()
Deprecated.
-
setMatrix
public Position setMatrix(RSWorldMatrix matrix)
Deprecated.
-
-