| 4 | #include <string> |
| 5 | |
| 6 | void 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 | } |
no test coverage detected