The players on one track, by slot.
More...
#include <trackselector.h>
|
| | TrackInfo () |
| | Construct a track with every slot empty.
|
| int | Find (int nPlayer) const |
| | Report the slot of a player.
|
| int | Count () const |
| | Report the number of occupied slots.
|
| void | Add (int nPlayer) |
| | Put a player in the slot after the occupied ones.
|
| void | Compact () |
| | Move each player into the first slot of the run of empty slots before it.
|
| void | Remove (int nPlayer) |
| | Take a player out of its slot and move the later players one slot down.
|
| const std::vector< int > & | GetPlayers () const |
| std::vector< int > & | GetPlayers () |
| void | SetPlayer (int nSlot, int nPlayer) |
| | Put a player in a slot.
|
|
| static constexpr int | kNumSlots = 4 |
| | The number of slots of a track.
|
The players on one track, by slot.
The RTTI includes the class name. An empty slot stores -1, and the occupied slots precede the empty ones except after TrackSelector::SwapPlayer().
◆ TrackInfo()
| TrackSelector::TrackInfo::TrackInfo |
( |
| ) |
|
Construct a track with every slot empty.
- Ghidra address:
- NTSC-U/C: 0x0013e718
- Ghidra address:
- PAL: 0x0013ffe8
◆ Find()
| int TrackSelector::TrackInfo::Find |
( |
int | nPlayer | ) |
const |
Report the slot of a player.
- Parameters
-
- Returns
- The slot, or the number of slots when the player is not on the track.
- Ghidra address:
- NTSC-U/C: 0x0013e7c0
- Ghidra address:
- PAL: 0x00140090
◆ Count()
| int TrackSelector::TrackInfo::Count |
( |
| ) |
const |
Report the number of occupied slots.
- Returns
- The number of slots that do not store -1.
- Ghidra address:
- NTSC-U/C: 0x0013e800
- Ghidra address:
- PAL: 0x001400d0
◆ Add()
| void TrackSelector::TrackInfo::Add |
( |
int | nPlayer | ) |
|
Put a player in the slot after the occupied ones.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0013e850
- Ghidra address:
- PAL: 0x00140120
◆ Compact()
| void TrackSelector::TrackInfo::Compact |
( |
| ) |
|
Move each player into the first slot of the run of empty slots before it.
- Ghidra address:
- NTSC-U/C: 0x0013e890
- Ghidra address:
- PAL: 0x00140160
◆ Remove()
| void TrackSelector::TrackInfo::Remove |
( |
int | nPlayer | ) |
|
Take a player out of its slot and move the later players one slot down.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0013e978
- Ghidra address:
- PAL: 0x00140248
◆ GetPlayers() [1/2]
| const std::vector< int > & TrackSelector::TrackInfo::GetPlayers |
( |
| ) |
const |
|
inline |
- Returns
- The player in each slot, or -1.
◆ GetPlayers() [2/2]
| std::vector< int > & TrackSelector::TrackInfo::GetPlayers |
( |
| ) |
|
|
inline |
- Returns
- The player in each slot, or -1.
◆ SetPlayer()
| void TrackSelector::TrackInfo::SetPlayer |
( |
int | nSlot, |
|
|
int | nPlayer ) |
|
inline |
Put a player in a slot.
- Parameters
-
| nSlot | The slot. |
| nPlayer | The player, or -1. |
◆ kNumSlots
| int TrackSelector::TrackInfo::kNumSlots = 4 |
|
staticconstexpr |
The number of slots of a track.
The documentation for this class was generated from the following file: