summaryrefslogtreecommitdiffstats
path: root/source/cSimulatorManager.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cSimulatorManager.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/source/cSimulatorManager.h b/source/cSimulatorManager.h
index de59b8536..1168e5af8 100644
--- a/source/cSimulatorManager.h
+++ b/source/cSimulatorManager.h
@@ -1,6 +1,18 @@
+
+// cSimulatorManager.h
+
+
+
+
#pragma once
+
+
+
+
#include "cSimulator.h"
-#include <vector>
+
+
+
class cSimulatorManager
@@ -12,9 +24,16 @@ public:
void Simulate( float a_Dt );
void WakeUp(int a_X, int a_Y, int a_Z);
- void RegisterSimulator(cSimulator *a_Simulator, short a_Rate);
+ void RegisterSimulator(cSimulator * a_Simulator, short a_Rate); // Takes ownership of the simulator object!
protected:
- std::vector <std::pair<cSimulator *, short> *> m_Simulators;
- long long m_Ticks;
-}; \ No newline at end of file
+
+ typedef std::vector <std::pair<cSimulator *, short> *> cSimulators;
+
+ cSimulators m_Simulators;
+ long long m_Ticks;
+};
+
+
+
+