Class MapObjectLoader
java.lang.Object
de.gurkenlabs.litiengine.environment.MapObjectLoader
- All Implemented Interfaces:
IMapObjectLoader
- Direct Known Subclasses:
CollisionBoxMapObjectLoader,CreatureMapObjectLoader,CustomMapObjectLoader,EmitterMapObjectLoader,LightSourceMapObjectLoader,MapAreaMapObjectLoader,PropMapObjectLoader,SoundSourceMapObjectLoader,SpawnpointMapObjectLoader,StaticShadowMapObjectLoader,TriggerMapObjectLoader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapObjectLoader(MapObjectType mapObjectType) protectedMapObjectLoader(String mapObjectType) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterLoad(Collection<IEntity> entities, IMapObject mapObject) This method is called externally on the loader instance after the entities have been loaded.protected booleanisMatchingType(IMapObject mapObject) static voidloadDefaultProperties(IEntity entity, IMapObject mapObject) Loads engine default properties to the specifiedIEntityinstance: width, height mapId name location tags Also, this supports predefinedCustomMapObjectProperties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gurkenlabs.litiengine.environment.IMapObjectLoader
load
-
Constructor Details
-
MapObjectLoader
-
MapObjectLoader
-
-
Method Details
-
getMapObjectType
- Specified by:
getMapObjectTypein interfaceIMapObjectLoader
-
loadDefaultProperties
Loads engine default properties to the specifiedIEntityinstance:- width, height
- mapId
- name
- location
- tags
CustomMapObjectProperties. It loads the specified custom properties via reflection.- Parameters:
entity- The entity instance that will be initialized.mapObject- The mapObject that provides the static information for the new entity.- See Also:
-
afterLoad
Description copied from interface:IMapObjectLoaderThis method is called externally on the loader instance after the entities have been loaded.- Specified by:
afterLoadin interfaceIMapObjectLoader- Parameters:
entities- The loaded entities.mapObject- The map object by which the entities have been loaded.
-
isMatchingType
-