Class SceneOffset

java.lang.Object
com.epicbot.api.shared.model.SceneOffset

public class SceneOffset extends Object
Scene offset is used to determine the exact location inside a scene/region.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SceneOffset(int x, int y, int plane, int tileSize)
    Constructs a new SceneOffset
    SceneOffset(int x, int y, int tileX, int tileY, int plane, int tileSize)
    Constructs a new SceneOffset
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the plane
    int
    Gets the x location as a region coordinate
    int
    Gets the y location as a region coordinate
    int
    Gets the size of the tile, which is the width/height (both same value).
    int
    Gets the x location of the tile
    int
    Gets the y location of the tile
    int
    Gets the x location
    int
    Gets the y location
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SceneOffset

      public SceneOffset(int x, int y, int plane, int tileSize)
      Constructs a new SceneOffset
      Parameters:
      x - x location
      y - y location
      plane - plane
      tileSize - tileSize
    • SceneOffset

      public SceneOffset(int x, int y, int tileX, int tileY, int plane, int tileSize)
      Constructs a new SceneOffset
      Parameters:
      x - x location
      y - y location
      tileX - tile x location
      tileY - tile y location
      plane - plane
      tileSize - tileSize
  • Method Details

    • getX

      public int getX()
      Gets the x location
      Returns:
      x location
    • getY

      public int getY()
      Gets the y location
      Returns:
      y location
    • getPlane

      public int getPlane()
      Gets the plane
      Returns:
      plane
    • getTileX

      public int getTileX()
      Gets the x location of the tile
      Returns:
      the x location
    • getTileY

      public int getTileY()
      Gets the y location of the tile
      Returns:
      the y location
    • getSceneX

      public int getSceneX()
      Gets the x location as a region coordinate
      Returns:
      (x * tileSize) + tileX
    • getSceneY

      public int getSceneY()
      Gets the y location as a region coordinate
      Returns:
      (y * tileSize) + tileY
    • getTileSize

      public int getTileSize()
      Gets the size of the tile, which is the width/height (both same value).
      Returns:
      the size of the tile
    • toString

      public String toString()
      Overrides:
      toString in class Object