public class TiledLayer extends Layer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
texturePath_
Texture path.
|
LAYER_TYPE_COLOR, LAYER_TYPE_GRID, LAYER_TYPE_TILED
Constructor and Description |
---|
TiledLayer()
Creates a new TiledLayer.
|
TiledLayer(IVector2 tileSize,
java.lang.Object color,
java.lang.String texturePath)
Creates a new TiledLayer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the layers.
|
IVector2 |
getInvTileSize()
Get the inverted tile size.
|
java.lang.String |
getTexturePath()
Get the texture path.
|
IVector2 |
getTileSize()
The tile size.
|
int |
hashCode()
Get the hash code.
|
flushRenderInfo, getColor, getRenderInfo, getType, setColor, setRenderInfo
public TiledLayer()
public TiledLayer(IVector2 tileSize, java.lang.Object color, java.lang.String texturePath)
tileSize
- size of an individual tilecolor
- the modulation colortexturePath
- resource path of the texturepublic IVector2 getTileSize()
public IVector2 getInvTileSize()
public java.lang.String getTexturePath()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object