]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.hxx
Mathias Fröhlich:
[simgear.git] / simgear / structure / event_mgr.hxx
index 07c65d5faa9a739869de487d6bc2895541de6d86..746f03c0f7cd9a36ff3b6a342b78ca2439e863ba 100644 (file)
@@ -42,6 +42,7 @@ private:
     int parent(int n) { return ((n+1)/2) - 1; }
     int lchild(int n) { return ((n+1)*2) - 1; }
     int rchild(int n) { return ((n+1)*2 + 1) - 1; }
+    double pri(int n) { return _table[n].pri; }
     void swap(int a, int b) {
        HeapEntry tmp = _table[a];
        _table[a] = _table[b];
@@ -50,7 +51,9 @@ private:
     void siftDown(int n);
     void siftUp(int n);
     void growArray();
-    void check();
+
+    // gcc complains there is no function specification anywhere.
+    // void check();
 
     double _now;
     HeapEntry *_table;
@@ -61,12 +64,13 @@ private:
 class SGEventMgr : public SGSubsystem
 {
 public:
-    SGEventMgr() { _freezeProp = 0; }
+    SGEventMgr() { _rtProp = 0; }
+    ~SGEventMgr() { _rtProp = 0; }
 
     virtual void init() {}
     virtual void update(double delta_time_sec);
 
-    void setFreezeProperty(SGPropertyNode* node) { _freezeProp = node; }
+    void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; }
 
     /**
      * Add a single function callback event as a repeating task.
@@ -114,6 +118,7 @@ private:
              bool repeat, bool simtime);
 
     SGPropertyNode* _freezeProp;
+    SGPropertyNode* _rtProp;
     SGTimerQueue _rtQueue; 
     SGTimerQueue _simQueue;
 };