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

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

#include <neutralizemsg.h>

Inheritance diagram for NeutralizeMsg:
Collaboration diagram for NeutralizeMsg:

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 player's colour name 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

int mBar
int mTrack
Player * mPlayer
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 0x008eecb8. It has CmdMsg as its one base. The object is 0x14 bytes and its vtable is at 0x008122b8. The word at +0x04 belongs to CmdMsg.

NeutralizePowerup builds the message at 0x001c9c64 from the three arguments of its slot 2, storing the second at +0x08, the first at +0x0c, and the player at +0x10. PrintExtra() writes only that player's colour name. All three members are public because PhraseNeutralizer::PostTrackNeutralizedMsg() at 0x001c0980 reads them directly with no accessor in the image. It compares mTrack with its own track, neutralises the four bars after mBar (mBar + 1 through mBar + 4), and copies mPlayer into the DeployedPowerupMsg it sends.

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

Member Function Documentation

◆ New()

Message * NeutralizeMsg::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: 0x003d7768
Ghidra address:
PAL: 0x0040f668

◆ Clone()

virtual Message * NeutralizeMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003e03a8
Ghidra address:
PAL: 0x00418800

Implements Message.

◆ Type()

virtual int NeutralizeMsg::Type ( )
virtual

Report this message's registered identity.

Returns
sID.
Ghidra address:
NTSC-U/C: 0x003e0418
Ghidra address:
PAL: 0x00418870

Implements Message.

◆ GetName()

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

Report this message's class name.

Returns
The literal NeutralizeMsg.
Ghidra address:
NTSC-U/C: 0x003e0428
Ghidra address:
PAL: 0x00418880

Implements Message.

◆ PrintExtra()

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

Write the player's colour name to a diagnostic stream.

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

Reimplemented from Message.

Member Data Documentation

◆ sID

int NeutralizeMsg::sID
static

Identity that Type() reports.

Ghidra address:
NTSC-U/C: 0x006d031c
Ghidra address:
PAL: 0x00713ab4

◆ mBar

int NeutralizeMsg::mBar

The bar the four neutralised bars follow. +0x08

◆ mTrack

int NeutralizeMsg::mTrack

The track to neutralise. +0x0c

◆ mPlayer

Player* NeutralizeMsg::mPlayer

The player who deployed the neutraliser. +0x10


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