|
resonance 1.0.1
|
Event the game passes between a MsgSource and a MsgSink. More...
#include <beginphrasecatchmsg.h>


Public Member Functions | |
| BeginPhraseCatchMsg () | |
| Construct a message with the payload unset. | |
| BeginPhraseCatchMsg (Player *pPlayer, int nPoints, int nMultiplier) | |
| Report the start of a phrase catch. | |
| virtual Message * | Clone () |
| Produce a heap copy of this message. | |
| virtual int | Type () |
| Report this message's registered identity. | |
| virtual const char * | GetName () const |
| Report this message's class name. | |
| 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. | |
| virtual void | PrintExtra (std::ostream &stream) const |
| Write this message's payload to a stream. | |
| virtual void | saveGuts (OBStream &stream) const |
| Write this message's payload to an output stream. | |
| virtual void | restoreGuts (IBStream &stream) |
| Read this message's payload from an input stream. | |
| 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 message 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 | |
| Player * | mPlayer |
| int | mPoints |
| int | mMultiplier |
Event the game passes between a MsgSource and a MsgSink.
Its RTTI descriptor is at 0x008f09b0. It has Message as its one base. The object is 0x10 bytes. New(), Clone(), and every stack build install the vtable at 0x007ddb08. An identical table at 0x007e0a70 has no reference in the image. The allocation in New() and the allocation in Clone() report the same size.
The destructor at 0x0019d738 is compiler-generated and has no declaration here. The routines at 0x001b0f40, 0x001d1b78, and 0x003de7a8 are further emissions of Clone() in other translation units, each allocating 0x10 bytes under the MSG tag and installing the same table.
The payload layout comes from the run of field copies in Clone(). Every member is public because Overlay::OnBeginPhraseCatch() at 0x004201c0 reads it directly with no accessor in the image. It compares mPlayer with HudTrack::mPlayer, formats a non-zero mPoints with d, and formats mMultiplier with xd.
|
inline |
Construct a message with the payload unset.
Inline. New() expands it. A declaration is required because the class declares a second constructor.
|
inline |
Report the start of a phrase catch.
Inline, with no address of its own. Catcher::CatchGem() at 0x001ac1c0 and the Scratcher member at 0x001d0530 expand it on their stacks. The three arguments are the three members in declaration order.
| pPlayer | The player starting the phrase. |
| nPoints | The points the phrase is worth. |
| nMultiplier | The multiplier the phrase is caught under. |
|
static |
Produce a default-constructed message on the heap.
The translation unit at 0x003d9818 registers this factory against identity 320.
|
virtual |
Produce a heap copy of this message.
Implements Message.
|
virtual |
Report this message's registered identity.
Implements Message.
|
virtual |
Report this message's class name.
Implements Message.
| Player* BeginPhraseCatchMsg::mPlayer |
The player starting the phrase. +0x04
| int BeginPhraseCatchMsg::mPoints |
The points the phrase is worth. +0x08
| int BeginPhraseCatchMsg::mMultiplier |
The multiplier the phrase is caught under. +0x0c