]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / event_mgr.hxx
index efd34aa9516c46681ee15df36d634ce4696d0125..699522b8082ef5ba3d5c3c9743ed15b0cfd68a03 100644 (file)
@@ -25,6 +25,7 @@ public:
     SGTimerQueue(int preSize=1);
     ~SGTimerQueue();
 
+    void clear();
     void update(double deltaSecs);
 
     double now() { return _now; }
@@ -68,12 +69,13 @@ private:
 class SGEventMgr : public SGSubsystem
 {
 public:
-    SGEventMgr() { _rtProp = 0; }
-    ~SGEventMgr() { _rtProp = 0; }
+    SGEventMgr();
+    ~SGEventMgr();
 
-    virtual void init() {}
+    virtual void init();
     virtual void update(double delta_time_sec);
     virtual void unbind();
+    virtual void shutdown();
     
     void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; }
 
@@ -128,6 +130,7 @@ private:
     SGPropertyNode_ptr _rtProp;
     SGTimerQueue _rtQueue; 
     SGTimerQueue _simQueue;
+    bool _inited;
 };
 
 #endif // _SG_EVENT_MGR_HXX