public class SceneOffset
extends java.lang.Object
Constructor and 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
|
Modifier and Type | Method and Description |
---|---|
int |
getPlane()
Gets the plane
|
int |
getSceneX()
Gets the x location as a region coordinate
|
int |
getSceneY()
Gets the y location as a region coordinate
|
int |
getTileSize()
Gets the size of the tile, which is the width/height (both same value).
|
int |
getTileX()
Gets the x location of the tile
|
int |
getTileY()
Gets the y location of the tile
|
int |
getX()
Gets the x location
|
int |
getY()
Gets the y location
|
java.lang.String |
toString() |
public SceneOffset(int x, int y, int plane, int tileSize)
x
- x locationy
- y locationplane
- planetileSize
- tileSizepublic SceneOffset(int x, int y, int tileX, int tileY, int plane, int tileSize)
x
- x locationy
- y locationtileX
- tile x locationtileY
- tile y locationplane
- planetileSize
- tileSizepublic int getX()
public int getY()
public int getPlane()
public int getTileX()
public int getTileY()
public int getSceneX()
public int getSceneY()
public int getTileSize()
public java.lang.String toString()
toString
in class java.lang.Object