3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_SIMPLEPHYSICS_H_
9 #define LIBMARKLIN_SIMPLEPHYSICS_H_
12 #include "controlmodel.h"
13 #include "traincontrol.h"
17 class SimplePhysics: public ControlModel
20 TrainControl target_speed;
27 virtual void set_control(const std::string &, float);
28 virtual const TrainControl &get_control(const std::string &) const;
30 virtual float get_speed() const { return speed; }
31 virtual float get_braking_distance() const;
33 virtual void tick(const Msp::Time::TimeDelta &);
36 } // namespace Marklin