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/railVehicle.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 game/vehicles/railVehicle.h (limited to 'game/vehicles/railVehicle.h') diff --git a/game/vehicles/railVehicle.h b/game/vehicles/railVehicle.h new file mode 100644 index 0000000..a089f1d --- /dev/null +++ b/game/vehicles/railVehicle.h @@ -0,0 +1,29 @@ +#ifndef RAILVEHICLE_H +#define RAILVEHICLE_H + +#include "gfx/renderable.h" +#include "railVehicleClass.h" +#include +#include +#include +#include + +class Shader; + +class Train; +class RailVehicle : public Renderable { +public: + explicit RailVehicle(RailVehicleClassPtr rvc) : rvClass {std::move(rvc)} { } + + void move(const Train *, float & trailBy); + + void render(const Shader & shader) const override; + + Location location; + + RailVehicleClassPtr rvClass; + std::array bogies; +}; +using RailVehiclePtr = std::unique_ptr; + +#endif -- cgit v1.2.3