wavelength 1.0.0
Loading...
Searching...
No Matches
PlayerRankMsg Class Reference

Message that reports the ladder position of a player whose position was requested. More...

#include <playerrankmsg.h>

Inheritance diagram for PlayerRankMsg:
Collaboration diagram for PlayerRankMsg:

Public Member Functions

 ~PlayerRankMsg () override=default
 Destroy the object.
 PlayerRankMsg (int nAccount, int nRank)
 Construct a message.
void * operator new (size_t nSize)
 Allocate a message, billed to the class name.
void operator delete (void *pBlock)
 Release a message.
Message * Clone () override
 Produce a heap copy of this message.
int Type () override
 Report this message's registered identity.
const char * GetName () const override
 Report this message's class name.
void PrintExtra (PrnStream &stream) const override
 Write the account and the rank.
int GetAccount () const
int GetRank () const
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual void saveGuts (BinStream &stream) const
 Write this message's payload to a stream.
virtual void restoreGuts (BinStream &stream)
 Read this message's payload from a stream.
virtual ~Message ()
virtual void Unused1 ()
 Not called by the control.

Additional Inherited Members

Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Detailed Description

Message that reports the ladder position of a player whose position was requested.

The RTTI records the class as deriving from Message. The vtable is at 0x003d61f8. The members Clone(), Type(), and GetName() are inline.

Constructor & Destructor Documentation

◆ ~PlayerRankMsg()

PlayerRankMsg::~PlayerRankMsg ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x0039e8c0
Ghidra address:
PAL: 0x0040d5a0

◆ PlayerRankMsg()

PlayerRankMsg::PlayerRankMsg ( int nAccount,
int nRank )
inline

Construct a message.

Inline.

Parameters
nAccountThe account of the player.
nRankThe position of the player in the ranking.

Member Function Documentation

◆ operator new()

void * PlayerRankMsg::operator new ( size_t nSize)
inline

Allocate a message, billed to the class name.

Parameters
nSizeThe object size the compiler supplies.
Returns
The block.

◆ operator delete()

void PlayerRankMsg::operator delete ( void * pBlock)
inline

Release a message.

Parameters
pBlockThe block.

◆ Clone()

Message * PlayerRankMsg::Clone ( )
inlineoverridevirtual

Produce a heap copy of this message.

Returns
The copy.

Implements Message.

◆ Type()

int PlayerRankMsg::Type ( )
inlineoverridevirtual

Report this message's registered identity.

Returns
g_nPlayerRankMsgType.

Implements Message.

◆ GetName()

const char * PlayerRankMsg::GetName ( ) const
inlineoverridevirtual

Report this message's class name.

Returns
The literal PlayerRankMsg.

Implements Message.

◆ PrintExtra()

void PlayerRankMsg::PrintExtra ( PrnStream & stream) const
overridevirtual

Write the account and the rank.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x00268e90
Ghidra address:
PAL: 0x00272a98

Reimplemented from Message.

◆ GetAccount()

int PlayerRankMsg::GetAccount ( ) const
inline
Returns
The account of the player.

◆ GetRank()

int PlayerRankMsg::GetRank ( ) const
inline
Returns
The position of the player in the ranking.

The documentation for this class was generated from the following file: