Class 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 with Subsystem 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 Detail

      • EffectManager

        public EffectManager()
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface Subsystem
      • 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.