On 3/31/03 at 10:51 AM [EMAIL PROTECTED] wrote:
Could the ATC manager be implemented as a low-priority thread which is woken up every so often (few seconds) to update the list of distances to the ground stations, and additionally if a frequency is changed? The realtime loop would then always have ready-to-use references to the currently selected stations.
The update function of the ATC manager *is* the realtime loop. This handles updating the currently selected stations, and updating which stations should be currently selected. This results in a nice clean interface to Flightgear proper:
globals->get_ATC_mgr()->Init();
and
globals->get_ATC_mgr()->Update();
With the capital letter?
It would be winderfull if you would use the FGSubsystem class and rename the to init() and update()
Erik
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel