resonance 1.0.1
Loading...
Searching...
No Matches
SCGameOverPacket Class Reference

Network packet the game sends between game systems. More...

#include <scgameoverpacket.h>

Inheritance diagram for SCGameOverPacket:
Collaboration diagram for SCGameOverPacket:

Public Member Functions

virtual Message * Clone ()
 Produce a heap copy of this packet.
virtual int Type ()
 Report this packet's registered identity.
virtual const char * GetName () const
 Report this packet's class name.
virtual void PrintExtra (std::ostream &stream) const
 Write the payload to a diagnostic stream.
virtual void saveGuts (OBStream &stream) const
 Write the packet to a stream.
virtual void restoreGuts (IBStream &stream)
 Read the packet back from a stream.
Public Member Functions inherited from ToAllGameControllersPacket
 ToAllGameControllersPacket ()
 Route the packet with the pair 3 and 2.
Public Member Functions inherited from Message
void * operator new (size_t nSize)
 Allocate a message from the tagged heap under the tag MSG.
void operator delete (void *pBlock)
 Release a message to the tagged heap under the tag MSG.
virtual ~Message ()
 Vtable slot 1.
std::ostream & Print (std::ostream &stream) const
 Write this message to a diagnostic stream as {GetName() PrintExtra()}.

Static Public Member Functions

static Message * New ()
 Produce a default-constructed packet on the heap.
Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Additional Inherited Members

Protected Member Functions inherited from Packet
 Packet (int nDestination, int nDestinationSystem)
 Set the two routing words and mark the remaining two as unset.
Protected Attributes inherited from Packet
int mDestination
int mDestinationSystem
int mClientId
 The client the packet concerns, or -1 until set.
int mTargetClientId
 A second client identifier, -1 until set.

Detailed Description

Network packet the game sends between game systems.

Its RTTI descriptor is at 0x008efcd0. It has ToAllGameControllersPacket as its one base. The object is 0x18 bytes and its vtable is at 0x008143c8. The payload comes from the copy constructor at 0x003f3cd0. Clone() delegates to it. The offsets and widths are recovered, but the purpose of each field is not. The four words Packet provides are declared there rather than here.

This class shares its RTTI accessor and vtable with ToAllGameControllersPacket, its own base, which has no implementation of its own. The vtable belongs to this class.

Its vtable has eight entries and a zero terminator at index 8. Slots 5, 6, and 7 are all its own overrides rather than the inherited ones. Both transfer members open by expanding the Packet pair inline rather than calling it, which every one of the twenty overriding packet classes does identically.

The destructor at 0x003f1558 is compiler-generated and has no declaration here.

Member Function Documentation

◆ New()

Message * SCGameOverPacket::New ( )
static

Produce a default-constructed packet on the heap.

The registry the translation unit at 0x003ed2e0 builds stores this address against g_nSCGameOverPacketType. Only the Packet words are initialised.

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x003e50f0
Ghidra address:
PAL: 0x0041d388

◆ Clone()

virtual Message * SCGameOverPacket::Clone ( )
virtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003f15d0
Ghidra address:
PAL: 0x00429a98

Implements Message.

◆ Type()

virtual int SCGameOverPacket::Type ( )
virtual

Report this packet's registered identity.

Returns
g_nSCGameOverPacketType.
Ghidra address:
NTSC-U/C: 0x003f1648
Ghidra address:
PAL: 0x00429b10

Implements Message.

◆ GetName()

virtual const char * SCGameOverPacket::GetName ( ) const
virtual

Report this packet's class name.

Returns
The literal SCGameOverPacket.
Ghidra address:
NTSC-U/C: 0x003f1658
Ghidra address:
PAL: 0x00429b20

Implements Message.

◆ PrintExtra()

virtual void SCGameOverPacket::PrintExtra ( std::ostream & stream) const
virtual

Write the payload to a diagnostic stream.

Slot 5. The one member is the whole output, with no literal around it.

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

Reimplemented from Message.

◆ saveGuts()

virtual void SCGameOverPacket::saveGuts ( OBStream & stream) const
virtual

Write the packet to a stream.

Slot 6. The member reaches the stream as a single byte rather than as a word.

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

Reimplemented from Packet.

◆ restoreGuts()

virtual void SCGameOverPacket::restoreGuts ( IBStream & stream)
virtual

Read the packet back from a stream.

Slot 7.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x003f29e8
Ghidra address:
PAL: 0x0042af30

Reimplemented from Packet.


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