Kinoko
A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
KPadDirector.hh
1
#pragma once
2
3
#include "game/system/KPadController.hh"
4
5
namespace
Host
{
6
7
class
Context;
8
9
}
// namespace Host
10
11
namespace
System
{
12
15
class
KPadDirector
:
EGG::Disposer
{
16
friend
class
Host::Context
;
17
18
public
:
19
void
calc();
20
void
calcPads();
21
23
void
clear() {}
24
25
void
reset();
26
void
startGhostProxies();
27
void
endGhostProxies();
28
29
[[nodiscard]]
const
KPadPlayer
&playerInput()
const
{
30
return
m_playerInput;
31
}
32
33
[[nodiscard]]
KPadHostController
*hostController() {
34
return
m_hostController;
35
}
36
37
void
setGhostPad(
const
u8 *inputs,
bool
driftIsAuto);
38
void
setHostPad(
bool
driftIsAuto);
39
40
static
KPadDirector
*CreateInstance();
41
static
void
DestroyInstance();
42
43
[[nodiscard]]
static
KPadDirector
*Instance() {
44
return
s_instance;
45
}
46
47
private
:
48
KPadDirector
();
49
~KPadDirector
()
override
;
50
51
KPadPlayer
m_playerInput;
52
KPadGhostController
*m_ghostController;
53
KPadHostController
*m_hostController;
54
55
static
KPadDirector
*s_instance;
56
};
57
58
}
// namespace System
EGG::Disposer
An interface for ensuring certain structures and classes are destroyed with the heap.
Definition
Disposer.hh:11
Host::Context
Contexts can be used to restore a previous memory state for the current session.
Definition
Context.hh:59
System::KPadDirector
The highest level abstraction for controller processing.
Definition
KPadDirector.hh:15
System::KPadGhostController
The abstraction of a controller object but for ghost playback.
Definition
KPadController.hh:213
System::KPadHostController
The abstraction of a controller object but for external usage.
Definition
KPadController.hh:241
System::KPadPlayer
A specialized KPad for player input, as opposed to CPU players for example.
Definition
KPadController.hh:338
Host
Represents the host application.
Definition
HeapCommon.hh:9
System
High-level handling for generic system operations, such as input reading, race configuration,...
Definition
CourseMap.cc:5
game
system
KPadDirector.hh
Made by
Malleo
. Logo by
vabold
. Website generated by
Doxygen
1.12.0