blob: 01be6a6496095c77c161e9907c4213bfcd565b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|