The pattern each section of a remixed song repeats, as the section the pattern comes from.
More...
#include <slotgrid.h>
|
| | 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.
|
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.
◆ SlotGrid()
| SlotGrid::SlotGrid |
( |
int | nSections | ) |
|
|
explicit |
Construct a grid in which no section repeats a pattern.
- Parameters
-
| nSections | The number of sections. |
- Ghidra address:
- NTSC-U/C: 0x0012fc30
- Ghidra address:
- PAL: 0x00131458
◆ SetPattern()
| void SlotGrid::SetPattern |
( |
int | nPattern, |
|
|
int | nSection ) |
Set the pattern a section repeats, and count the sections that repeat none.
- Parameters
-
| nPattern | The section the pattern comes from, or -1. |
| nSection | The 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
-
- 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
-
- 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: