summaryrefslogtreecommitdiff
path: root/game/vehicles/railloco.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 17:32:00 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 17:37:45 +0000
commit41d68b7145ddf5ac0e7b2fd7f0d22e428b356230 (patch)
tree91f2636971e392c67a4fb7e959bff27d388501cd /game/vehicles/railloco.h
parentMaintain a history of links traversed (diff)
downloadilt-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.h10
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;
};