Skip to content
josephhamm edited this page Jan 23, 2014 · 1 revision

This class handles all state-related functionalities. Mainly, however, it handles the timer of the game as it both increments the timer (using a built-in function to detect how much time has passed since the last frame) and stores it for any class to use. It should be noted that the increment function State.tick() must be synchronized as otherwise the timer may sometimes come up as 0 after aircraft have collided.

Clone this wiki locally