Package com.epicbot.api.shared.model
Class SceneOffset
- java.lang.Object
-
- com.epicbot.api.shared.model.SceneOffset
-
public class SceneOffset extends java.lang.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 SceneOffsetSceneOffset(int x, int y, int tileX, int tileY, int plane, int tileSize)
Constructs a new SceneOffset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPlane()
Gets the planeint
getSceneX()
Gets the x location as a region coordinateint
getSceneY()
Gets the y location as a region coordinateint
getTileSize()
Gets the size of the tile, which is the width/height (both same value).int
getTileX()
Gets the x location of the tileint
getTileY()
Gets the y location of the tileint
getX()
Gets the x locationint
getY()
Gets the y locationjava.lang.String
toString()
-
-
-
Constructor Detail
-
SceneOffset
public SceneOffset(int x, int y, int plane, int tileSize)
Constructs a new SceneOffset- Parameters:
x
- x locationy
- y locationplane
- planetileSize
- tileSize
-
SceneOffset
public SceneOffset(int x, int y, int tileX, int tileY, int plane, int tileSize)
Constructs a new SceneOffset- Parameters:
x
- x locationy
- y locationtileX
- tile x locationtileY
- tile y locationplane
- planetileSize
- tileSize
-
-
Method Detail
-
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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-