public class TileGame extends FeaturableModel implements Tile
Constructor and Description |
---|
TileGame(Integer sheet,
int number,
double x,
double y,
int width,
int height)
Create a tile.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
getHeight() |
int |
getInTileHeight()
Get the height in tile.
|
int |
getInTileWidth()
Get the width in tile.
|
int |
getInTileX()
Get horizontal tile location.
|
int |
getInTileY()
Get vertical tile location.
|
int |
getNumber()
Get tile index number.
|
Integer |
getSheet()
Get sheet number.
|
int |
getWidth() |
double |
getX() |
double |
getY() |
int |
hashCode() |
addFeature, addFeatureAndGet, checkListener, clearCache, getFeature, getFeatures, getFeaturesType, getMedia, hasFeature
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addFeature, addFeatureAndGet, checkListener, getMedia
getFeature, getFeatures, getFeaturesType, hasFeature
public TileGame(Integer sheet, int number, double x, double y, int width, int height)
sheet
- The sheet number (must be positive or equal to 0).number
- The tile number on sheet (must be positive or equal to 0).x
- The horizontal location.y
- The vertical location.width
- The tile width (must be strictly positive).height
- The tile height (must be strictly positive).LionEngineException
- If invalid arguments.public int getNumber()
Tile
public double getX()
getX
in interface Localizable
public double getY()
getY
in interface Localizable
public int getInTileX()
Tiled
getInTileX
in interface Tiled
public int getInTileY()
Tiled
getInTileY
in interface Tiled
public int getInTileWidth()
Tiled
getInTileWidth
in interface Tiled
public int getInTileHeight()
Tiled
getInTileHeight
in interface Tiled
Copyright © 2017 Byron 3D Games Studio. All rights reserved.