Xonotic
|
Go to the source code of this file.
Macros | |
#define | IS_DECREASING(x) ( !((x) & SFL_LOWER_IS_BETTER) ) |
#define | IS_INCREASING(x) ( (x) & SFL_LOWER_IS_BETTER ) |
#define | MAX_SCORE 64 |
#define | MAX_TEAMSCORE 2 |
#define | REGISTER_SP(id) REGISTER(Scores, SP, id, m_id, new_pure(PlayerScoreField)) |
#define | scores(this) _scores[(this).m_id] |
#define | scores_flags(this) ((this).m_flags) |
#define | scores_label(this) ((this).m_name) |
#define | SFL_ZERO_IS_WORST SFL_TIME |
#define | teamscores(i) _teamscores[i] |
#define | teamscores_flags(i) _teamscores_flags[i] |
#define | teamscores_label(i) _teamscores_label[i] |
Typedefs | |
using | PlayerScoreField = entity |
using | ScoreTeam = string |
Functions | |
REGISTRY (Scores, MAX_SCORE) | |
REGISTRY_CHECK (Scores) | |
REGISTRY_SORT (Scores) | |
STATIC_INIT (Scores_renumber) | |
Variables | |
int | _scores [MAX_SCORE] |
int | _teamscores [MAX_TEAMSCORE] |
int | _teamscores_flags [MAX_TEAMSCORE] |
string | _teamscores_label [MAX_TEAMSCORE] |
int | m_flags |
string | m_name |
const int | SFL_ALLOW_HIDE = BIT(4) |
Allow a column to be hidden (do not automatically add it even if it is a sorting key) More... | |
const int | SFL_HIDE_ZERO = BIT(1) |
Don't show zero values as scores. More... | |
const int | SFL_LOWER_IS_BETTER = BIT(0) |
Lower scores are better (e.g. More... | |
const int | SFL_RANK = BIT(5) |
Display as a rank (with st, nd, rd, th suffix) More... | |
const int | SFL_SORT_PRIO_MASK = 12 |
const int | SFL_SORT_PRIO_PRIMARY = 8 |
const int | SFL_SORT_PRIO_SECONDARY = 4 |
Scoring priority (NOTE: PRIMARY is used for fraglimit) More... | |
const int | SFL_TIME = BIT(6) |
Display as mm:ss.s, value is stored as 10ths of a second (AND 0 is the worst possible value!) More... | |
const int | ST_SCORE = 0 |
#define IS_DECREASING | ( | x | ) | ( !((x) & SFL_LOWER_IS_BETTER) ) |
Definition at line 131 of file scores.qh.
Referenced by Scoreboard_CompareScore().
#define IS_INCREASING | ( | x | ) | ( (x) & SFL_LOWER_IS_BETTER ) |
Definition at line 130 of file scores.qh.
Referenced by Scoreboard_CompareScore().
#define MAX_TEAMSCORE 2 |
Definition at line 142 of file scores.qh.
Referenced by GetTeamScoreString(), NET_HANDLE(), PlayerScore_TeamStats(), Score_ClearAll(), Score_NicePrint_Team(), Scoreboard_CompareTeamScores(), Scoreboard_InitScores(), ScoreInfo_SendEntity(), ScoreRules_basics(), TeamScore_Compare(), TeamScore_SendEntity(), and WinningCondition_RanOutOfSpawns().
#define REGISTER_SP | ( | id | ) | REGISTER(Scores, SP, id, m_id, new_pure(PlayerScoreField)) |
Definition at line 5 of file scores.qh.
Referenced by STATIC_INIT().
Definition at line 138 of file scores.qh.
Referenced by PlayerScore_Compare(), PlayerScore_SendEntity(), and ScoreInfo_SetLabel_PlayerScore().
Definition at line 140 of file scores.qh.
Referenced by Cmd_Scoreboard_SetFields(), GetPlayerScoreString(), HUD_Mod_Race(), HUD_Score(), NET_HANDLE(), PlayerScore_Compare(), Score_NicePrint_Player(), Score_NicePrint_Team(), Scoreboard_ComparePlayerScores(), Scoreboard_InitScores(), ScoreInfo_SendEntity(), and ScoreInfo_SetLabel_PlayerScore().
Definition at line 139 of file scores.qh.
Referenced by Cmd_Scoreboard_SetFields(), GetPlayerScoreString(), NET_HANDLE(), PlayerScore_Add(), PlayerScore_Clear(), PlayerScore_PlayerStats(), PlayerScore_Set(), Score_ClearAll(), Score_NicePrint(), Score_NicePrint_Player(), Score_NicePrint_Team(), Scoreboard_InitScores(), ScoreInfo_SendEntity(), and ScoreInfo_SetLabel_PlayerScore().
#define SFL_ZERO_IS_WORST SFL_TIME |
Definition at line 121 of file scores.qh.
Referenced by HUD_Score(), Scoreboard_CompareScore(), ScoreField_Compare(), TeamScore_GetCompareValue(), and WinningConditionHelper().
#define teamscores | ( | i | ) | _teamscores[i] |
Definition at line 145 of file scores.qh.
Referenced by ScoreInfo_SetLabel_TeamScore(), TeamScore_Compare(), and TeamScore_SendEntity().
#define teamscores_flags | ( | i | ) | _teamscores_flags[i] |
Definition at line 149 of file scores.qh.
Referenced by GetTeamScoreString(), NET_HANDLE(), Score_NicePrint_Team(), Scoreboard_CompareTeamScores(), Scoreboard_InitScores(), ScoreInfo_SendEntity(), ScoreInfo_SetLabel_TeamScore(), and TeamScore_Compare().
#define teamscores_label | ( | i | ) | _teamscores_label[i] |
Definition at line 147 of file scores.qh.
Referenced by GetTeamScoreString(), NET_HANDLE(), PlayerScore_TeamStats(), Score_ClearAll(), Score_NicePrint_Team(), ScoreInfo_SendEntity(), ScoreInfo_SetLabel_TeamScore(), and TeamScore_AddToTeam().
using PlayerScoreField = entity |
REGISTRY | ( | Scores | , |
MAX_SCORE | |||
) |
REGISTRY_CHECK | ( | Scores | ) |
REGISTRY_SORT | ( | Scores | ) |
STATIC_INIT | ( | Scores_renumber | ) |
int _teamscores[MAX_TEAMSCORE] |
int _teamscores_flags[MAX_TEAMSCORE] |
string _teamscores_label[MAX_TEAMSCORE] |
string m_name |
Definition at line 135 of file scores.qh.
Referenced by Buff::Buff ::display(), GameItem::GameItem ::display(), GameItem::GameItem ::m_spawnfunc_hookreplace(), Pickup::Pickup ::show(), REGISTER_ITEM(), REGISTER_NADE(), Weapon::Weapon ::display(), and WeaponPickup::WeaponPickup ::WeaponPickup().
Allow a column to be hidden (do not automatically add it even if it is a sorting key)
Definition at line 108 of file scores.qh.
Referenced by Cmd_Scoreboard_SetFields(), and REGISTER_MUTATOR().
Don't show zero values as scores.
Definition at line 103 of file scores.qh.
Referenced by depthfirst().
Lower scores are better (e.g.
suicides)
Definition at line 98 of file scores.qh.
Referenced by ctf_ScoreRules(), cts_ScoreRules(), GetScoreLogLabel(), kh_ScoreRules(), nb_ScoreRules(), race_ScoreRules(), REGISTER_MUTATOR(), ScoreField_Compare(), ScoreRules_basics(), TeamScore_GetCompareValue(), and WinningConditionHelper().
Display as a rank (with st, nd, rd, th suffix)
Definition at line 113 of file scores.qh.
Referenced by depthfirst(), and REGISTER_MUTATOR().
const int SFL_SORT_PRIO_MASK = 12 |
Definition at line 128 of file scores.qh.
Referenced by GetPlayerScoreString(), GetScoreLogLabel(), GetTeamScoreString(), Scoreboard_InitScores(), ScoreField_Compare(), ScoreInfo_SetLabel_PlayerScore(), and ScoreInfo_SetLabel_TeamScore().
const int SFL_SORT_PRIO_PRIMARY = 8 |
Definition at line 127 of file scores.qh.
Referenced by ctf_ScoreRules(), cts_ScoreRules(), freezetag_Initialize(), GetPlayerScoreString(), GetScoreLogLabel(), GetTeamScoreString(), invasion_ScoreRules(), kh_ScoreRules(), nb_ScoreRules(), ons_ScoreRules(), race_ScoreRules(), REGISTER_MUTATOR(), Score_NicePrint_ItemColor(), Scoreboard_InitScores(), ScoreInfo_SetLabel_PlayerScore(), ScoreInfo_SetLabel_TeamScore(), ScoreRules_dom(), and ScoreRules_generic().
const int SFL_SORT_PRIO_SECONDARY = 4 |
Scoring priority (NOTE: PRIMARY is used for fraglimit)
Definition at line 126 of file scores.qh.
Referenced by ctf_ScoreRules(), cts_ScoreRules(), GetPlayerScoreString(), GetScoreLogLabel(), GetTeamScoreString(), invasion_ScoreRules(), kh_ScoreRules(), nb_ScoreRules(), ons_ScoreRules(), race_ScoreRules(), REGISTER_MUTATOR(), Score_NicePrint_ItemColor(), and Scoreboard_InitScores().
Display as mm:ss.s, value is stored as 10ths of a second (AND 0 is the worst possible value!)
Definition at line 118 of file scores.qh.
Referenced by ctf_ScoreRules(), cts_ScoreRules(), depthfirst(), HUD_Mod_Race(), HUD_Score(), and race_ScoreRules().
const int ST_SCORE = 0 |
Definition at line 151 of file scores.qh.
Referenced by ctf_Handle_Return(), dompointthink(), and ScoreRules_basics().