MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getTeamColor

Function getTeamColor

plugins/koth/koth.cpp:282–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282const char* getTeamColor(bz_eTeamType testteam) {
283 if (testteam == eRedTeam) {
284 return "RED";
285 }
286 if (testteam == eGreenTeam) {
287 return "GREEN";
288 }
289 if (testteam == eBlueTeam) {
290 return "BLUE";
291 }
292 if (testteam == ePurpleTeam) {
293 return "PURPLE";
294 }
295 if (testteam == eRogueTeam) {
296 return "ROGUE";
297 }
298
299 return " ";
300}
301
302bool onePlayer() {
303 int numPlayers =

Callers 3

killTeamsFunction · 0.70
initiatekothFunction · 0.70
processMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected