Kinoko
A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
MapdataCannonPoint.hh
1
#pragma once
2
3
#include "game/system/map/MapdataAccessorBase.hh"
4
5
#include "game/kart/KartMove.hh"
6
7
#include <egg/math/Vector.hh>
8
9
namespace
System
{
10
11
class
MapdataCannonPoint
{
12
public
:
13
struct
SData
{
14
EGG::Vector3f
pos;
15
EGG::Vector3f
rot;
16
u16
id;
17
s16 propertyIdx;
18
};
19
20
MapdataCannonPoint
(
const
SData
*data);
21
void
read(
EGG::Stream
&stream);
22
24
const
EGG::Vector3f
&pos()
const
{
25
return
m_pos;
26
}
27
28
const
EGG::Vector3f
&rot()
const
{
29
return
m_rot;
30
}
31
32
u16
id()
const
{
33
return
m_id;
34
}
35
36
s16 parameterIdx()
const
{
37
return
m_parameterIdx
;
38
}
40
41
private
:
42
const
SData *m_rawData;
43
EGG::Vector3f
m_pos;
44
EGG::Vector3f
m_rot;
45
u16
m_id;
46
s16
m_parameterIdx
;
48
};
49
50
class
MapdataCannonPointAccessor
51
:
public
MapdataAccessorBase
<MapdataCannonPoint, MapdataCannonPoint::SData> {
52
public
:
53
MapdataCannonPointAccessor
(
const
MapSectionHeader
*header);
54
~MapdataCannonPointAccessor
()
override
;
55
};
56
57
}
// namespace System
EGG::Stream
A stream of data, abstracted to allow for continuous seeking.
Definition
Stream.hh:10
System::MapdataAccessorBase
Definition
MapdataAccessorBase.hh:13
System::MapdataCannonPointAccessor
Definition
MapdataCannonPoint.hh:51
System::MapdataCannonPoint
Definition
MapdataCannonPoint.hh:11
System::MapdataCannonPoint::m_parameterIdx
s16 m_parameterIdx
Definition
MapdataCannonPoint.hh:46
uint16_t
System
High-level handling for generic system operations, such as input reading, race configuration,...
Definition
CourseMap.cc:5
EGG::Vector3f
A 3D float vector.
Definition
Vector.hh:83
System::MapSectionHeader
Definition
MapdataAccessorBase.hh:7
System::MapdataCannonPoint::SData
Definition
MapdataCannonPoint.hh:13
game
system
map
MapdataCannonPoint.hh
Made by
Malleo
. Logo by
vabold
. Website generated by
Doxygen
1.12.0