|
resonance 1.0.1
|
Network packet the game sends between game systems. More...
#include <scloadlevelpacket.h>


Public Member Functions | |
| SCLoadLevelPacket () | |
| Construct a packet with default settings. | |
| SCLoadLevelPacket (const GameParams ¶ms) | |
| Construct a packet carrying a copy of some settings. | |
| 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 settings to a diagnostic stream through GameParams::Print(). | |
| virtual void | saveGuts (OBStream &stream) const |
| Write the Packet words and the settings to a stream. | |
| virtual void | restoreGuts (IBStream &stream) |
| Read the Packet words and the settings back from a stream. | |
| GameParams | GetParams () |
| Report the game settings. | |
| 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 packet with default settings 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. | |
Network packet the game sends between game systems.
Its RTTI descriptor is at 0x008ef610. It has ToAllGameControllersPacket as its one base. The object is 0x4c bytes and its vtable is at 0x00814410. The payload comes from the copy constructor at 0x003f3c48. Clone() delegates to it, and the payload accounts for the allocation exactly. The four words Packet provides are declared there rather than here.
saveGuts() and restoreGuts() transfer the game settings through GameParams' own virtual Save() and Load() after the Packet words.
The destructor at 0x003f12c0 is compiler-generated and has no declaration here.
| SCLoadLevelPacket::SCLoadLevelPacket | ( | ) |
Construct a packet with default settings.
The image lists no caller for the out-of-line body. New() expands the same stores in place.
| SCLoadLevelPacket::SCLoadLevelPacket | ( | const GameParams & | params | ) |
Construct a packet carrying a copy of some settings.
The image lists no caller for the out-of-line body.
| params | The settings to copy. |
|
static |
Produce a packet with default settings on the heap.
The registry the translation unit at 0x003ed2e0 builds stores this address against g_nSCLoadLevelPacketType.
|
virtual |
Produce a heap copy of this packet.
Implements Message.
|
virtual |
Report this packet's registered identity.
Implements Message.
|
virtual |
Report this packet's class name.
Implements Message.
|
virtual |
Write the settings to a diagnostic stream through GameParams::Print().
| stream | The stream to write to. |
Reimplemented from Message.
|
virtual |
|
virtual |
| GameParams SCLoadLevelPacket::GetParams | ( | ) |
Report the game settings.
The image lists no caller. The title is inferred.