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

Best result of one player on one song at one skill level, as Campaign stores it. More...

#include <songstats.h>

Public Member Functions

 SongStats ()
 Construct a record with every byte cleared.
bool Improve (const SongStats &other)
 Raise each statistic to the larger of its own value and the value of another record.
bool operator== (const SongStats &other) const
 Report whether two records are of the same song at the same skill level.

Public Attributes

const char * mSong
unsigned short mScore
unsigned char mSkillLevel
unsigned char mBestStreak
unsigned char mBlasted
unsigned char mFullMixBars
unsigned char mPercentDone

Detailed Description

Best result of one player on one song at one skill level, as Campaign stores it.

The class is not polymorphic. The name comes from the RTTI of the vectors that store it. The object is 12 bytes.

Constructor & Destructor Documentation

◆ SongStats()

SongStats::SongStats ( )

Construct a record with every byte cleared.

Ghidra address:
NTSC-U/C: 0x00276970
Ghidra address:
PAL: 0x00280490

Member Function Documentation

◆ Improve()

bool SongStats::Improve ( const SongStats & other)

Raise each statistic to the larger of its own value and the value of another record.

Nothing changes unless the other record has a higher score, more full mix bars, a higher share blasted, or a longer best streak. The name is inferred.

Parameters
otherThe other record.
Returns
Whether the record changed.
Ghidra address:
NTSC-U/C: 0x00276990
Ghidra address:
PAL: 0x002804b0

◆ operator==()

bool SongStats::operator== ( const SongStats & other) const

Report whether two records are of the same song at the same skill level.

Parameters
otherThe other record.
Returns
Whether the song and the skill level match.
Ghidra address:
NTSC-U/C: 0x00276a98
Ghidra address:
PAL: 0x002805b8

Member Data Documentation

◆ mSong

const char* SongStats::mSong

The song, a symbol.

◆ mScore

unsigned short SongStats::mScore

The best score.

◆ mSkillLevel

unsigned char SongStats::mSkillLevel

The skill level.

◆ mBestStreak

unsigned char SongStats::mBestStreak

The best streak.

◆ mBlasted

unsigned char SongStats::mBlasted

The share of the gems blasted, in percent.

◆ mFullMixBars

unsigned char SongStats::mFullMixBars

The bars played with the full mix.

◆ mPercentDone

unsigned char SongStats::mPercentDone

The part of the song played, 100 for a finished song.


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