wavelength 1.0.0
Loading...
Searching...
No Matches
points.h File Reference
#include "game/gemcursor.h"
Include dependency graph for points.h:

Go to the source code of this file.

Functions

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.

Function Documentation

◆ 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
nTickThe 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
cursorThe first gem of the phrase.
nStartBarThe first bar of the phrase. It is unused.
nEndBarThe bar after the phrase.
nTicksPerBarThe song ticks in one bar.
Returns
The points.
Ghidra address:
NTSC-U/C: 0x001286c8
Ghidra address:
PAL: 0x00129ec0