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.StringtexturePath_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 booleanequals(java.lang.Object obj)Compares the layers.IVector2getInvTileSize()Get the inverted tile size.java.lang.StringgetTexturePath()Get the texture path.IVector2getTileSize()The tile size.inthashCode()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:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
Compares the layers.- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -