summaryrefslogtreecommitdiff
path: root/game/vehicles/vehicle.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/vehicles/vehicle.h')
-rw-r--r--game/vehicles/vehicle.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h
index 25ed5bb..945d43b 100644
--- a/game/vehicles/vehicle.h
+++ b/game/vehicles/vehicle.h
@@ -1,9 +1,9 @@
#ifndef VEHICLE_H
#define VEHICLE_H
-#include "game/physical.h"
#include <game/network/link.h>
#include <game/worldobject.h>
+#include <gfx/renderable.h>
#include <memory>
#include <string>
#include <utility>
@@ -22,12 +22,14 @@ private:
float totalLen {0.F};
};
-class Vehicle : public WorldObject, public Physical {
+class Vehicle : public WorldObject, public Renderable {
public:
- Vehicle(const LinkPtr & link, const std::string & obj, const std::string & tex);
- float linkDist {0}; // distance long current link
+ Vehicle(const LinkPtr & link, float linkDist = 0);
+ float linkDist; // distance long current link
float speed {50}; // speed in m/s (~75 km/h)
+ Transform location;
+
protected:
LinkHistory linkHist;
};