Package nl.colorize.multimedialib.scene
Class EffectManager
- java.lang.Object
-
- nl.colorize.multimedialib.scene.EffectManager
-
- All Implemented Interfaces:
Renderable,Subsystem,Updatable
public class EffectManager extends java.lang.Object implements Subsystem
Controls registration and playback for graphical effects that can be played as part of a scene. It can either be used in combination withSubsystemfor out-of-the-box support, but instances can also be created manually assuming the effect manager is updated and rendered during every frame.
-
-
Constructor Summary
Constructors Constructor Description EffectManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(Effect effect)voidcancelAll()voidinit()voidplay(Effect effect)voidrender(GraphicsContext graphics)voidupdate(float deltaTime)Updates this object for the current frame.
-
-
-
Method Detail
-
play
public void play(Effect effect)
-
cancel
public void cancel(Effect effect)
-
cancelAll
public void cancelAll()
-
update
public void update(float deltaTime)
Description copied from interface:UpdatableUpdates this object for the current frame.
-
render
public void render(GraphicsContext graphics)
- Specified by:
renderin interfaceRenderable
-
-