Package gaiasky.scene.system.initialize
Class ParticleInitializer
java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.initialize.AbstractInitSystem
gaiasky.scene.system.initialize.ParticleInitializer
- All Implemented Interfaces:
IObserver,EntityInitializer
Initializes the old Particle and Star objects.
-
Field Summary
Fields inherited from class gaiasky.scene.system.initialize.AbstractInitSystem
engineBackup, loggerFields inherited from class com.badlogic.ashley.core.EntitySystem
priority -
Constructor Summary
ConstructorsConstructorDescriptionParticleInitializer(boolean setUp, com.badlogic.ashley.core.Family family, int priority) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeEntity(com.badlogic.ashley.core.Entity entity) Contains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index.voidEvent notification call.voidsetUpEntity(com.badlogic.ashley.core.Entity entity) Contains the set up of this entity, after the entity has been added to the scene graph and it is in the index.Methods inherited from class gaiasky.scene.system.initialize.AbstractInitSystem
addedToEngine, isModeInit, isModeSetUp, processEntity, setModeInit, setModeSetUp, toStringMethods inherited from class com.badlogic.ashley.systems.IteratingSystem
getEntities, getFamily, removedFromEngine, updateMethods inherited from class com.badlogic.ashley.core.EntitySystem
checkProcessing, getEngine, setProcessing
-
Constructor Details
-
ParticleInitializer
public ParticleInitializer(boolean setUp, com.badlogic.ashley.core.Family family, int priority)
-
-
Method Details
-
initializeEntity
public void initializeEntity(com.badlogic.ashley.core.Entity entity) Description copied from interface:EntityInitializerContains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index.- Specified by:
initializeEntityin interfaceEntityInitializer- Parameters:
entity- The entity.
-
setUpEntity
public void setUpEntity(com.badlogic.ashley.core.Entity entity) Description copied from interface:EntityInitializerContains the set up of this entity, after the entity has been added to the scene graph and it is in the index.- Specified by:
setUpEntityin interfaceEntityInitializer- Parameters:
entity- The entity.
-
notify
Description copied from interface:IObserverEvent notification call.
-