fullscreen(false),
debug(false),
network(false),
- simulate(false)
+ simulate(false),
+ sim_speed(1.0f)
{
string res;
getopt.add_option('g', "debug", debug, GetOpt::NO_ARG);
getopt.add_option('d', "driver", driver, GetOpt::REQUIRED_ARG);
getopt.add_option('s', "simulate", simulate, GetOpt::NO_ARG);
+ getopt.add_option( "sim-speed", sim_speed, GetOpt::REQUIRED_ARG);
getopt.add_option('n', "network", network, GetOpt::NO_ARG);
getopt.add_option( "state", state_fn, GetOpt::REQUIRED_ARG);
getopt(argc, argv);
const std::map<unsigned, Train *> &get_trains() const { return trains; }
void remove_train(Train &);
- void tick();
+ void tick(float = 1.0f);
private:
void step(const Msp::Time::TimeDelta &);
public: