-
Method Summary
int
double
Gets the horizontal parallax scrolling factor of the layer.
int
Gets both the X and the Y offset of the layer.
double
Gets the horizontal offset of the layer.
double
Gets the vertical offset of the layer.
float
Gets a tint color that affects the way contents of this layer are rendered.
double
Gets the vertical parallax scrolling factor of the layer.
int
boolean
void
void
void
void
void
Sets the tint color of this layer.
void
void
Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Method Details
-
-
getName
Gets the name.
- Returns:
- the name
-
-
getOpacity
float getOpacity()
Gets the opacity.
- Returns:
- the opacity
-
setOpacity
void setOpacity(float opacity)
-
getOffset
Gets both the X and the Y offset of the layer.
- Returns:
- a
Point2D representing the offset
-
getOffsetX
double getOffsetX()
Gets the horizontal offset of the layer.
- Returns:
- the x offset
-
getOffsetY
double getOffsetY()
Gets the vertical offset of the layer.
- Returns:
- the y offset
-
getHorizontalParallaxFactor
double getHorizontalParallaxFactor()
Gets the horizontal parallax scrolling factor of the layer. Defaults to 1.0.
- Returns:
- The horizontal parallax scrolling factor.
-
getVerticalParallaxFactor
double getVerticalParallaxFactor()
Gets the vertical parallax scrolling factor of the layer. Defaults to 1.0.
- Returns:
- The vertical parallax scrolling factor.
-
getTintColor
Gets a tint color that affects the way contents of this layer are rendered.
- Returns:
- A color that is used to tint the visible contents of this layer.
-
setTintColor
void setTintColor(Color tintcolor)
Sets the tint color of this layer.
- Parameters:
tintcolor - The tint color of this layer.
-
getSizeInTiles
Gets the size in tiles.
- Returns:
- the size in tiles
-
-
isVisible
boolean isVisible()
Checks if is visible.
- Returns:
- true, if is visible
-
setVisible
void setVisible(boolean visible)
-
-
-
-
setWidth
void setWidth(int newWidth)
-
getHeight
int getHeight()
-
setHeight
void setHeight(int newWidth)