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

Function bzu_GetTeamName

plugins/plugin_utils/plugin_utils.cpp:37–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37const char* bzu_GetTeamName(bz_eTeamType team) {
38 switch (team) {
39
40 case eRedTeam:
41 return "Red";
42
43 case eGreenTeam:
44 return "Green";
45
46 case eBlueTeam:
47 return "Blue";
48
49 case ePurpleTeam:
50 return "Purple";
51
52 case eRogueTeam:
53 return "Rogue";
54
55 case eObservers:
56 return "Observer";
57
58 case eRabbitTeam:
59 return "Rabbit";
60
61 case eHunterTeam:
62 return "Hunter";
63
64 default:
65 break;
66 }
67
68 return "Unknown";
69}
70
71std::string printTime(bz_Time* ts, const char* _timezone) {
72 std::string time;

Callers 6

keyCallbackMethod · 0.85
displayTeamMethod · 0.85
processMethod · 0.85
logChatMessageMethod · 0.85
getKeyMethod · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected