Class TrajectoryInitializer
java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.initialize.AbstractInitSystem
gaiasky.scene.system.initialize.TrajectoryInitializer
- All Implemented Interfaces:
EntityInitializer
Initializes trajectory entities.
-
Field Summary
Fields inherited from class gaiasky.scene.system.initialize.AbstractInitSystem
engineBackupFields inherited from class com.badlogic.ashley.core.EntitySystem
priority -
Constructor Summary
ConstructorsConstructorDescriptionTrajectoryInitializer(boolean setUp, com.badlogic.ashley.core.Family family, int priority) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitializeBodyConnection(com.badlogic.ashley.core.Entity entity, Trajectory trajectory) voidinitializeEntity(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.static voidloadTrajectory(com.badlogic.ashley.core.Entity entity, Base base, Trajectory trajectory, Verts verts) Loads the provider class and samples this trajectory.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
-
TrajectoryInitializer
public TrajectoryInitializer(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.- Parameters:
entity- The entity.
-
loadTrajectory
public static void loadTrajectory(com.badlogic.ashley.core.Entity entity, Base base, Trajectory trajectory, Verts verts) Loads the provider class and samples this trajectory.- Parameters:
entity- The entity.base- The base component.trajectory- The trajectory.verts- The verts object.
-
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.- Parameters:
entity- The entity.
-
initializeBodyConnection
public static void initializeBodyConnection(com.badlogic.ashley.core.Entity entity, Trajectory trajectory)
-