Javadoc
Waits for the condition to be satisfied. The game events will not be fired while the condition is satisfied. The
events will be silently swallowed if the game is still waiting. Do not use this with a timer unless you want a
deadlock to happen. This is because the
GameTimer relies on the update handlers and this will keep the
game waiting indefinitely. Also note that this is not exactly synchronous, it will take effect only after the
current event handler exits.