Class TiledLayer
- java.lang.Object
-
- jadex.extension.envsupport.observer.graphics.layer.Layer
-
- jadex.extension.envsupport.observer.graphics.layer.TiledLayer
-
public class TiledLayer extends Layer
A layer consisting of image tiles.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
texturePath_
Texture path.-
Fields inherited from class jadex.extension.envsupport.observer.graphics.layer.Layer
LAYER_TYPE_COLOR, LAYER_TYPE_GRID, LAYER_TYPE_TILED
-
-
Constructor Summary
Constructors Constructor Description TiledLayer()
Creates a new TiledLayer.TiledLayer(IVector2 tileSize, java.lang.Object color, java.lang.String texturePath)
Creates a new TiledLayer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class jadex.extension.envsupport.observer.graphics.layer.Layer
flushRenderInfo, getColor, getRenderInfo, getType, setColor, setRenderInfo
-
-
-
-
Constructor Detail
-
TiledLayer
public TiledLayer()
Creates a new TiledLayer.
-
TiledLayer
public TiledLayer(IVector2 tileSize, java.lang.Object color, java.lang.String texturePath)
Creates a new TiledLayer.- Parameters:
tileSize
- size of an individual tilecolor
- the modulation colortexturePath
- resource path of the texture
-
-
Method Detail
-
getTileSize
public IVector2 getTileSize()
The tile size.
-
getInvTileSize
public IVector2 getInvTileSize()
Get the inverted tile size.
-
getTexturePath
public java.lang.String getTexturePath()
Get the texture path.- Returns:
- The texture path.
-
hashCode
public int hashCode()
Get the hash code.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Compares the layers.- Overrides:
equals
in classjava.lang.Object
-
-