18 #ifndef INC_C4Scoreboard
19 #define INC_C4Scoreboard
33 void GrabFrom(Entry *pFrom)
34 { Text.
Take(std::move(pFrom->Text)); iVal = pFrom->iVal; }
35 void SwapWith(Entry *pSwap);
39 int32_t iRows{0},iCols{0};
40 Entry *pEntries{
nullptr};
43 void AddRow(int32_t iInsertBefore);
44 void AddCol(int32_t iInsertBefore);
45 void DelRow(int32_t iDelIndex);
46 void DelCol(int32_t iDelIndex);
49 int32_t GetColByKey(int32_t iKey)
const;
50 int32_t GetRowByKey(int32_t iKey)
const;
53 void SwapRows(int32_t iRow1, int32_t iRow2);
56 void InvalidateRows();
64 Entry *
GetCell(int32_t iCol, int32_t iRow)
const {
return pEntries+iRow*iCols+iCol; }
74 void SetCell(int32_t iColKey, int32_t iRowKey,
const char *szValue, int32_t iValue);
76 int32_t
GetCellData(int32_t iColKey, int32_t iRowKey);
79 bool SortBy(int32_t iColKey,
bool fReverse);
81 void DoDlgShow(int32_t iChange,
bool fUserToggle);
class C4ScoreboardDlg * pDlg
bool SortBy(int32_t iColKey, bool fReverse)
void DoDlgShow(int32_t iChange, bool fUserToggle)
void CompileFunc(StdCompiler *pComp)
Entry * GetCell(int32_t iCol, int32_t iRow) const
int32_t GetCellData(int32_t iColKey, int32_t iRowKey)
void RemoveCol(int32_t iColKey)
void RemoveRow(int32_t iRowKey)
void SetCell(int32_t iColKey, int32_t iRowKey, const char *szValue, int32_t iValue)
const char * GetCellString(int32_t iColKey, int32_t iRowKey)