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

Neutraliser of the phrases a catching track has already captured. More...

#include <phraseneutralizer.h>

Inheritance diagram for PhraseNeutralizer:
Collaboration diagram for PhraseNeutralizer:

Public Member Functions

 PhraseNeutralizer (const TrackData *pTrackData, PhraseMgr *pPhraseMgr)
virtual void DispatchPriv (Message *pMsg)
 Act on a message.
Public Member Functions inherited from MsgSource
virtual ~MsgSource ()
virtual void AddSink (MsgSink *pSink)
 Register a sink, ignoring a sink that is already registered.
virtual void RemoveSink (MsgSink *pSink)
 Unregister the first occurrence of a sink.
void Send (Message *pMsg) const
 Deliver a message to every registered sink, in registration order.
void ClearSinks ()
 Unregister every sink.
Public Member Functions inherited from MsgSink
void * operator new (size_t nSize)
 Allocate a sink from the tagged heap under the tag "MsgSink".
void operator delete (void *pBlock)
 Release a sink to the tagged heap.
virtual ~MsgSink ()
virtual void Dispatch (Message *pMsg)
 Accept a message.

Additional Inherited Members

Public Attributes inherited from MsgSource
int mGraphBuilt
 A word no member of this class reads.

Detailed Description

Neutraliser of the phrases a catching track has already captured.

Its RTTI descriptor is at 0x008ff3f0. It is built over MsgSource at offset 0 and MsgSink at offset 20. Its primary table is at 0x007e2e88 with four entries. Its MsgSink subobject table at 0x007e2e60 adjusts this by -20 and fills slot 3 with DispatchPriv(). MsgSource coming first is why CatchingSTG's wiring adjusts by +0x14 when it registers this object as a sink and guards the adjustment against a null pointer. CatchingSTG's tagged allocation measures the object at 0x3c bytes.

The destructor at 0x001c1478 is implicitly declared. It restores the base tables, frees MsgSource's vector, and releases the object under MsgSink's tag.

Constructor & Destructor Documentation

◆ PhraseNeutralizer()

PhraseNeutralizer::PhraseNeutralizer ( const TrackData * pTrackData,
PhraseMgr * pPhraseMgr )
Parameters
pTrackDataThe track description. The constructor copies its track number.
pPhraseMgrThe phrase manager of the track.
Ghidra address:
NTSC-U/C: 0x001c0918
Ghidra address:
PAL: 0x001c6760

Member Function Documentation

◆ DispatchPriv()

virtual void PhraseNeutralizer::DispatchPriv ( Message * pMsg)
virtual

Act on a message.

Slot 3 of the MsgSink table. A NeutralizeMsg goes to PostTrackNeutralizedMsg(), and every other message is discarded.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x001c1700
Ghidra address:
PAL: 0x001c7548

Implements MsgSink.


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