Package gaiasky.scene.task
Class ParticleSetUpdaterTask
java.lang.Object
gaiasky.scene.task.ParticleSetUpdaterTask
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final double
protected static final double
protected static final double
protected static final double
-
Constructor Summary
ConstructorDescriptionParticleSetUpdaterTask
(com.badlogic.ashley.core.Entity entity, ParticleSet particleSet, StarSet starSet) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
Event notification call.void
run()
void
Triggers the update task if the requirements for it are met: Set is not updating. Opacity is not 0. Time since last update is not larger than updateInterval*2. The camera has moved a lot. Time is on and very fast.
-
Field Details
-
UPDATE_INTERVAL_MS
protected static final double UPDATE_INTERVAL_MS- See Also:
-
UPDATE_INTERVAL_MS_2
protected static final double UPDATE_INTERVAL_MS_2- See Also:
-
CAM_DX_TH
protected static final double CAM_DX_TH -
CAM_DX_TH_SQ
protected static final double CAM_DX_TH_SQ
-
-
Constructor Details
-
ParticleSetUpdaterTask
public ParticleSetUpdaterTask(com.badlogic.ashley.core.Entity entity, ParticleSet particleSet, StarSet starSet)
-
-
Method Details
-
update
Triggers the update task if the requirements for it are met:- Set is not updating.
- Opacity is not 0.
- Time since last update is not larger than updateInterval*2.
- The camera has moved a lot.
- Time is on and very fast.
- Parameters:
camera
- The camera.
-
run
public void run() -
notify
Description copied from interface:IObserver
Event notification call. -
dispose
public void dispose()
-