#include <C4Scoreboard.h>
Public Types | |
enum | { TitleKey = -1 } |
Public Member Functions | |
C4Scoreboard ()=default | |
~C4Scoreboard () | |
void | Clear () |
void | SetCell (int32_t iColKey, int32_t iRowKey, const char *szValue, int32_t iValue) |
const char * | GetCellString (int32_t iColKey, int32_t iRowKey) |
int32_t | GetCellData (int32_t iColKey, int32_t iRowKey) |
void | RemoveCol (int32_t iColKey) |
void | RemoveRow (int32_t iRowKey) |
bool | SortBy (int32_t iColKey, bool fReverse) |
void | DoDlgShow (int32_t iChange, bool fUserToggle) |
void | HideDlg () |
bool | ShouldBeShown () |
bool | CanBeShown () |
bool | KeyUserShow () |
void | CompileFunc (StdCompiler *pComp) |
Protected Member Functions | |
Entry * | GetCell (int32_t iCol, int32_t iRow) const |
Protected Attributes | |
class C4ScoreboardDlg * | pDlg {nullptr} |
int32_t | iDlgShow {0} |
Friends | |
class | C4ScoreboardDlg |
Definition at line 21 of file C4Scoreboard.h.
anonymous enum |
|
default |
|
inline |
Definition at line 70 of file C4Scoreboard.h.
References Clear().
|
inline |
Definition at line 84 of file C4Scoreboard.h.
References iDlgShow.
Referenced by DoDlgShow().
void C4Scoreboard::Clear | ( | ) |
Definition at line 64 of file C4Scoreboard.cpp.
References iDlgShow, and pDlg.
Referenced by C4Game::Clear(), CompileFunc(), and ~C4Scoreboard().
void C4Scoreboard::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 315 of file C4Scoreboard.cpp.
References Clear(), DoDlgShow(), FormatString(), GetCell(), iDlgShow, StdCompiler::isDeserializer(), mkNamingAdapt(), and StdCompiler::Value().
void C4Scoreboard::DoDlgShow | ( | int32_t | iChange, |
bool | fUserToggle | ||
) |
Definition at line 285 of file C4Scoreboard.cpp.
References CanBeShown(), C4GUI::Dialog::Close(), iDlgShow, C4GUI::Screen::IsExclusive(), C4GameOverDlg::IsShown(), pDlg, pGUI, ShouldBeShown(), and C4GUI::Screen::ShowRemoveDlg().
Referenced by CompileFunc(), C4Game::Init(), and KeyUserShow().
|
inlineprotected |
Definition at line 64 of file C4Scoreboard.h.
Referenced by CompileFunc(), C4ScoreboardDlg::DrawElement(), GetCellData(), GetCellString(), SetCell(), SortBy(), and C4ScoreboardDlg::Update().
int32_t C4Scoreboard::GetCellData | ( | int32_t | iColKey, |
int32_t | iRowKey | ||
) |
Definition at line 225 of file C4Scoreboard.cpp.
References GetCell().
const char * C4Scoreboard::GetCellString | ( | int32_t | iColKey, |
int32_t | iRowKey | ||
) |
Definition at line 214 of file C4Scoreboard.cpp.
References GetCell().
void C4Scoreboard::HideDlg | ( | ) |
Definition at line 308 of file C4Scoreboard.cpp.
References C4GUI::Dialog::Close(), C4GUI::Screen::IsExclusive(), pDlg, and pGUI.
Referenced by C4GameOverDlg::OnShown().
|
inline |
Definition at line 86 of file C4Scoreboard.h.
References DoDlgShow().
Referenced by C4Game::InitKeyboard().
void C4Scoreboard::RemoveCol | ( | int32_t | iColKey | ) |
Definition at line 236 of file C4Scoreboard.cpp.
void C4Scoreboard::RemoveRow | ( | int32_t | iRowKey | ) |
Definition at line 243 of file C4Scoreboard.cpp.
void C4Scoreboard::SetCell | ( | int32_t | iColKey, |
int32_t | iRowKey, | ||
const char * | szValue, | ||
int32_t | iValue | ||
) |
Definition at line 171 of file C4Scoreboard.cpp.
References GetCell(), and TitleKey.
|
inline |
Definition at line 83 of file C4Scoreboard.h.
References iDlgShow.
Referenced by DoDlgShow().
bool C4Scoreboard::SortBy | ( | int32_t | iColKey, |
bool | fReverse | ||
) |
Definition at line 250 of file C4Scoreboard.cpp.
References GetCell().
|
friend |
Definition at line 66 of file C4Scoreboard.h.
|
protected |
Definition at line 61 of file C4Scoreboard.h.
Referenced by CanBeShown(), Clear(), CompileFunc(), DoDlgShow(), and ShouldBeShown().
|
protected |
Definition at line 60 of file C4Scoreboard.h.
Referenced by Clear(), DoDlgShow(), HideDlg(), and C4ScoreboardDlg::~C4ScoreboardDlg().