Packet that reports the final scores of the song.
More...
#include <gameoverpkt.h>
|
| static Message * | New () |
| | Produce a default-constructed packet on the heap.
|
| static Message * | NewMessage (int nType) |
| | Produce a message of the identified class through the factory list.
|
Packet that reports the final scores of the song.
The RTTI records the class as deriving from InternalPacket. The members Clone(), Type(), and GetName() are inline. The member names are inferred.
◆ GameOverPkt() [1/2]
| GameOverPkt::GameOverPkt |
( |
| ) |
|
|
default |
Construct a packet with no scores.
Inline. New() expands it.
◆ GameOverPkt() [2/2]
| GameOverPkt::GameOverPkt |
( |
const std::vector< NetGameScore > & | scores | ) |
|
|
inlineexplicit |
Construct a packet for every peer, guaranteed.
Inline.
- Parameters
-
| scores | The final score of each player. |
◆ New()
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x00267a08
- Ghidra address:
- PAL: 0x002716e0
◆ operator new()
| void * GameOverPkt::operator new |
( |
size_t | nSize | ) |
|
|
inline |
Allocate a packet, billed to the class name.
- Parameters
-
| nSize | The object size the compiler supplies. |
- Returns
- The block.
◆ operator delete()
| void GameOverPkt::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
Produce a heap copy of this packet.
- Returns
- The copy.
Implements Message.
◆ Type()
| int GameOverPkt::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this packet's registered identity.
- Returns
- g_nGameOverPktType.
Implements Message.
◆ GetName()
| const char * GameOverPkt::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void GameOverPkt::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the sender, the receiver, and the scores.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00269d98
- Ghidra address:
- PAL: 0x00273928
Reimplemented from Message.
◆ saveGuts()
| void GameOverPkt::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write the scores.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00269dd8
- Ghidra address:
- PAL: 0x00273968
Reimplemented from Message.
◆ restoreGuts()
| void GameOverPkt::restoreGuts |
( |
BinStream & | stream | ) |
|
|
overridevirtual |
Read the scores.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00269e00
- Ghidra address:
- PAL: 0x00273990
Reimplemented from Message.
◆ GetScores()
| const std::vector< NetGameScore > & GameOverPkt::GetScores |
( |
| ) |
const |
|
inline |
- Returns
- The final score of each player.
The documentation for this class was generated from the following file: