A player of the lobby server, as FindPlayerMsg reports it.
More...
#include <lobbyplayer.h>
A player of the lobby server, as FindPlayerMsg reports it.
The class has no RTTI, and the name is inferred. The object is 0x88 bytes.
◆ ConnectionType
Values of mConnectionType.
| Enumerator |
|---|
| kConnectionNone | No connection is known.
|
| kConnectionSlow | A slow connection.
|
| kConnectionFast | A fast connection.
|
| kConnectionOffline | The player is offline.
|
◆ LobbyPlayer()
| LobbyPlayer::LobbyPlayer |
( |
| ) |
|
Construct a player with no name, the default Freq, and no rank.
- Ghidra address:
- NTSC-U/C: 0x002688b0
- Ghidra address:
- PAL: 0x00272508
◆ IsNewbie()
| bool LobbyPlayer::IsNewbie |
( |
| ) |
const |
Report whether the player is new to the online game.
A player leaves the first games behind once mRating gains 1000000.
- Returns
- Whether mRating is at most 999999.
- Ghidra address:
- NTSC-U/C: 0x00268958
- Ghidra address:
- PAL: 0x002725b0
◆ SetRating() [1/2]
| void LobbyPlayer::SetRating |
( |
const RatingStat * | pStat | ) |
|
Take the rating and the record of a rated player.
The name is inferred.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0026aa70
- Ghidra address:
- PAL: 0x00274600
◆ GetAvatar() [1/2]
- Returns
- The player's Freq.
◆ GetAvatar() [2/2]
- Returns
- The player's Freq, for filling.
◆ SetAvatar()
◆ GetChannelId()
| int LobbyPlayer::GetChannelId |
( |
| ) |
const |
|
inline |
- Returns
- The chat channel the player is in, or -1.
◆ SetChannelId()
| void LobbyPlayer::SetChannelId |
( |
int | nChannelId | ) |
|
|
inline |
- Parameters
-
| nChannelId | The chat channel the player is in, or -1. |
◆ GetConnectionType()
| int LobbyPlayer::GetConnectionType |
( |
| ) |
const |
|
inline |
- Returns
- The kind of network connection, 0 to 3.
◆ SetConnectionType()
| void LobbyPlayer::SetConnectionType |
( |
int | nConnectionType | ) |
|
|
inline |
- Parameters
-
| nConnectionType | The kind of network connection, 0 to 3. |
◆ GetGames()
| int LobbyPlayer::GetGames |
( |
| ) |
const |
|
inline |
- Returns
- The number of online games played.
◆ SetGames()
| void LobbyPlayer::SetGames |
( |
int | nGames | ) |
|
|
inline |
- Parameters
-
| nGames | The number of online games played. |
◆ GetId()
| int LobbyPlayer::GetId |
( |
| ) |
const |
|
inline |
- Returns
- The account identifier.
◆ SetId()
| void LobbyPlayer::SetId |
( |
int | nId | ) |
|
|
inline |
- Parameters
-
| nId | The account identifier. |
◆ GetLastOnline() [1/2]
| const DateTime & LobbyPlayer::GetLastOnline |
( |
| ) |
const |
|
inline |
- Returns
- When the player was last online.
◆ GetLastOnline() [2/2]
| DateTime & LobbyPlayer::GetLastOnline |
( |
| ) |
|
|
inline |
- Returns
- When the player was last online, for filling.
◆ SetLastOnline()
| void LobbyPlayer::SetLastOnline |
( |
const DateTime & | lastOnline | ) |
|
|
inline |
- Parameters
-
| lastOnline | When the player was last online. |
◆ GetMuted()
| int LobbyPlayer::GetMuted |
( |
| ) |
const |
|
inline |
- Returns
- Non-zero when this console mutes the player's chat.
◆ SetMuted()
| void LobbyPlayer::SetMuted |
( |
int | nMuted | ) |
|
|
inline |
- Parameters
-
| nMuted | Non-zero when this console mutes the player's chat. |
◆ GetName() [1/2]
| const String & LobbyPlayer::GetName |
( |
| ) |
const |
|
inline |
◆ GetName() [2/2]
| String & LobbyPlayer::GetName |
( |
| ) |
|
|
inline |
- Returns
- The account name, for filling.
◆ SetName()
| void LobbyPlayer::SetName |
( |
const char * | pszName | ) |
|
|
inline |
◆ GetRank()
| int LobbyPlayer::GetRank |
( |
| ) |
const |
|
inline |
- Returns
- The position in the ranking.
◆ SetRank()
| void LobbyPlayer::SetRank |
( |
int | nRank | ) |
|
|
inline |
- Parameters
-
| nRank | The position in the ranking. |
◆ GetRankIcon()
| int LobbyPlayer::GetRankIcon |
( |
| ) |
const |
|
inline |
◆ SetRankIcon()
| void LobbyPlayer::SetRankIcon |
( |
int | nRankIcon | ) |
|
|
inline |
◆ GetRating()
| int LobbyPlayer::GetRating |
( |
| ) |
const |
|
inline |
- Returns
- The rating, plus 1000000 once the player is no longer new.
◆ SetRating() [2/2]
| void LobbyPlayer::SetRating |
( |
int | nRating | ) |
|
|
inline |
◆ GetRecord() [1/2]
- Returns
- The results the next rating weighs.
◆ GetRecord() [2/2]
- Returns
- The results the next rating weighs, for filling.
◆ SetRecord()
- Parameters
-
| record | The results the next rating weighs. |
The documentation for this class was generated from the following file: