MCPcopy Create free account
hub / github.com/bwapi/bwapi / writePlayerTypeInfo

Function writePlayerTypeInfo

bwapi/DocumentationGen/playertypes.cpp:6–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <string>
5
6void writePlayerTypeInfo()
7{
8 std::ofstream of("playertypes.dox");
9 for (auto t : PlayerTypes::allPlayerTypes())
10 {
11 if (t == PlayerTypes::Unknown || t == PlayerTypes::None) continue;
12 of << docEnum(t);
13 of << docBegin(t);
14
15 of << docIntro(t) << "\n";
16
17 std::set<std::string> locations;
18 if (t.isGameType()) locations.insert("Game");
19 if (t.isLobbyType()) locations.insert("Lobby");
20
21 if (!locations.empty())
22 {
23 of << "<table>";
24 of << row("Game Locations", makelist(locations));
25 of << "</table>\n";
26 }
27 of << docEnd();
28 }
29}

Callers 1

mainFunction · 0.85

Calls 8

docEnumFunction · 0.85
docBeginFunction · 0.85
docIntroFunction · 0.85
rowFunction · 0.85
makelistFunction · 0.85
docEndFunction · 0.85
isGameTypeMethod · 0.80
isLobbyTypeMethod · 0.80

Tested by

no test coverage detected