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

Event the game passes between a MsgSource and a MsgSink. More...

#include <durgemmsg.h>

Inheritance diagram for DurGemMsg:
Collaboration diagram for DurGemMsg:

Public Member Functions

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

int mLane
int mStartFrame = kTickInfinity
float mStartBlend
int mEndFrame = kTickInfinity
float mEndBlend
int mLive
 Non-zero for a gem a player is playing live.
Player * mPlayer

Detailed Description

Event the game passes between a MsgSource and a MsgSink.

Its RTTI descriptor is at 0x00901ce0. It has Message as its one base. The object is 0x20 bytes and its vtable is at 0x007ded38. The allocation in New() and the allocation in Clone() report the same size.

The payload layout comes from the run of field copies in Clone(). Every member but the word at +0x18 is public because AppTunnel::DispatchPriv() at 0x004497e0 reads them directly with no accessor in the image. It copies the colour name of mPlayer and draws the gem from mLane between the two frame and blend pairs, converting each frame to a float.

Member Function Documentation

◆ New()

Message * DurGemMsg::New ( )
static

Produce a default-constructed message on the heap.

The translation unit at 0x003d9818 registers this factory against identity 406.

Returns
The message.
Ghidra address:
NTSC-U/C: 0x003d7538
Ghidra address:
PAL: 0x0040f438

◆ Clone()

virtual Message * DurGemMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x001a4388
Ghidra address:
PAL: 0x001aa0f0

Implements Message.

◆ Type()

virtual int DurGemMsg::Type ( )
virtual

Report this message's registered identity.

Returns
g_nDurGemMsgType.
Ghidra address:
NTSC-U/C: 0x001a4400
Ghidra address:
PAL: 0x001aa168

Implements Message.

◆ GetName()

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

Report this message's class name.

Returns
The literal DurGemMsg.
Ghidra address:
NTSC-U/C: 0x001a4410
Ghidra address:
PAL: 0x001aa178

Implements Message.

Member Data Documentation

◆ mLane

int DurGemMsg::mLane

The lane. +0x04

◆ mStartFrame

int DurGemMsg::mStartFrame = kTickInfinity

The frame the gem starts at. +0x08

◆ mStartBlend

float DurGemMsg::mStartBlend

The blend at the start. +0x0c

◆ mEndFrame

int DurGemMsg::mEndFrame = kTickInfinity

The frame the gem ends at. +0x10

◆ mEndBlend

float DurGemMsg::mEndBlend

The blend at the end. +0x14

◆ mLive

int DurGemMsg::mLive

Non-zero for a gem a player is playing live.

+0x18

AxeNewGemMaker::PostGemMessages() at 0x001a2f18 and Scratcher store 1, and AxeOldGemMaker's PostDurGemMsg() at 0x001a32f0 and OnStdMidi() at 0x001a34e8 (both replaying a recorded phrase) store zero. No reader is recorded. The title rests on the writers alone.

◆ mPlayer

Player* DurGemMsg::mPlayer

The player the gem belongs to. +0x1c


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