Class ActionManager

  • All Implemented Interfaces:
    Drawable, Updatable

    public class ActionManager
    extends java.lang.Object
    implements Updatable, Drawable
    Mechanism to manage and registration and playback of multiple Actions and Effects during a scene. The scene is responsible for updating and drawing the ActionManager every 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 Detail

      • ActionManager

        public ActionManager()
    • 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: Updatable
        Updates this object for the current frame.
        Specified by:
        update in interface Updatable
        Parameters:
        deltaTime - Elapsed time since the last frame, in seconds.