summaryrefslogtreecommitdiff
path: root/game/vehicles/vehicle.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-08 20:03:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-08 20:03:40 +0000
commita32a8447028798ef05af33230fbcfa3195ab430c (patch)
treeb311ea9623ac1816f48bdc1cd1f9a8f1d78091a4 /game/vehicles/vehicle.cpp
parentShut up cppcheck, an STL implementation of that would be stupid (diff)
downloadilt-a32a8447028798ef05af33230fbcfa3195ab430c.tar.bz2
ilt-a32a8447028798ef05af33230fbcfa3195ab430c.tar.xz
ilt-a32a8447028798ef05af33230fbcfa3195ab430c.zip
Initial commit of the orders/activities system
Has the main window provide some control over our test train
Diffstat (limited to 'game/vehicles/vehicle.cpp')
-rw-r--r--game/vehicles/vehicle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/game/vehicles/vehicle.cpp b/game/vehicles/vehicle.cpp
index d98533e..d3cae1d 100644
--- a/game/vehicles/vehicle.cpp
+++ b/game/vehicles/vehicle.cpp
@@ -1,8 +1,14 @@
#include "vehicle.h"
+#include "game/activity.h"
#include "game/network/link.h"
+#include "game/objective.h"
+#include "game/objectives/freeroam.h"
+#include "game/orders.h"
#include "game/vehicles/linkHistory.h"
Vehicle::Vehicle(const LinkPtr & l, float ld) : linkDist {ld}
{
linkHist.add(l, 0);
+ orders.create<FreeRoam>(&orders);
+ currentActivity = orders.current()->createActivity();
}