Package nl.colorize.multimedialib.scene
Class ActionManager
- java.lang.Object
-
- nl.colorize.multimedialib.scene.ActionManager
-
public class ActionManager extends java.lang.Object implements Updatable, Drawable
Mechanism to manage and registration and playback of multipleActions andEffects during a scene. The scene is responsible for updating and drawing theActionManagerevery frame.Despite its name, this class is not only limited to playing actions. It can also play effects and other types of objects that require frame updates.
-
-
Constructor Summary
Constructors Constructor Description ActionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelAll()voidplay(Updatable action)voidplay(Action action)voidplay(Effect effect)voidplay(Timer timer)voidrender(GraphicsContext2D graphics)voidupdate(float deltaTime)Updates this object for the current frame.
-
-
-
Method Detail
-
play
public void play(Action action)
-
play
public void play(Effect effect)
-
play
public void play(Timer timer)
-
play
public void play(Updatable action)
-
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(GraphicsContext2D graphics)
-
-