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

The pattern each section of a remixed song repeats, as the section the pattern comes from. More...

#include <slotgrid.h>

Public Member Functions

 SlotGrid (int nSections)
 Construct a grid in which no section repeats a pattern.
void SetPattern (int nPattern, int nSection)
 Set the pattern a section repeats, and count the sections that repeat none.
bool HasPattern (int nSection) const
 Report whether a section repeats a pattern.
int GetPattern (int nSection) const
 Report the pattern a section repeats.
int GetNumSections () const
 Report the number of sections.
int GetNumFree () const
 Report the number of sections that repeat no pattern.

Detailed Description

The pattern each section of a remixed song repeats, as the section the pattern comes from.

The class is not polymorphic and has no RTTI. The name is inferred.

Constructor & Destructor Documentation

◆ SlotGrid()

SlotGrid::SlotGrid ( int nSections)
explicit

Construct a grid in which no section repeats a pattern.

Parameters
nSectionsThe number of sections.
Ghidra address:
NTSC-U/C: 0x0012fc30
Ghidra address:
PAL: 0x00131458

Member Function Documentation

◆ SetPattern()

void SlotGrid::SetPattern ( int nPattern,
int nSection )

Set the pattern a section repeats, and count the sections that repeat none.

Parameters
nPatternThe section the pattern comes from, or -1.
nSectionThe section.
Ghidra address:
NTSC-U/C: 0x0012fcf0
Ghidra address:
PAL: 0x00131518

◆ HasPattern()

bool SlotGrid::HasPattern ( int nSection) const

Report whether a section repeats a pattern.

Parameters
nSectionThe section.
Returns
Whether the section's pattern is not -1.
Ghidra address:
NTSC-U/C: 0x0012fd50
Ghidra address:
PAL: 0x00131578

◆ GetPattern()

int SlotGrid::GetPattern ( int nSection) const

Report the pattern a section repeats.

Parameters
nSectionThe section.
Returns
The section the pattern comes from, or -1.
Ghidra address:
NTSC-U/C: 0x0012fd70
Ghidra address:
PAL: 0x00131598

◆ GetNumSections()

int SlotGrid::GetNumSections ( ) const

Report the number of sections.

Returns
The number of sections.
Ghidra address:
NTSC-U/C: 0x0012fd88
Ghidra address:
PAL: 0x001315b0

◆ GetNumFree()

int SlotGrid::GetNumFree ( ) const

Report the number of sections that repeat no pattern.

Returns
mNumFree.
Ghidra address:
NTSC-U/C: 0x0012fda0
Ghidra address:
PAL: 0x001315c8

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