Assignment of the players to the tracks and to the slots of each track, in the order the players arrived on each track.
More...
#include <trackselector.h>
|
| | TrackSelector (int nTracks) |
| | Construct an assignment of no players to a number of tracks.
|
| void | AddPlayer (int nTrack) |
| | Add the next player to the first empty slot of a track.
|
| void | AddPlayer (int nTrack, int nSlot) |
| | Add the next player to a slot of a track.
|
| int | GetNumPlayers () const |
| | Report the number of players.
|
| int | GetNumTracks () const |
| | Report the number of tracks.
|
| void | SetPlayerTrack (int nPlayer, int nTrack) |
| | Move a player to the first empty slot of a track, or off every track.
|
| void | SwapPlayer (int nPlayer, int nTrack, int nSlot) |
| | Swap a player with the player in a slot of a track.
|
| void | Compact () |
| | Compact every track after a swap.
|
| int | GetPlayerTrack (int nPlayer) const |
| | Report the track of a player.
|
| int | GetPlayerSlot (int nPlayer) const |
| | Report the slot of a player on its track.
|
| int | GetFirstPlayer (int nTrack) const |
| | Report the player in the first slot of a track.
|
| int | GetNumPlayersOnTrack (int nTrack) const |
| | Report the number of players on a track.
|
| const int * | GetPlayersOnTrack (int nTrack) const |
| | Report the players on a track.
|
Assignment of the players to the tracks and to the slots of each track, in the order the players arrived on each track.
The RTTI includes the nested TrackSelector::TrackInfo. The class is not polymorphic.
◆ TrackSelector()
| TrackSelector::TrackSelector |
( |
int | nTracks | ) |
|
|
explicit |
Construct an assignment of no players to a number of tracks.
- Parameters
-
| nTracks | The number of tracks. |
- Ghidra address:
- NTSC-U/C: 0x0013ea10
- Ghidra address:
- PAL: 0x001402e0
◆ AddPlayer() [1/2]
| void TrackSelector::AddPlayer |
( |
int | nTrack | ) |
|
Add the next player to the first empty slot of a track.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0013eb08
- Ghidra address:
- PAL: 0x001403d8
◆ AddPlayer() [2/2]
| void TrackSelector::AddPlayer |
( |
int | nTrack, |
|
|
int | nSlot ) |
Add the next player to a slot of a track.
- Parameters
-
| nTrack | The track. |
| nSlot | The slot. |
- Ghidra address:
- NTSC-U/C: 0x0013ec78
- Ghidra address:
- PAL: 0x00140548
◆ GetNumPlayers()
| int TrackSelector::GetNumPlayers |
( |
| ) |
const |
Report the number of players.
- Returns
- The number of players.
- Ghidra address:
- NTSC-U/C: 0x0013ee08
- Ghidra address:
- PAL: 0x001406d8
◆ GetNumTracks()
| int TrackSelector::GetNumTracks |
( |
| ) |
const |
Report the number of tracks.
- Returns
- The number of tracks.
- Ghidra address:
- NTSC-U/C: 0x0013ee20
- Ghidra address:
- PAL: 0x001406f0
◆ SetPlayerTrack()
| void TrackSelector::SetPlayerTrack |
( |
int | nPlayer, |
|
|
int | nTrack ) |
Move a player to the first empty slot of a track, or off every track.
- Parameters
-
| nPlayer | The player. |
| nTrack | The track, or -1 for none. |
- Ghidra address:
- NTSC-U/C: 0x0013ee38
- Ghidra address:
- PAL: 0x00140708
◆ SwapPlayer()
| void TrackSelector::SwapPlayer |
( |
int | nPlayer, |
|
|
int | nTrack, |
|
|
int | nSlot ) |
Swap a player with the player in a slot of a track.
The other player, when there is one, takes the slot the player left. Compact() removes the gaps the swap can leave.
- Parameters
-
| nPlayer | The player. |
| nTrack | The track. |
| nSlot | The slot. |
- Ghidra address:
- NTSC-U/C: 0x0013eed0
- Ghidra address:
- PAL: 0x001407a0
◆ Compact()
| void TrackSelector::Compact |
( |
| ) |
|
Compact every track after a swap.
- Ghidra address:
- NTSC-U/C: 0x0013efc0
- Ghidra address:
- PAL: 0x00140890
◆ GetPlayerTrack()
| int TrackSelector::GetPlayerTrack |
( |
int | nPlayer | ) |
const |
Report the track of a player.
- Parameters
-
- Returns
- The track, or -1.
- Ghidra address:
- NTSC-U/C: 0x0013f050
- Ghidra address:
- PAL: 0x00140920
◆ GetPlayerSlot()
| int TrackSelector::GetPlayerSlot |
( |
int | nPlayer | ) |
const |
Report the slot of a player on its track.
- Parameters
-
- Returns
- The slot, 0 for the first player on the track.
- Ghidra address:
- NTSC-U/C: 0x0013f068
- Ghidra address:
- PAL: 0x00140938
◆ GetFirstPlayer()
| int TrackSelector::GetFirstPlayer |
( |
int | nTrack | ) |
const |
Report the player in the first slot of a track.
- Parameters
-
- Returns
- The player, or -1.
- Ghidra address:
- NTSC-U/C: 0x0013f0a0
- Ghidra address:
- PAL: 0x00140970
◆ GetNumPlayersOnTrack()
| int TrackSelector::GetNumPlayersOnTrack |
( |
int | nTrack | ) |
const |
Report the number of players on a track.
- Parameters
-
- Returns
- The number of players.
- Ghidra address:
- NTSC-U/C: 0x0013f0b8
- Ghidra address:
- PAL: 0x00140988
◆ GetPlayersOnTrack()
| const int * TrackSelector::GetPlayersOnTrack |
( |
int | nTrack | ) |
const |
Report the players on a track.
- Parameters
-
- Returns
- The player in each slot, or -1.
- Ghidra address:
- NTSC-U/C: 0x0013f0e0
- Ghidra address:
- PAL: 0x001409b0
The documentation for this class was generated from the following file: