MCPcopy Create free account
hub / github.com/assaultcube/AC / team_string

Function team_string

source/src/entity.h:113–113  ·  view source on GitHub ↗

note: team_isactive and team_base can/should be used to check the limits for arrays of size '2'

Source from the content-addressed store, hash-verified

111#define team_tospec(t) ((t) == TEAM_SPECT ? TEAM_SPECT : team_base(t) + TEAM_CLA_SPECT - TEAM_CLA)
112// note: team_isactive and team_base can/should be used to check the limits for arrays of size '2'
113static inline const char *team_string(int t, bool abbr = false) { const char **n = abbr ? teamnames_s : teamnames; return team_isvalid(t) ? n[t] : n[TEAM_NUM + 1]; }
114
115enum { ENT_PLAYER = 0, ENT_BOT, ENT_CAMERA, ENT_BOUNCE };
116enum { CS_ALIVE = 0, CS_DEAD, CS_SPAWNING, CS_LAGGED, CS_EDITING, CS_SPECTATE };

Callers 12

parsemessagesFunction · 0.85
flagdistanceFunction · 0.85
flagactionFunction · 0.85
processFunction · 0.85
loopvFunction · 0.85
loggamestatusFunction · 0.85
extinfo_teamscorebufFunction · 0.85
renderteamscoreFunction · 0.85
loopvFunction · 0.85
newteamFunction · 0.85
teaminfoFunction · 0.85
loopvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected