2012-02-13 16:47:03 -05:00
|
|
|
|
|
|
|
// cSimulatorManager.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-26 15:57:12 -05:00
|
|
|
#pragma once
|
2012-02-13 16:47:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-26 15:57:12 -05:00
|
|
|
#include "cSimulator.h"
|
2012-02-13 16:47:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-26 15:57:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
class cSimulatorManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cSimulatorManager();
|
|
|
|
~cSimulatorManager();
|
|
|
|
|
|
|
|
void Simulate( float a_Dt );
|
|
|
|
void WakeUp(int a_X, int a_Y, int a_Z);
|
|
|
|
|
2012-02-13 16:47:03 -05:00
|
|
|
void RegisterSimulator(cSimulator * a_Simulator, short a_Rate); // Takes ownership of the simulator object!
|
2011-12-26 15:57:12 -05:00
|
|
|
|
|
|
|
protected:
|
2012-02-13 16:47:03 -05:00
|
|
|
|
|
|
|
typedef std::vector <std::pair<cSimulator *, short> *> cSimulators;
|
|
|
|
|
|
|
|
cSimulators m_Simulators;
|
|
|
|
long long m_Ticks;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|