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

Function writeRaceInfo

bwapi/DocumentationGen/races.cpp:3–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "helpers.h"
2
3void writeRaceInfo()
4{
5 std::ofstream of("races.dox");
6 for (auto t : Races::allRaces())
7 {
8 if (t == Races::Unknown || t == Races::None) continue;
9 of << docEnum(t);
10 of << docBegin(t);
11
12 of << docIntro(t) << "\n";
13
14 of << "<table>";
15
16 of << row("Worker", iconref(t.getWorker()));
17 of << row("Resource Depot", iconref(t.getResourceDepot()));
18 of << row("Refinery", iconref(t.getRefinery()));
19 of << row("Transport", iconref(t.getTransport()));
20 of << row("Supply Provider", iconref(t.getSupplyProvider()));
21
22 of << "</table>\n";
23
24 // References
25 std::string const & name = t.getName();
26 of << "@tl" << name << " @scc" << name << " @wik" << name;
27 of << docEnd();
28 }
29}

Callers 1

mainFunction · 0.85

Calls 12

docEnumFunction · 0.85
docBeginFunction · 0.85
docIntroFunction · 0.85
rowFunction · 0.85
iconrefFunction · 0.85
docEndFunction · 0.85
getWorkerMethod · 0.80
getResourceDepotMethod · 0.80
getRefineryMethod · 0.80
getSupplyProviderMethod · 0.80
getTransportMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected