#ifndef Fahrt_h #define Fahrt_h #include #include #include class Fahrt { public: Fahrt(Locomotive locomotive, byte speed, MotorDirection Direction, Gleis gleis, float startbeschleunigung, Gleisabschnitt gleisabschnitt, float bremsweg); void Vorbereiten(); void Start(); void Loop(); bool IstAngekommen(); float ChangeBremsweg(float DeltaBremsweg); byte ChangeSpeed(byte DeltaSpeed); private: Locomotive _locomotive; MotorDirection _direction; Gleis _gleis; Gleisabschnitt _gleisabschnitt; bool _abschnittErkannt; byte _speed; float _startbeschleunigung; float _bremsweg; }; #endif