-
Notifications
You must be signed in to change notification settings - Fork 1
WebracerRace
This bundle provides and implements the race logic and coordinates the clients. It provides an interface called "Race" with methods which can be called by the UI, and a callback interface "UICallback" which is used for communicating from the race to the UI. This callback prevents having circular dependencies between the race and the UI.
The methods of "Race" are implemented in the "RaceImpl" class. This class keeps track of the running clients and coordinates information exchange between the clients, especially about the current positions of the cars. The class "Racecontrol" keeps track of timeouts and sends informational messages to the clients.
Since this bundle serves the track information to the UI, and saves the race results, it has dependencies to the WebracerTrack and WebracerDB bundles.