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 |
loadCollisionProperties(ICollisionEntity entity,
IMapObject mapObject) |
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, waitloadprotected MapObjectLoader(java.lang.String mapObjectType)
protected MapObjectLoader(MapObjectType mapObjectType)
public java.lang.String getMapObjectType()
getMapObjectType in interface IMapObjectLoaderpublic 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.TmxPropertypublic static void loadCollisionProperties(ICollisionEntity entity, IMapObject mapObject)