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

Listener that records the bar a player erases on one track. More...

#include <phraseeraser.h>

Inheritance diagram for PhraseEraser:
Collaboration diagram for PhraseEraser:

Public Member Functions

 PhraseEraser (int nTrack, int nSecondArgument, PhraseMgr *pPhraseMgr, int nFourthArgument, int nFifthArgument)
 Store the five arguments.
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

Listener that records the bar a player erases on one track.

Its RTTI descriptor is at 0x00901f20. It is built over MsgSource at offset 0 and MsgSink at offset 20. The primary table is at 0x007e1f98. The MsgSink table at 0x007e1f70 adjusts this by -20 and fills slot 3 with DispatchPriv(). No routine in the image calls the constructor, so the class is compiled but never built. The last member read or written is at +0x38, and no allocation measures the object.

The destructor at 0x001b9908 is implicitly declared.

Constructor & Destructor Documentation

◆ PhraseEraser()

PhraseEraser::PhraseEraser ( int nTrack,
int nSecondArgument,
PhraseMgr * pPhraseMgr,
int nFourthArgument,
int nFifthArgument )

Store the five arguments.

Three are not read by any recovered routine, so their types are recorded as words and their titles record only their argument positions.

Parameters
nTrackThe track the eraser listens for.
nSecondArgumentStored at +0x34.
pPhraseMgrThe phrase manager whose bar length divides an erase position.
nFourthArgumentStored at +0x38.
nFifthArgumentStored at +0x28.
Ghidra address:
NTSC-U/C: 0x001b99c8
Ghidra address:
PAL: 0x001bf7a0

Member Function Documentation

◆ DispatchPriv()

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

Act on a message.

Slot 3 of the MsgSink table. An EraseMsg for mTrack goes through the branch OnEraseMsg() copies, and every other message is discarded.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x001b9ad0
Ghidra address:
PAL: 0x001bf8a8

Implements MsgSink.


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