MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / AbstractModeManager

Class AbstractModeManager

source/modes/AbstractModeManager.h:21–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#define ABSTRACTMODEMANAGER_H
20
21class AbstractModeManager
22{
23public:
24 AbstractModeManager()
25 {};
26 //Enum for describing mode type
27 enum ModeType
28 {
29 NONE = 0, // No change requested
30 MENU_MAIN = 1,
31 MENU_SKIRMISH,
32 MENU_MULTIPLAYER_CLIENT,
33 MENU_MULTIPLAYER_SERVER,
34 MENU_MASTERSERVER_JOIN,
35 MENU_MASTERSERVER_HOST,
36 MENU_EDITOR_NEW,
37 MENU_EDITOR_LOAD,
38 MENU_CONFIGURE_SEATS,
39 MENU_REPLAY,
40 MENU_LOAD_SAVEDGAME,
41 GAME,
42 EDITOR,
43 NUM_ELEMS //Number of types
44 };
45 virtual ~AbstractModeManager()
46 {}
47 virtual ModeType getCurrentModeType() const = 0;
48private:
49 AbstractModeManager(const AbstractModeManager&) = delete;
50 AbstractModeManager& operator=(const AbstractModeManager&) = delete;
51
52};
53
54#endif // ABSTRACTMODEMANAGER_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected