summaryrefslogtreecommitdiff
path: root/game/vehicles/vehicle.cpp
blob: d3cae1d6d91bf55ec31cd4aae18ef863f6c1dfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
}