]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCdisplay.hxx
More efficient rotation matrix calc from Norm Vine.
[flightgear.git] / src / ATC / ATCdisplay.hxx
index 86ffca10966ad2b1b19ec40ad128583ad76877d5..c17d36c0659f60007e5f20bab50af672663cf879 100644 (file)
@@ -38,6 +38,9 @@ SG_USING_STD(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
     int id;
 };
 
@@ -68,10 +71,11 @@ public:
     void unbind();
 
     // Display any registered messages
-    void update(int dt);
+    void update(double dt);
 
-    // Register a single message for display when possible
-    void RegisterSingleMessage(string msg);    // OK - I know passing a string in and out is probably not good but it will have to do for now.
+    // 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.
 
     // For now we will assume only one repeating message at once
     // This is not really robust