Package com.epicbot.api.shared.model
Class SceneOffset
java.lang.Object
com.epicbot.api.shared.model.SceneOffset
Scene offset is used to determine the exact location inside a scene/region.
-
Constructor Summary
ConstructorsConstructorDescriptionSceneOffset(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
Modifier and TypeMethodDescriptionintgetPlane()Gets the planeintGets the x location as a region coordinateintGets the y location as a region coordinateintGets the size of the tile, which is the width/height (both same value).intgetTileX()Gets the x location of the tileintgetTileY()Gets the y location of the tileintgetX()Gets the x locationintgetY()Gets the y locationtoString()
-
Constructor Details
-
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 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
-