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

Enable policy of a jam session on one machine, which bars only silent vocal bars. More...

#include <localjamenablemgr.h>

Inheritance diagram for LocalJamEnableMgr:
Collaboration diagram for LocalJamEnableMgr:

Public Types

enum  { kTrackCount = 8 }
 The number of tracks the object records. More...

Public Member Functions

 LocalJamEnableMgr ()
 Record the level's first eight tracks.
virtual void SetBarOwner (int nTrack, int nBar, Player *pPlayer)
 Ignore an owner change.
virtual int QueryBar (int nTrack, int nBar)
 Report whether one bar may be caught.
Public Member Functions inherited from EnableMgr
virtual ~EnableMgr ()
virtual void ForceEnabled (int nTrack, int nBar, int nUntilBar)
 Leave one track free of its requirements until a bar.
virtual void ForceDisable (int nTrack)
 Stop one track from ever being enabled.

Static Public Member Functions

static LocalJamEnableMgr * CreateSolo ()
 Build the policy for a jam with one player.
static LocalJamEnableMgr * CreateLocal ()
 Build the policy for a jam with several players on one machine.

Detailed Description

Enable policy of a jam session on one machine, which bars only silent vocal bars.

Its RTTI descriptor is at 0x008ef2f0. It derives publicly from EnableMgr at offset 0. Its type function is at 0x001057b8 and its table at 0x007ccb60. The object is 0x24 bytes. It inherits ForceEnabled() and ForceDisable() from the base, and the destructor at 0x00105788 is implicitly declared.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The number of tracks the object records.

Enumerator
kTrackCount 

Constructor & Destructor Documentation

◆ LocalJamEnableMgr()

LocalJamEnableMgr::LocalJamEnableMgr ( )

Record the level's first eight tracks.

The out-of-line copy has no caller, and the two factories expand the body.

Ghidra address:
NTSC-U/C: 0x00105838
Ghidra address:
PAL: 0x00105838

Member Function Documentation

◆ CreateSolo()

LocalJamEnableMgr * LocalJamEnableMgr::CreateSolo ( )
static

Build the policy for a jam with one player.

Gamer's constructor for the enable policy calls it in kGameModeSolo outside kPlayModeGame. The body is identical to CreateLocal(). The title is inferred.

Returns
The new policy.
Ghidra address:
NTSC-U/C: 0x001025f0
Ghidra address:
PAL: 0x001025f0

◆ CreateLocal()

LocalJamEnableMgr * LocalJamEnableMgr::CreateLocal ( )
static

Build the policy for a jam with several players on one machine.

Gamer's constructor for the enable policy calls it in kGameModeLocal outside kPlayModeGame. The title is inferred.

Returns
The new policy.
Ghidra address:
NTSC-U/C: 0x001026c0
Ghidra address:
PAL: 0x001026c0

◆ SetBarOwner()

virtual void LocalJamEnableMgr::SetBarOwner ( int nTrack,
int nBar,
Player * pPlayer )
virtual

Ignore an owner change.

Parameters
nTrackThe track.
nBarThe bar.
pPlayerThe owner.
Ghidra address:
NTSC-U/C: 0x00105830
Ghidra address:
PAL: 0x00105830

Implements EnableMgr.

◆ QueryBar()

virtual int LocalJamEnableMgr::QueryBar ( int nTrack,
int nBar )
virtual

Report whether one bar may be caught.

Every bar of a track outside kTrackModeVocal may be caught. A vocal bar may be caught only when a NoteFinder finds a note sounding into it, searching the previous bar's MIDI from tick 1920 and then the bar's own MIDI from tick 0.

Parameters
nTrackThe track.
nBarThe bar.
Returns
Non-zero when the bar may be caught.
Ghidra address:
NTSC-U/C: 0x00102488
Ghidra address:
PAL: 0x00102488

Implements EnableMgr.


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