Interface UpdatableHandler

    • Method Summary

      Modifier and Type Method Description
      void registerEvent​(Updatable updatable)
      Register an updatable by adding it to the group
      void runAllEvents()
      Run all events.
      void unregisterEvent​(Updatable updatable)
      Unregister an updatable by removing it from the group
    • Method Detail

      • registerEvent

        void registerEvent​(Updatable updatable)
        Register an updatable by adding it to the group
        Parameters:
        updatable - the Updatable to be added in the group
      • unregisterEvent

        void unregisterEvent​(Updatable updatable)
        Unregister an updatable by removing it from the group
        Parameters:
        updatable - the Updatable to be removed from the group
      • runAllEvents

        void runAllEvents()
        Run all events. This method should usually call the `update` method from the Updatables
        See Also:
        Updatable