Isle
Loading...
Searching...
No Matches
LegoGameState::History Struct Reference

Collection of best scores for all recent plays/players (high score table). More...

#include <legogamestate.h>

Collaboration diagram for LegoGameState::History:

Public Member Functions

 History ()
 
void WriteScoreHistory ()
 Rebuilds the high score table from current state objects, sorts it descending. [AI]. More...
 
MxResult Serialize (LegoStorage *p_storage)
 Serializes whole history, including all score item slots, to the provided storage/backend. [AI]. More...
 
ScoreItemFUN_1003cc90 (Username *p_player, MxS16 p_unk0x24, MxS32 &p_unk0x2c)
 Looks up a score entry for player and attempt index, or returns NULL if not found. More...
 
MxS16 GetCount ()
 Current number of score entries in the history. [AI]. More...
 
ScoreItemGetScore (MxS32 p_index)
 Gets pointer to score entry at index, or NULL if out of range. More...
 

Public Attributes

MxS16 m_count
 Count of active/used score history entries. [AI]. More...
 
ScoreItem m_scores [20]
 Score history; sorted by total score descending. [AI]. More...
 
MxS16 m_unk0x372
 Serial/sequence field incremented for each player. [AI]. More...
 

Detailed Description

Collection of best scores for all recent plays/players (high score table).

[AI]

Definition at line 194 of file legogamestate.h.

Constructor & Destructor Documentation

◆ History()

LegoGameState::History::History ( )

Definition at line 1430 of file legogamestate.cpp.

Member Function Documentation

◆ FUN_1003cc90()

LegoGameState::ScoreItem * LegoGameState::History::FUN_1003cc90 ( LegoGameState::Username p_player,
MxS16  p_unk0x24,
MxS32 p_unk0x2c 
)

Looks up a score entry for player and attempt index, or returns NULL if not found.

[AI]

Parameters
p_playerThe username to search for. [AI]
p_unk0x24The index (attempt/run counter). [AI]
p_unk0x2cReceives found index or slot. [AI]
Returns
ScoreItem for found match. [AI]

Definition at line 1520 of file legogamestate.cpp.

◆ GetCount()

MxS16 LegoGameState::History::GetCount ( )
inline

Current number of score entries in the history. [AI].

Definition at line 208 of file legogamestate.h.

◆ GetScore()

ScoreItem * LegoGameState::History::GetScore ( MxS32  p_index)
inline

Gets pointer to score entry at index, or NULL if out of range.

[AI]

Parameters
p_indexIndex (0-based) in the history array to get. [AI]

Definition at line 212 of file legogamestate.h.

◆ Serialize()

MxResult LegoGameState::History::Serialize ( LegoStorage p_storage)

Serializes whole history, including all score item slots, to the provided storage/backend. [AI].

Definition at line 1544 of file legogamestate.cpp.

◆ WriteScoreHistory()

void LegoGameState::History::WriteScoreHistory ( )

Rebuilds the high score table from current state objects, sorts it descending. [AI].

Definition at line 1438 of file legogamestate.cpp.

Member Data Documentation

◆ m_count

MxS16 LegoGameState::History::m_count

Count of active/used score history entries. [AI].

Definition at line 214 of file legogamestate.h.

◆ m_scores

ScoreItem LegoGameState::History::m_scores[20]

Score history; sorted by total score descending. [AI].

Definition at line 215 of file legogamestate.h.

◆ m_unk0x372

MxS16 LegoGameState::History::m_unk0x372

Serial/sequence field incremented for each player. [AI].

Definition at line 216 of file legogamestate.h.


The documentation for this struct was generated from the following files: