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

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

#include <spjoindenypacket.h>

Inheritance diagram for SPJoinDenyPacket:
Collaboration diagram for SPJoinDenyPacket:

Public Member Functions

 SPJoinDenyPacket ()
 Construct a packet with an empty string.
 SPJoinDenyPacket (int nReasonCode, const HxStr &reason)
 Construct a packet from a word and a string, which is copied.
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 word as a number, a space, and the string to a diagnostic stream.
virtual void saveGuts (OBStream &stream) const
 Write the Packet words, the word, and the string to a stream.
virtual void restoreGuts (IBStream &stream)
 Read the Packet words, the word, and the string back from a stream.
Public Member Functions inherited from ToSingleNetManagerPacket
 ToSingleNetManagerPacket ()
 Route the packet with the pair 1 and 0.
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 packet with an empty string 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 0x008efe30. It has ToSingleNetManagerPacket as its one base. The object is 0x20 bytes and its vtable is at 0x00814848. The payload comes from the copy constructor at 0x003f3130. 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 ToSingleNetManagerPacket, its own base, which has no implementation of its own. The vtable belongs to this class.

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

Constructor & Destructor Documentation

◆ SPJoinDenyPacket() [1/2]

SPJoinDenyPacket::SPJoinDenyPacket ( )
inline

Construct a packet with an empty string.

Inline. New() expands it, zeroing only the string, and no out-of-line copy exists. A declaration is required because the class declares a second constructor.

◆ SPJoinDenyPacket() [2/2]

SPJoinDenyPacket::SPJoinDenyPacket ( int nReasonCode,
const HxStr & reason )

Construct a packet from a word and a string, which is copied.

The image lists no caller for the out-of-line body.

Parameters
nReasonCodeThe word stored at +0x14.
reasonThe string copied into +0x18.
Ghidra address:
NTSC-U/C: 0x003ef628
Ghidra address:
PAL: 0x00427c18

Member Function Documentation

◆ New()

Message * SPJoinDenyPacket::New ( )
static

Produce a packet with an empty string on the heap.

The registry the translation unit at 0x003ed2e0 builds stores this address against g_nSPJoinDenyPacketType. The word at +0x14 is left unset.

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x003e4ca0
Ghidra address:
PAL: 0x0041cf18

◆ Clone()

virtual Message * SPJoinDenyPacket::Clone ( )
virtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003ef558
Ghidra address:
PAL: 0x00427b40

Implements Message.

◆ Type()

virtual int SPJoinDenyPacket::Type ( )
virtual

Report this packet's registered identity.

Returns
g_nSPJoinDenyPacketType.
Ghidra address:
NTSC-U/C: 0x003ef5d0
Ghidra address:
PAL: 0x00427bb8

Implements Message.

◆ GetName()

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

Report this packet's class name.

Returns
The literal SPJoinDenyPacket.
Ghidra address:
NTSC-U/C: 0x003ef5e0
Ghidra address:
PAL: 0x00427bc8

Implements Message.

◆ PrintExtra()

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

Write the word as a number, a space, and the string to a diagnostic stream.

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

Reimplemented from Message.

◆ saveGuts()

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

Write the Packet words, the word, and the string to a stream.

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

Reimplemented from Packet.

◆ restoreGuts()

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

Read the Packet words, the word, and the string back from a stream.

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

Reimplemented from Packet.


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