# include <config.h>
#endif
-#include <Main/fgfs.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
#include <vector>
#include <string>
struct atcMessage {
string msg;
bool repeating;
- int counter; // count of how many iterations since posting
- int start_count; // value of counter at which display should start
- int stop_count; // value of counter at which display should stop
+ double counter; // count of how many seconds since the message was registered
+ double start_count; // value of counter at which display should start (seconds)
+ double stop_count; // value of counter at which display should stop (seconds)
int id;
double dsp_offset;
};
typedef vector<atcMessage> atcMessageList;
typedef atcMessageList::iterator atcMessageListIterator;
-class FGATCDisplay : public FGSubsystem
+class FGATCDisplay : public SGSubsystem
{
private:
// Register a single message for display after a delay of delay seconds
// Will automatically stop displaying after a suitable interval.
- void RegisterSingleMessage(string msg, int delay); // OK - I know passing a string in and out is probably not good but it will have to do for now.
+ void RegisterSingleMessage(string msg, double delay = 0.0); // OK - I know passing a string in and out is probably not good but it will have to do for now.
// For now we will assume only one repeating message at once
// This is not really robust