diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 14:19:21 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 14:19:21 +0000 |
commit | c08e33649931b679b17488ba6f7dab1d628213fd (patch) | |
tree | 76382c1740e4605667dce2fc74f03034f0b34960 /game/vehicles/vehicle.h | |
parent | Apply pitch to vehicles on a link (diff) | |
download | ilt-c08e33649931b679b17488ba6f7dab1d628213fd.tar.bz2 ilt-c08e33649931b679b17488ba6f7dab1d628213fd.tar.xz ilt-c08e33649931b679b17488ba6f7dab1d628213fd.zip |
Add our first vehicle
Diffstat (limited to 'game/vehicles/vehicle.h')
-rw-r--r-- | game/vehicles/vehicle.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h new file mode 100644 index 0000000..01be6a6 --- /dev/null +++ b/game/vehicles/vehicle.h @@ -0,0 +1,19 @@ +#ifndef VEHICLE_H +#define VEHICLE_H + +#include "game/physical.h" +#include <game/network/link.h> +#include <game/worldobject.h> +#include <glm/glm.hpp> +#include <string> + +class Vehicle : public WorldObject, public Physical { +public: + Vehicle(LinkPtr link, const std::string & obj, const std::string & tex); + LinkPtr link; // Which link are we travelling along + unsigned char linkDir {0}; // Starting end e0->e1 or e1->e0 + float linkDist {0}; // distance long current link + float speed {50}; // speed in m/s (~75 km/h) +}; + +#endif |