Class Layer
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.Layer
- All Implemented Interfaces:
ICustomPropertyProvider,ILayer
- Direct Known Subclasses:
GroupLayer,ImageLayer,MapObjectLayer,TileLayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterUnmarshal(jakarta.xml.bind.Unmarshaller u, Object parent) intGets the height.intgetId()getMap()getName()Gets the name.Gets both the X and the Y offset of the layer.intGets the horizontal offset of the layer.intGets the vertical offset of the layer.floatGets the opacity.Gets the size in tiles.intgetWidth()Gets the width.booleanChecks if is visible.voidsetHeight(int height) protected voidvoidvoidsetOpacity(float opacity) voidsetRenderType(RenderType renderType) voidsetVisible(boolean visible) voidsetWidth(int width) Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Constructor Details
-
Layer
public Layer() -
Layer
Copy Constructor for copying instances of Layers.- Parameters:
layerToBeCopied- the layer we want to copy
-
-
Method Details
-
getHeight
public int getHeight()Gets the height. -
getId
public int getId() -
getName
Description copied from interface:ILayerGets the name. -
getOpacity
public float getOpacity()Description copied from interface:ILayerGets the opacity.- Specified by:
getOpacityin interfaceILayer- Returns:
- the opacity
-
getOffset
Description copied from interface:ILayerGets both the X and the Y offset of the layer. -
getOffsetX
public int getOffsetX()Description copied from interface:ILayerGets the horizontal offset of the layer.- Specified by:
getOffsetXin interfaceILayer- Returns:
- the x offset
-
getOffsetY
public int getOffsetY()Description copied from interface:ILayerGets the vertical offset of the layer.- Specified by:
getOffsetYin interfaceILayer- Returns:
- the y offset
-
getRenderType
- Specified by:
getRenderTypein interfaceILayer
-
getSizeInTiles
Description copied from interface:ILayerGets the size in tiles.- Specified by:
getSizeInTilesin interfaceILayer- Returns:
- the size in tiles
-
getWidth
public int getWidth()Gets the width. -
getMap
-
isVisible
public boolean isVisible()Description copied from interface:ILayerChecks if is visible. -
setName
-
setWidth
public void setWidth(int width) -
setHeight
public void setHeight(int height) -
setOpacity
public void setOpacity(float opacity) - Specified by:
setOpacityin interfaceILayer
-
setRenderType
- Specified by:
setRenderTypein interfaceILayer
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceILayer
-
setMap
-
afterUnmarshal
-