public class TiledObjectType extends Object implements TiledCustomizable
A TiledObjectType represents a single object type read from a Tiled object types XML file. It corresponds to an <objecttype> tag in such a file.
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Returns the color used to display objects of this type in the Tiled
editor.
|
String |
getName()
Returns this object type's name.
|
Map<String,Object> |
getProperties()
Returns an unmodifiable Map view of this entity's custom properties.
|
Object |
getProperty(String name)
Returns the value of this entity's custom property with the specified
name, or null if no such property was specified.
|
public final String getName()
public final Color getColor()
public final Map<String,Object> getProperties()
TiledCustomizable
java.awt.Color
for a color, TiledFile for a file, and TiledObject for an object (unless
the object property is unset, in which case the value is null).getProperties
in interface TiledCustomizable
public final Object getProperty(String name)
TiledCustomizable
java.awt.Color
for a color, TiledFile for a file, and
TiledObject for an object (unless the object property is unset, in which
case the value is null).getProperty
in interface TiledCustomizable
name
- The name of the property whose value is to be returnedCopyright © 2020. All rights reserved.