Package nl.colorize.multimedialib.scene
Class EffectManager
- java.lang.Object
-
- nl.colorize.multimedialib.scene.EffectManager
-
- All Implemented Interfaces:
Renderable,Updatable,Scene
public class EffectManager extends java.lang.Object implements Scene
Controls registration and playback for graphical effects that can be played as part of a scene. It can either be used in combination with aComplexScenefor 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()voidplay(Effect effect)voidrender(GraphicsContext graphics)voidstart()Initiallization logic that is performed every time the scene is started.voidupdate(float deltaTime)Updates this object for the current frame.
-
-
-
Method Detail
-
start
public void start()
Description copied from interface:SceneInitiallization logic that is performed every time the scene is started. Implementing this method is optional, the default implementation does nothing.
-
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
-
-