public abstract class MapObjectLoader extends java.lang.Object implements IMapObjectLoader
Modifier | Constructor and Description |
---|---|
protected |
MapObjectLoader(MapObjectType mapObjectType) |
protected |
MapObjectLoader(java.lang.String mapObjectType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMapObjectType() |
static void |
loadDefaultProperties(IEntity entity,
IMapObject mapObject)
Loads engine default properties to the specified
IEntity instance:
width, height
mapId
name
location
tags
Also, this supports predefined CustomMapObjectProperties . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
protected MapObjectLoader(java.lang.String mapObjectType)
protected MapObjectLoader(MapObjectType mapObjectType)
public java.lang.String getMapObjectType()
getMapObjectType
in interface IMapObjectLoader
public static void loadDefaultProperties(IEntity entity, IMapObject mapObject)
IEntity
instance:
CustomMapObjectProperties
. It loads the specified custom properties via reflection.entity
- The entity instance that will be initialized.mapObject
- The mapObject that provides the static information for the new entity.TmxProperty