2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
// cSimulatorManager.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-23 18:09:57 -04:00
|
|
|
#include "Simulator.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cSimulatorManager
|
|
|
|
{
|
|
|
|
public:
|
2012-10-27 03:51:01 -04:00
|
|
|
cSimulatorManager(void);
|
2012-06-14 09:06:06 -04:00
|
|
|
~cSimulatorManager();
|
|
|
|
|
2012-10-27 03:51:01 -04:00
|
|
|
void Simulate(float a_Dt);
|
|
|
|
void WakeUp(int a_BlockX, int a_BlockY, int a_BlockZ);
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-10-27 03:51:01 -04:00
|
|
|
void RegisterSimulator(cSimulator * a_Simulator, int a_Rate); // Takes ownership of the simulator object!
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2012-10-27 03:51:01 -04:00
|
|
|
typedef std::vector <std::pair<cSimulator *, int> > cSimulators;
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
cSimulators m_Simulators;
|
|
|
|
long long m_Ticks;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|