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

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

#include <rawcontrollermsg.h>

Inheritance diagram for RawControllerMsg:
Collaboration diagram for RawControllerMsg:

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.
virtual void PrintExtra (std::ostream &stream) const
 Write the reading to a diagnostic stream through MetControllerReading::Print().
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

MetControllerReading mReading
Sch::Tick mPosition

Static Public Attributes

static int sID
 Identity that Type() reports.

Detailed Description

Event the game passes between a MsgSource and a MsgSink.

Its RTTI descriptor is at 0x008efce0. It has Message as its one base. The object is 0x18 bytes and its vtable is at 0x00813478.

The payload is one controller reading at +0x04 and a song position at +0x14. Clone() copies the reading as two eight-byte pairs and the position as one word, PrintExtra() hands the reading to MetControllerReading::Print(), and New() initialises only the position, to kTickInfinity. MetaGameWorld builds the message on its stack from the four arguments of its RawController slot, and MetRenderer reads the reading in place. Both are outside the hierarchy, and the image exposes no accessor, so both members are public.

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

Member Function Documentation

◆ New()

Message * RawControllerMsg::New ( )
static

Produce a default-constructed message on the heap.

The translation unit at 0x003d9818 registers this factory. Only the position is initialised.

Returns
The message.
Ghidra address:
NTSC-U/C: 0x003d6868
Ghidra address:
PAL: 0x0040e758

◆ Clone()

virtual Message * RawControllerMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003da200
Ghidra address:
PAL: 0x00412638

Implements Message.

◆ Type()

virtual int RawControllerMsg::Type ( )
virtual

Report this message's registered identity.

Returns
sID.
Ghidra address:
NTSC-U/C: 0x003da268
Ghidra address:
PAL: 0x004126a0

Implements Message.

◆ GetName()

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

Report this message's class name.

Returns
The literal RawControllerMsg.
Ghidra address:
NTSC-U/C: 0x003da278
Ghidra address:
PAL: 0x004126b0

Implements Message.

◆ PrintExtra()

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

Write the reading to a diagnostic stream through MetControllerReading::Print().

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

Reimplemented from Message.

Member Data Documentation

◆ sID

int RawControllerMsg::sID
static

Identity that Type() reports.

Ghidra address:
NTSC-U/C: 0x006d0118
Ghidra address:
PAL: 0x007138b0

◆ mReading

MetControllerReading RawControllerMsg::mReading

The reading. +0x04

◆ mPosition

Sch::Tick RawControllerMsg::mPosition

Song position, kTickInfinity until set. +0x14


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