Move source to src.

This commit is contained in:
Mike Bostock 2012-12-14 10:06:18 -08:00
parent 6f246722f9
commit 2442efc1a6
82 changed files with 13 additions and 236 deletions

View file

@ -1,34 +0,0 @@
// -*- C++ -*-
#ifndef MBOSTOCK_SIMULATION_H
#define MBOSTOCK_SIMULATION_H
#include <stdint.h>
namespace mbostock {
class Simulation {
public:
Simulation(uint32_t timeStepMs);
virtual ~Simulation() {}
virtual void togglePaused();
inline bool paused() const { return paused_; }
void simulate();
protected:
virtual void step() = 0;
private:
uint32_t elapsedMillis();
uint32_t timeStepMs_;
uint32_t skippedMs_;
uint32_t lastTimeMs_;
bool paused_;
};
}
#endif