Result of NetLobby::FindPlayer().
More...
#include <findplayermsg.h>
|
| static Message * | NewMessage (int nType) |
| | Produce a message of the identified class through the factory list.
|
Result of NetLobby::FindPlayer().
The RTTI includes the class name and records Message as the base. Only the members its readers here use are declared.
◆ FindPlayerMsg() [1/2]
| FindPlayerMsg::FindPlayerMsg |
( |
int | nResult | ) |
|
|
inlineexplicit |
Construct a failure, with a default player and a chatroom whose identifier is -1.
Inline. The counts of the chatroom are not set.
- Parameters
-
◆ FindPlayerMsg() [2/2]
Construct a result.
Inline.
- Parameters
-
| nResult | 0 when the player was found. |
| player | The player. |
| chatroom | The chatroom the player is in. |
◆ operator new()
| void * FindPlayerMsg::operator new |
( |
size_t | nSize | ) |
|
|
inline |
Allocate a message, billed to the class name.
- Parameters
-
| nSize | The object size the compiler supplies. |
- Returns
- The block.
◆ operator delete()
| void FindPlayerMsg::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a message.
- Parameters
-
◆ Clone()
Produce a heap copy of this message.
- Returns
- The copy.
Implements Message.
◆ Type()
| int FindPlayerMsg::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this message's registered identity.
- Returns
- g_nFindPlayerMsgType.
Implements Message.
◆ GetName()
| const char * FindPlayerMsg::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void FindPlayerMsg::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the error, or the player and the chatroom.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00268ed8
- Ghidra address:
- PAL: 0x00272ae0
Reimplemented from Message.
◆ GetChatroom()
- Returns
- The chatroom the player is in, with an identifier of -1 when the player is offline.
◆ GetPlayer()
◆ GetResult()
| int FindPlayerMsg::GetResult |
( |
| ) |
const |
|
inline |
- Returns
- 0 when the player was found, otherwise a negative error.
The documentation for this class was generated from the following file: