diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 17:32:00 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 17:37:45 +0000 |
commit | 41d68b7145ddf5ac0e7b2fd7f0d22e428b356230 (patch) | |
tree | 91f2636971e392c67a4fb7e959bff27d388501cd /game/vehicles/railloco.h | |
parent | Maintain a history of links traversed (diff) | |
download | ilt-41d68b7145ddf5ac0e7b2fd7f0d22e428b356230.tar.bz2 ilt-41d68b7145ddf5ac0e7b2fd7f0d22e428b356230.tar.xz ilt-41d68b7145ddf5ac0e7b2fd7f0d22e428b356230.zip |
Correctly follow rails according to wheelbase
Diffstat (limited to 'game/vehicles/railloco.h')
-rw-r--r-- | game/vehicles/railloco.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/game/vehicles/railloco.h b/game/vehicles/railloco.h index 833b661..ff8871b 100644 --- a/game/vehicles/railloco.h +++ b/game/vehicles/railloco.h @@ -1,11 +1,17 @@ #include "game/network/link.h" +#include "game/vehicles/vehicle.h" #include "game/worldobject.h" -#include "vehicle.h" #include <string> -class RailLoco : public Vehicle { +class RailVehicle : public Vehicle { public: using Vehicle::Vehicle; + float wheelBase; +}; + +class RailLoco : public RailVehicle { +public: + using RailVehicle::RailVehicle; void tick(TickDuration elapsed) override; }; |