Package net.starype.quiz.api.game.event
Interface UpdatableHandler
-
- All Known Implementing Classes:
GameUpdatableHandler
public interface UpdatableHandler
Handler of a group of Updatables.- See Also:
GameUpdatableHandler
,Updatable
-
-
Method Summary
Modifier and Type Method Description void
registerEvent(Updatable updatable)
Register an updatable by adding it to the groupvoid
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
-
-