2012-02-13 13:47:03 -08:00
|
|
|
|
|
|
|
// cSimulatorManager.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-26 12:57:12 -08:00
|
|
|
#pragma once
|
2012-02-13 13:47:03 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-26 12:57:12 -08:00
|
|
|
#include "cSimulator.h"
|
2012-02-13 13:47:03 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-26 12:57:12 -08: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 13:47:03 -08:00
|
|
|
void RegisterSimulator(cSimulator * a_Simulator, short a_Rate); // Takes ownership of the simulator object!
|
2011-12-26 12:57:12 -08:00
|
|
|
|
|
|
|
protected:
|
2012-02-13 13:47:03 -08:00
|
|
|
|
|
|
|
typedef std::vector <std::pair<cSimulator *, short> *> cSimulators;
|
|
|
|
|
|
|
|
cSimulators m_Simulators;
|
|
|
|
long long m_Ticks;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|