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

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

#include <tracksonmsg.h>

Inheritance diagram for TracksOnMsg:
Collaboration diagram for TracksOnMsg:

Public Member Functions

 TracksOnMsg ()
 Construct a message with the payload unset.
 TracksOnMsg (int nBar, int nTracks)
 Report how many tracks are on from a bar.
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.
virtual void PrintExtra (std::ostream &stream) const
 Write bar , the word at +0x04, tracks , and the word at +0x08 to a diagnostic stream.
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 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 mBar
int mTracks

Detailed Description

Event the game passes between a MsgSource and a MsgSink.

Its RTTI descriptor is at 0x00901e40. It has Message as its one base. The object is 0xc bytes and its vtable is at 0x00812780. The members below are the whole of the class. No other routine in the image refers to this type by anything but its vtable.

The payload layout comes from the run of field copies in Clone(), and PrintExtra() labels +0x04 as a bar and +0x08 as tracks. Both members are public because Mixer::OnTracksOn() at 0x001a76d0 reads them directly with no accessor in the image.

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

Constructor & Destructor Documentation

◆ TracksOnMsg() [1/2]

TracksOnMsg::TracksOnMsg ( )
inline

Construct a message with the payload unset.

Inline. New() expands it. A declaration is required because the class declares a second constructor.

◆ TracksOnMsg() [2/2]

TracksOnMsg::TracksOnMsg ( int nBar,
int nTracks )
inline

Report how many tracks are on from a bar.

Inline, with no address of its own. Gamer's builds at 0x00111dc8 and 0x001122e4 expand it on their stacks, the first with the count of tracks its loop found on and the second with zero.

Parameters
nBarThe bar.
nTracksThe number of tracks on.

Member Function Documentation

◆ New()

Message * TracksOnMsg::New ( )
static

Produce a default-constructed message on the heap.

The translation unit at 0x003d9818 registers this factory. The payload is left unset.

Returns
The message.
Ghidra address:
NTSC-U/C: 0x003d7360
Ghidra address:
PAL: 0x0040f260

◆ Clone()

virtual Message * TracksOnMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003de910
Ghidra address:
PAL: 0x00416d68

Implements Message.

◆ Type()

virtual int TracksOnMsg::Type ( )
virtual

Report this message's registered identity.

Returns
g_dwTracksOnMsgType.
Ghidra address:
NTSC-U/C: 0x003de960
Ghidra address:
PAL: 0x00416db8

Implements Message.

◆ GetName()

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

Report this message's class name.

Returns
The literal TracksOnMsg.
Ghidra address:
NTSC-U/C: 0x003de970
Ghidra address:
PAL: 0x00416dc8

Implements Message.

◆ PrintExtra()

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

Write bar , the word at +0x04, tracks , and the word at +0x08 to a diagnostic stream.

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

Reimplemented from Message.

Member Data Documentation

◆ mBar

int TracksOnMsg::mBar

The bar, labelled bar by PrintExtra(). +0x04

◆ mTracks

int TracksOnMsg::mTracks

The number of tracks on, labelled tracks by PrintExtra(). +0x08


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