Class PauseStateManager

    • Field Detail

      • m_Paused

        protected boolean m_Paused
        whether the state is paused.
    • Constructor Detail

      • PauseStateManager

        public PauseStateManager()
        Initializes the handler.
    • Method Detail

      • addListener

        public void addListener​(FlowPauseStateListener l)
        Adds the specified listener.
        Parameters:
        l - the listener to add
      • removeListener

        public void removeListener​(FlowPauseStateListener l)
        Removes the specified listener.
        Parameters:
        l - the listener to remove
      • notifyListeners

        protected void notifyListeners​(FlowPauseStateEvent e)
        Notifies all listeners.
        Parameters:
        e - the event to send
      • pause

        public void pause​(Actor source)
        Pauses the flow.
        Parameters:
        source - the flow that triggers the pausing
      • resume

        public void resume​(Actor source)
        Resumes the flow.
        Parameters:
        source - the flow that triggers the resuming
      • isPaused

        public boolean isPaused()
        Returns whether the handler is in paused state.
        Returns:
        true if in paused state