One player of the game GameDb sets up, with a copy of the player's profile.
More...
#include <playerinfo.h>
One player of the game GameDb sets up, with a copy of the player's profile.
The RTTI includes the name. The record is 0x10c bytes, and GameDb allocates each one on the heap. The constructor has no out-of-line copy.
◆ PlayerInfo()
| PlayerInfo::PlayerInfo |
( |
int | nLocal, |
|
|
int | nSlot, |
|
|
const Campaign & | profile, |
|
|
int | nNetOrder ) |
|
inline |
Construct a player with no score and no rank.
- Parameters
-
| nLocal | Non-zero for a player of this console. |
| nSlot | The slot of the player. |
| profile | The profile to copy. |
| nNetOrder | The position of the player in the order of the online session. |
◆ GetLocal()
| int PlayerInfo::GetLocal |
( |
| ) |
const |
|
inline |
- Returns
- Non-zero for a player of this console.
◆ SetLocal()
| void PlayerInfo::SetLocal |
( |
int | nLocal | ) |
|
|
inline |
Set whether the player is on this console.
- Parameters
-
| nLocal | Non-zero for a player of this console. |
◆ GetSlot()
| int PlayerInfo::GetSlot |
( |
| ) |
const |
|
inline |
- Returns
- The slot. It selects the player's sounds and colours.
◆ SetSlot()
| void PlayerInfo::SetSlot |
( |
int | nSlot | ) |
|
|
inline |
Set the slot of the player.
- Parameters
-
◆ GetScore()
| int PlayerInfo::GetScore |
( |
| ) |
const |
|
inline |
◆ SetScore()
| void PlayerInfo::SetScore |
( |
int | nScore | ) |
|
|
inline |
Set the score of the player.
- Parameters
-
◆ GetRank()
| int PlayerInfo::GetRank |
( |
| ) |
const |
|
inline |
- Returns
- The rank of the score among the players, 0 for the best, or -1.
◆ SetRank()
| void PlayerInfo::SetRank |
( |
int | nRank | ) |
|
|
inline |
Set the rank of the player.
- Parameters
-
◆ GetProfile() [1/2]
- Returns
- The copy of the profile.
◆ GetProfile() [2/2]
| const Campaign & PlayerInfo::GetProfile |
( |
| ) |
const |
|
inline |
- Returns
- The copy of the profile.
◆ SetProfile()
| void PlayerInfo::SetProfile |
( |
const Campaign & | profile | ) |
|
|
inline |
Replace the copy of the profile.
- Parameters
-
| profile | The profile to copy. |
◆ GetNetOrder()
| int PlayerInfo::GetNetOrder |
( |
| ) |
const |
|
inline |
- Returns
- The position in the order of the online session, or -1.
◆ SetNetOrder()
| void PlayerInfo::SetNetOrder |
( |
int | nNetOrder | ) |
|
|
inline |
Set the position in the order of the online session.
- Parameters
-
| nNetOrder | The position, or -1. |
The documentation for this class was generated from the following file: