#ifndef RAILVEHICLECLASS_H #define RAILVEHICLECLASS_H #include "gfx/models/mesh.h" #include #include #include class Shader; class Texture; class ObjParser; class Location; class RailVehicleClass { public: explicit RailVehicleClass(const std::string & name); void render(const Shader &, const Location &, const std::array &) const; std::array bogies; MeshPtr bodyMesh; std::shared_ptr texture; float wheelBase; float length; float maxSpeed; private: RailVehicleClass(std::unique_ptr obj, std::shared_ptr); static float bogieOffset(ObjParser & o); static float objectLength(ObjParser & o); }; using RailVehicleClassPtr = std::shared_ptr; #endif