Class 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 a ComplexScene for 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
      void cancel​(Effect effect)  
      void cancelAll()  
      void play​(Effect effect)  
      void render​(GraphicsContext graphics)  
      void start()
      Initiallization logic that is performed every time the scene is started.
      void update​(float deltaTime)
      Updates this object for the current frame.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface nl.colorize.multimedialib.scene.Scene

        end
    • Constructor Detail

      • EffectManager

        public EffectManager()
    • Method Detail

      • start

        public void start()
        Description copied from interface: Scene
        Initiallization logic that is performed every time the scene is started. Implementing this method is optional, the default implementation does nothing.
        Specified by:
        start in interface Scene
      • 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: Updatable
        Updates this object for the current frame.
        Specified by:
        update in interface Updatable
        Parameters:
        deltaTime - Elapsed time since the last frame, in seconds.