Isle
|
Collection of best scores for all recent plays/players (high score table). More...
#include <legogamestate.h>
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... | |
ScoreItem * | FUN_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... | |
ScoreItem * | GetScore (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... | |
Collection of best scores for all recent plays/players (high score table).
[AI]
Definition at line 194 of file legogamestate.h.
LegoGameState::History::History | ( | ) |
Definition at line 1430 of file legogamestate.cpp.
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]
p_player | The username to search for. [AI] |
p_unk0x24 | The index (attempt/run counter). [AI] |
p_unk0x2c | Receives found index or slot. [AI] |
Definition at line 1520 of file legogamestate.cpp.
|
inline |
Current number of score entries in the history. [AI].
Definition at line 208 of file legogamestate.h.
Gets pointer to score entry at index, or NULL if out of range.
[AI]
p_index | Index (0-based) in the history array to get. [AI] |
Definition at line 212 of file legogamestate.h.
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.
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.
MxS16 LegoGameState::History::m_count |
Count of active/used score history entries. [AI].
Definition at line 214 of file legogamestate.h.
ScoreItem LegoGameState::History::m_scores[20] |
Score history; sorted by total score descending. [AI].
Definition at line 215 of file legogamestate.h.
MxS16 LegoGameState::History::m_unk0x372 |
Serial/sequence field incremented for each player. [AI].
Definition at line 216 of file legogamestate.h.