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


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 position, track:, the track, succ:, and the success value to a diagnostic stream. | |
| virtual void | saveGuts (OBStream &stream) const |
| Write the Packet words, the player's identifier, the position, the track, and the success value to a stream. | |
| virtual void | restoreGuts (IBStream &stream) |
| Read the fields back in place in the order saveGuts() wrote them. | |
| Public Member Functions inherited from ToAllOtherGameSystemsPacket | |
| ToAllOtherGameSystemsPacket () | |
| Route the packet with the pair 2 and 3. | |
| 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. | |
Public Attributes | |
| IDablePtr< Player > | mPlayer |
| Sch::Tick | mPosition |
| int | mTrack |
| float | mSucc |
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 0x00902060. It has ToAllOtherGameSystemsPacket as its one base. The object is 0x28 bytes and its vtable is at 0x00814530. The payload comes from the copy constructor at 0x003f38d0. Clone() delegates to it. The four words Packet provides are declared there rather than here.
The member at +0x1c is a Sch::Tick. PrintExtra() hands it to Sch::Tick::Print() after the label @, and New() initialises it to kTickInfinity. The transfer through the emission at 0x004acf28 alone could not distinguish it from a CmdID. PrintExtra() labels +0x20 as track and +0x24 as succ. The player reference at +0x14 is transferred but not printed.
Every member is public because Catcher::DispatchPriv() at 0x001adbec reads the payload directly with no accessor in the image.
The destructor at 0x003f09f8 is compiler-generated and has no declaration here.
|
static |
Produce a default-constructed packet on the heap.
The registry the translation unit at 0x003ed2e0 builds stores this address against g_nCatchProgressPacketType.
|
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 position, track:, the track, succ:, and the success value to a diagnostic stream.
| stream | The stream to write to. |
Reimplemented from Message.
|
virtual |
|
virtual |
Read the fields back in place in the order saveGuts() wrote them.
| stream | The stream to read from. |
Reimplemented from Packet.
| Sch::Tick CatchProgressPacket::mPosition |
The song position, printed after @. +0x1c
| int CatchProgressPacket::mTrack |
Labelled track by PrintExtra(). +0x20
| float CatchProgressPacket::mSucc |
Labelled succ by PrintExtra(). +0x24