SuperTuxKart
Loading...
Searching...
No Matches
kart_data.hpp
1#ifndef KART_DATA_HPP
2#define KART_DATA_HPP
3
4#include "utils/vec3.hpp"
5
6#include <string>
7
10
12{
13public:
14 std::string m_kart_type;
15 float m_width;
16 float m_height;
17 float m_length;
18 Vec3 m_gravity_shift;
19 // ------------------------------------------------------------------------
20 KartData()
21 {
22 m_width = 0.0f;
23 m_height = 0.0f;
24 m_length = 0.0f;
25 }
26 // ------------------------------------------------------------------------
27 KartData(const KartProperties* kp);
28 // ------------------------------------------------------------------------
29 KartData(const BareNetworkString& ns);
30 // ------------------------------------------------------------------------
31 void encode(BareNetworkString* ns) const;
32}; // class KartData
33
34#endif // KART_DATA_HPP
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:53
Definition: kart_data.hpp:12
This class stores the properties of a kart.
Definition: kart_properties.hpp:60
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35