High-level handling for generic system operations, such as input reading, race configuration, and resource management.
Based off https://github.com/em-eight/mkw/blob/master/source/game/util/Random.cpp.
Concepts | |
| concept | MapdataDerived |
Classes | |
| class | CourseMap |
| Contains course metadata, notably the starting position. More... | |
| class | DvdArchive |
| class | GhostFile |
| Parsed representation of a binary ghost file. More... | |
| class | KPad |
| class | KPadController |
| An abstraction for a controller object. It is associated with an input state. More... | |
| class | KPadDirector |
| The highest level abstraction for controller processing. More... | |
| struct | KPadGhostButtonsStream |
| Represents a stream of button inputs from a ghost file. More... | |
| class | KPadGhostController |
| The abstraction of a controller object but for ghost playback. More... | |
| struct | KPadGhostDirectionButtonsStream |
| A specialized stream for the analog stick. Direction tuples take the following form: More... | |
| struct | KPadGhostFaceButtonsStream |
| A specialized stream for button presses (not tricks). More... | |
| struct | KPadGhostTrickButtonsStream |
| A specialized stream for D-Pad inputs for tricking and wheeling. Trick tuples take the following form: More... | |
| class | KPadHostController |
| The abstraction of a controller object but for external usage. More... | |
| class | KPadPlayer |
| A specialized KPad for player input, as opposed to CPU players for example. More... | |
| struct | LinkedCheckpoint |
| class | MapdataAccessorBase |
| class | MapdataCannonPoint |
| class | MapdataCannonPointAccessor |
| class | MapdataCheckPath |
| class | MapdataCheckPathAccessor |
| class | MapdataCheckPoint |
| class | MapdataCheckPointAccessor |
| class | MapdataFileAccessor |
| class | MapdataGeoObj |
| class | MapdataGeoObjAccessor |
| class | MapdataJugemPoint |
| This class represents the course's respawn positions. More... | |
| class | MapdataJugemPointAccessor |
| class | MapdataPointInfo |
| class | MapdataPointInfoAccessor |
| class | MapdataStageInfo |
| class | MapdataStageInfoAccessor |
| class | MapdataStartPoint |
| class | MapdataStartPointAccessor |
| struct | MapSectionHeader |
| class | MultiDvdArchive |
| class | RaceConfig |
| Initializes the player with parameters specified in the provided ghost file. More... | |
| struct | RaceInputState |
| Represents a set of controller inputs. More... | |
| class | RaceManager |
| Manages the timers that track the stages of a race. Also acts as the interface between the physics engine and CourseMap. More... | |
| class | Random |
| class | RawGhostFile |
| The binary data of a ghost saved to a file. More... | |
| class | ResourceManager |
| Highest level abstraction for archive management and subsequent file retrieval. More... | |
| struct | Timer |
| A simple struct to represent a lap or race finish time. More... | |
| class | TimerManager |
| Manages the race timer to create lap splits and final times. More... | |
Typedefs | |
| typedef std::function< void(RaceConfig *, void *)> | InitCallback |
Functions | |
| STATIC_ASSERT (sizeof(RawGhostFile)==0x2800) | |
| static constexpr f32 | RawStickToState (u8 rawStick) |
| Converts a raw stick input into an input usable by the state. | |
Variables | |
| static constexpr size_t | RKG_HEADER_SIZE = 0x88 |
| static constexpr size_t | RKG_UNCOMPRESSED_INPUT_DATA_SECTION_SIZE = 0x2774 |
| static constexpr s8 | X_TRANSLATION_TABLE [12][12] |
| static constexpr s8 | Z_TRANSLATION_TABLE [12][12] |
| static size_t | SUFFIX_SIZE = 8 |
| static const char *const | RESOURCE_PATHS [] |
| typedef std::function<void(RaceConfig *, void *)> System::InitCallback |
Definition at line 45 of file Context.hh.
|
strong |
Definition at line 13 of file ResourceManager.hh.
|
strong |
Definition at line 16 of file KPadController.hh.
|
strong |
Definition at line 27 of file KPadController.hh.
|
staticnodiscardconstexpr |
Converts a raw stick input into an input usable by the state.
| rawStick | The raw stick input to convert. |
Definition at line 12 of file KPadController.hh.
|
static |
Definition at line 9 of file ResourceManager.cc.
|
staticconstexpr |
Definition at line 11 of file GhostFile.hh.
|
staticconstexpr |
Definition at line 12 of file GhostFile.hh.
|
static |
Definition at line 7 of file MultiDvdArchive.cc.
|
staticconstexpr |
Definition at line 12 of file MapdataStartPoint.cc.
|
staticconstexpr |
Definition at line 27 of file MapdataStartPoint.cc.