From e118b1f5d8071460e3a9d4d731c6d69221f785dc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 6 Mar 2021 19:44:58 +0000 Subject: Carve up the mess in game/vehicles --- game/vehicles/vehicle.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'game/vehicles/vehicle.h') diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h index 89a6901..659821f 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -1,28 +1,14 @@ #ifndef VEHICLE_H #define VEHICLE_H +#include "linkHistory.h" #include #include #include #include -#include -#include class Location; -class LinkHistory { -public: - using WEntry = std::pair; - using Entry = std::pair; - Entry add(const LinkWPtr &, unsigned char); - [[nodiscard]] Entry getCurrent() const; - [[nodiscard]] Entry getAt(float, float *) const; - -private: - std::vector links; - float totalLen {0.F}; -}; - class Vehicle : public WorldObject, public Renderable { public: explicit Vehicle(const LinkPtr & link, float linkDist = 0); -- cgit v1.2.3