Class MapImage
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.MapImage
- All Implemented Interfaces:
ICustomPropertyProvider,IMapImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for equality between two map images.Gets the dimension.intGets the height.Gets the source.Gets the transparent color.intgetWidth()Gets the width.inthashCode()Computes a hash code for this map image.voidsetAbsoluteSourcePath(URL absolutePath) voidsetHeight(int height) voidvoidsetTransparentColor(Color color) voidsetWidth(int width) toString()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, finalize, getClass, notify, notifyAll, 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
-
MapImage
public MapImage()Instantiates a newMapImageinstance. -
MapImage
Instantiates a newMapImageinstance by copying the specified original.- Parameters:
original- the original we want to copy
-
-
Method Details
-
getAbsoluteSourcePath
- Specified by:
getAbsoluteSourcePathin interfaceIMapImage
-
getDimension
Description copied from interface:IMapImageGets the dimension.- Specified by:
getDimensionin interfaceIMapImage- Returns:
- the dimension
-
getWidth
public int getWidth()Description copied from interface:IMapImageGets the width. -
getHeight
public int getHeight()Description copied from interface:IMapImageGets the height. -
getSource
Description copied from interface:IMapImageGets the source. -
getTransparentColor
Description copied from interface:IMapImageGets the transparent color.- Specified by:
getTransparentColorin interfaceIMapImage- Returns:
- the transparent color
-
setTransparentColor
- Specified by:
setTransparentColorin interfaceIMapImage
-
setSource
-
setAbsoluteSourcePath
- Specified by:
setAbsoluteSourcePathin interfaceIMapImage
-
setWidth
public void setWidth(int width) -
setHeight
public void setHeight(int height) -
equals
Description copied from interface:IMapImageTests for equality between two map images. Two map images are equal if they have the same absolute source path and the same transparent color. -
hashCode
public int hashCode()Computes a hash code for this map image. The hash code for a map image is equal to the hash code of its absolute source path xor the hash code of its transparent color. -
toString
-