Go to the source code of this file.
|
| int | GetGemPoints (int nTick) |
| | Report the points of a gem from the points configuration.
|
| int | GetPhrasePoints (const GemCursor &cursor, int nStartBar, int nEndBar, int nTicksPerBar) |
| | Report the points of the gems of a phrase, divided by the phrase scale and rounded up.
|
◆ GetGemPoints()
| int GetGemPoints |
( |
int | nTick | ) |
|
Report the points of a gem from the points configuration.
The first entry of the gem table whose divisor divides the tick applies. The routines of the file use no object, and the file name is inferred.
- Parameters
-
| nTick | The song tick of the gem. |
- Returns
- The points, or 0 with a warning when no divisor divides the tick.
- Ghidra address:
- NTSC-U/C: 0x00128658
- Ghidra address:
- PAL: 0x00129e50
◆ GetPhrasePoints()
| int GetPhrasePoints |
( |
const GemCursor & | cursor, |
|
|
int | nStartBar, |
|
|
int | nEndBar, |
|
|
int | nTicksPerBar ) |
Report the points of the gems of a phrase, divided by the phrase scale and rounded up.
- Parameters
-
| cursor | The first gem of the phrase. |
| nStartBar | The first bar of the phrase. It is unused. |
| nEndBar | The bar after the phrase. |
| nTicksPerBar | The song ticks in one bar. |
- Returns
- The points.
- Ghidra address:
- NTSC-U/C: 0x001286c8
- Ghidra address:
- PAL: 0x00129ec0