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