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

Function cycleFromString

plugins/mapchange/mapchange.cpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110CycleMode cycleFromString(const std::string& str) {
111 if (compare_nocase(str, "loop") == 0) {
112 return eLoopInf;
113 }
114 else if (compare_nocase(str, "random") == 0) {
115 return eRandomInf;
116 }
117 else if (compare_nocase(str, "onerand") == 0) {
118 return eRandomOnce;
119 }
120
121 return eNoLoop;
122}
123
124const char* cycleToString(CycleMode mode) {
125 if (mode == eLoopInf) {

Callers 2

loadGamesFromFileFunction · 0.85
handleMethod · 0.85

Calls 1

compare_nocaseFunction · 0.50

Tested by

no test coverage detected