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