wavelength 1.0.0
Loading...
Searching...
No Matches
GameCallback Class Reference

Listener the gameplay code tells about the player's actions. More...

#include <gamecallback.h>

Inheritance diagram for GameCallback:

Public Member Functions

virtual ~GameCallback ()
 Release the listener.
virtual void OnGemHit ()
 Report a gem the player hit.
virtual void OnGemMiss (int nLane)
 Report a gem the player missed.
virtual void OnGemPass ()
 Report a gem the player let pass.
virtual void OnCapture (int nTrack)
 Report a track the player captured.
virtual void OnAutocapture ()
 Report an automatic capture.
virtual void OnStreakBroken (int nStreak)
 Report a broken streak.
virtual void OnPowerup ()
 Report a powerup the player deployed.
virtual void OnPitch ()
 Report a pitch change.
virtual void OnLoop ()
 Report that looping was switched on.
virtual void OnSectionChange (int nSection)
 Report a section change.
virtual void OnBurnPattern ()
 Report a burned pattern.
virtual void OnErase ()
 Report an erased pattern.
virtual void OnEraseSection ()
 Report an erased section.
virtual void OnRotate (bool bRight)
 Report a rotation.
virtual void OnPatternMenuOpen ()
 Report that the pattern menu was opened.

Static Public Member Functions

static void Set (GameCallback *pCallback)
 Install the listener the gameplay code reports to.

Detailed Description

Listener the gameplay code tells about the player's actions.

The RTTI includes the class name, and the class has no base. Every member does nothing in this class. A tutorial step that waits for an action derives from it and installs itself as TheGameCallback while it runs.

Constructor & Destructor Documentation

◆ ~GameCallback()

virtual GameCallback::~GameCallback ( )
inlinevirtual

Release the listener.

Ghidra address:
NTSC-U/C: 0x003443a8
Ghidra address:
PAL: 0x003b18e0

Member Function Documentation

◆ Set()

void GameCallback::Set ( GameCallback * pCallback)
static

Install the listener the gameplay code reports to.

Parameters
pCallbackThe listener, or null to stop reporting.
Ghidra address:
NTSC-U/C: 0x0010f020
Ghidra address:
PAL: 0x001107b8

◆ OnGemHit()

virtual void GameCallback::OnGemHit ( )
inlinevirtual

Report a gem the player hit.

Ghidra address:
NTSC-U/C: 0x00343f40
Ghidra address:
PAL: 0x003b1478

Reimplemented in WaitInteractiveTask.

◆ OnGemMiss()

virtual void GameCallback::OnGemMiss ( int nLane)
inlinevirtual

Report a gem the player missed.

Parameters
nLaneThe lane of the gem.
Ghidra address:
NTSC-U/C: 0x00343f48
Ghidra address:
PAL: 0x003b1480

Reimplemented in WaitInteractiveTask.

◆ OnGemPass()

virtual void GameCallback::OnGemPass ( )
inlinevirtual

Report a gem the player let pass.

Ghidra address:
NTSC-U/C: 0x00343f50
Ghidra address:
PAL: 0x003b1488

Reimplemented in WaitInteractiveTask.

◆ OnCapture()

virtual void GameCallback::OnCapture ( int nTrack)
inlinevirtual

Report a track the player captured.

Parameters
nTrackThe track.
Ghidra address:
NTSC-U/C: 0x00343f58
Ghidra address:
PAL: 0x003b1490

Reimplemented in WaitInteractiveTask.

◆ OnAutocapture()

virtual void GameCallback::OnAutocapture ( )
inlinevirtual

Report an automatic capture.

Ghidra address:
NTSC-U/C: 0x00343f60
Ghidra address:
PAL: 0x003b1498

Reimplemented in WaitInteractiveTask.

◆ OnStreakBroken()

virtual void GameCallback::OnStreakBroken ( int nStreak)
inlinevirtual

Report a broken streak.

Parameters
nStreakThe length of the streak that broke.
Ghidra address:
NTSC-U/C: 0x00343f68
Ghidra address:
PAL: 0x003b14a0

Reimplemented in WaitInteractiveTask.

◆ OnPowerup()

virtual void GameCallback::OnPowerup ( )
inlinevirtual

Report a powerup the player deployed.

Ghidra address:
NTSC-U/C: 0x00343f70
Ghidra address:
PAL: 0x003b14a8

Reimplemented in WaitInteractiveTask.

◆ OnPitch()

virtual void GameCallback::OnPitch ( )
inlinevirtual

Report a pitch change.

Ghidra address:
NTSC-U/C: 0x00343f78
Ghidra address:
PAL: 0x003b14b0

Reimplemented in WaitInteractiveRemixTask.

◆ OnLoop()

virtual void GameCallback::OnLoop ( )
inlinevirtual

Report that looping was switched on.

Ghidra address:
NTSC-U/C: 0x00343f80
Ghidra address:
PAL: 0x003b14b8

Reimplemented in WaitInteractiveRemixTask.

◆ OnSectionChange()

virtual void GameCallback::OnSectionChange ( int nSection)
inlinevirtual

Report a section change.

Parameters
nSectionThe section.
Ghidra address:
NTSC-U/C: 0x00343f88
Ghidra address:
PAL: 0x003b14c0

Reimplemented in WaitInteractiveRemixTask.

◆ OnBurnPattern()

virtual void GameCallback::OnBurnPattern ( )
inlinevirtual

Report a burned pattern.

Ghidra address:
NTSC-U/C: 0x00343f90
Ghidra address:
PAL: 0x003b14c8

Reimplemented in WaitInteractiveRemixTask.

◆ OnErase()

virtual void GameCallback::OnErase ( )
inlinevirtual

Report an erased pattern.

Ghidra address:
NTSC-U/C: 0x00343f98
Ghidra address:
PAL: 0x003b14d0

Reimplemented in WaitInteractiveRemixTask.

◆ OnEraseSection()

virtual void GameCallback::OnEraseSection ( )
inlinevirtual

Report an erased section.

Ghidra address:
NTSC-U/C: 0x00343fa0
Ghidra address:
PAL: 0x003b14d8

Reimplemented in WaitInteractiveRemixTask.

◆ OnRotate()

virtual void GameCallback::OnRotate ( bool bRight)
inlinevirtual

Report a rotation.

Parameters
bRightThe rotation was to the right.
Ghidra address:
NTSC-U/C: 0x00343fa8
Ghidra address:
PAL: 0x003b14e0

Reimplemented in WaitInteractiveRemixTask.

◆ OnPatternMenuOpen()

virtual void GameCallback::OnPatternMenuOpen ( )
inlinevirtual

Report that the pattern menu was opened.

Ghidra address:
NTSC-U/C: 0x00343fb0
Ghidra address:
PAL: 0x003b14e8

Reimplemented in WaitInteractiveRemixTask.


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