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

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

#include <cripplemsg.h>

Inheritance diagram for CrippleMsg:
Collaboration diagram for CrippleMsg:

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 tr#, the track, p#, and the player's identifier to a diagnostic stream.
Public Member Functions inherited from CmdMsg
 CmdMsg ()
 Clear the result word.
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 message with a zero result 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 mTrack
int mBar
 The bar the crippler is deployed at.
Public Attributes inherited from CmdMsg
int mResult
 Result a receiver writes back, zero until one does.

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 0x00901b30. It has CmdMsg as its one base. The object is 0x14 bytes and its vtable is at 0x00811c40. The word at +0x04 belongs to CmdMsg.

CripplePowerup builds the message at 0x001c9854 from the three arguments of its slot 2, storing the player at +0x08, the first argument at +0x0c, and the second at +0x10, and reads the result word back after sending. PrintExtra() labels +0x0c as a track number and writes the player's identifier after p#.

mPlayer and mTrack are public because Gamer's crippler handler at 0x00111230 reads them directly with no accessor in the image, and sets CmdMsg::mResult to 1 when victims exist.

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

Member Function Documentation

◆ New()

Message * CrippleMsg::New ( )
static

Produce a message with a zero result on the heap.

The translation unit at 0x003d9818 registers this factory.

Returns
The message.
Ghidra address:
NTSC-U/C: 0x003d7ca0
Ghidra address:
PAL: 0x0040fbb8

◆ Clone()

virtual Message * CrippleMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003e2788
Ghidra address:
PAL: 0x0041ac28

Implements Message.

◆ Type()

virtual int CrippleMsg::Type ( )
virtual

Report this message's registered identity.

Returns
sID.
Ghidra address:
NTSC-U/C: 0x003e27f8
Ghidra address:
PAL: 0x0041ac98

Implements Message.

◆ GetName()

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

Report this message's class name.

Returns
The literal CrippleMsg.
Ghidra address:
NTSC-U/C: 0x003e2808
Ghidra address:
PAL: 0x0041aca8

Implements Message.

◆ PrintExtra()

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

Write tr#, the track, p#, and the player's identifier to a diagnostic stream.

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

Reimplemented from Message.

Member Data Documentation

◆ sID

int CrippleMsg::sID
static

Identity that Type() reports.

Ghidra address:
NTSC-U/C: 0x006d03d4
Ghidra address:
PAL: 0x00713b6c

◆ mPlayer

Player* CrippleMsg::mPlayer

The player who deployed the crippler. +0x08

◆ mTrack

int CrippleMsg::mTrack

The track, labelled by PrintExtra(). +0x0c

◆ mBar

int CrippleMsg::mBar

The bar the crippler is deployed at.

+0x10

Public because CripplePowerup::Deploy() at 0x001c9830 stores its bar argument here directly, and the image has no accessor.


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