| 13 | namespace BWAPI |
| 14 | { |
| 15 | class AutoMenuManager |
| 16 | { |
| 17 | public: |
| 18 | AutoMenuManager(); |
| 19 | |
| 20 | void reloadConfig(); |
| 21 | void chooseNewRandomMap(); |
| 22 | void onMenuFrame(); |
| 23 | |
| 24 | // cppcheck-suppress functionConst |
| 25 | const char* interceptFindFirstFile(const char *lpFileName); |
| 26 | |
| 27 | std::string autoMenuSaveReplay; |
| 28 | private: |
| 29 | static void pressDialogKey(BW::dialog *pDlg); |
| 30 | |
| 31 | std::string autoMenuMode; |
| 32 | std::string autoMenuCharacterName; |
| 33 | std::string autoMenuLanMode; |
| 34 | std::string autoMenuRestartGame; |
| 35 | std::string autoMenuGameType; |
| 36 | std::string autoMenuGameTypeExtra; |
| 37 | std::string autoMenuGameName; |
| 38 | unsigned lastAutoMapEntry = 0; |
| 39 | std::string lastMapGen; |
| 40 | std::vector<std::string> autoMapPool; |
| 41 | std::string autoMenuMapPath; |
| 42 | std::string autoMapIteration = "RANDOM"; |
| 43 | |
| 44 | std::string autoMenuRace; |
| 45 | std::array<std::string, BW::PLAYABLE_PLAYER_COUNT> autoMenuEnemyRace; |
| 46 | unsigned autoMenuEnemyCount = 0; |
| 47 | unsigned autoMenuMinPlayerCount = 0; |
| 48 | unsigned autoMenuMaxPlayerCount = 0; |
| 49 | unsigned autoMenuWaitPlayerTime = 0; |
| 50 | |
| 51 | unsigned autoMapTryCount = 0; |
| 52 | |
| 53 | bool actStartedGame = false; |
| 54 | bool actRaceSel = false; |
| 55 | |
| 56 | #ifdef _DEBUG |
| 57 | std::string autoMenuPause; |
| 58 | #endif |
| 59 | }; |
| 60 | |
| 61 | |
| 62 |
nothing calls this directly
no outgoing calls
no test coverage detected