Class LightSourceMapObjectLoader
java.lang.Object
de.gurkenlabs.litiengine.environment.MapObjectLoader
de.gurkenlabs.litiengine.environment.LightSourceMapObjectLoader
- All Implemented Interfaces:
IMapObjectLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LightSourcecreateLightSource(IMapObject mapObject, int intensity, Color color, LightSource.Type lightType, boolean active) load(Environment environment, IMapObject mapObject) Loads entities from the specified map object within the given environment.Methods inherited from class MapObjectLoader
afterLoad, getMapObjectType, isMatchingType, loadDefaultProperties
-
Constructor Details
-
LightSourceMapObjectLoader
protected LightSourceMapObjectLoader()
-
-
Method Details
-
load
Description copied from interface:IMapObjectLoaderLoads entities from the specified map object within the given environment.- Parameters:
environment- The environment in which the entities are being loaded.mapObject- The map object containing the data for the entities.- Returns:
- A collection of
IEntityinstances loaded from the map object.
-
createLightSource
protected LightSource createLightSource(IMapObject mapObject, int intensity, Color color, LightSource.Type lightType, boolean active)
-