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 a Position relative to the game world
See Also:
  • Field Details

    • NIL

      public static final Position NIL
      Deprecated.
  • Constructor Details

  • Method Details

    • 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(jag.oldscape.RSWorldMatrix matrix, Position coordWorld)
      Deprecated.
    • from

      public static Position from(Coord coord)
      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 org.rspeer.commons.IntPair getChunkOffset()
      Deprecated.
    • getMatrixId

      public int getMatrixId()
      Deprecated.
      Specified by:
      getMatrixId in interface SceneNode
    • getX

      public int getX()
      Deprecated.
      Specified by:
      getX in interface SceneNode
    • getY

      public int getY()
      Deprecated.
      Specified by:
      getY in interface SceneNode
    • getFloorLevel

      public int getFloorLevel()
      Deprecated.
      Specified by:
      getFloorLevel in interface SceneNode
    • translate

      public Position translate(Direction d)
      Deprecated.
    • 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.
    • getInstancePositions

      public List<Position> getInstancePositions()
      Deprecated.
    • isInstanced

      public boolean isInstanced()
      Deprecated.
    • getPosition

      public Position getPosition()
      Deprecated.
      Specified by:
      getPosition in interface SceneNode
    • getCoord

      public Coord getCoord()
      Deprecated.
      Specified by:
      getCoord in interface SceneNode
    • getCoordFine

      public CoordFine getCoordFine()
      Deprecated.
      Specified by:
      getCoordFine in interface SceneNode
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(int x, int y, int level)
      Deprecated.
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • isInScene

      public boolean isInScene()
      Deprecated.
    • rotate

      public Position rotate(int rotation)
      Deprecated.
    • within

      public boolean within(Area area)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • getMatrix

      public jag.oldscape.RSWorldMatrix getMatrix()
      Deprecated.
    • setMatrix

      public Position setMatrix(jag.oldscape.RSWorldMatrix matrix)
      Deprecated.