ScummVM API documentation
menusystem_bbdou.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ILLUSIONS_BBDOU_MENUSYSTEM_BBDOU_H
23 #define ILLUSIONS_BBDOU_MENUSYSTEM_BBDOU_H
24 
25 #include "illusions/menusystem.h"
26 
27 namespace Illusions {
28 
29 enum {
30  kBBDOUMainMenu,
31  kBBDOUPauseMenu,
32  kBBDOULoadGameMenu,
33  kBBDOUSaveGameMenu,
34  kBBDOUGameSavedMenu,
35  kBBDOUSaveFailedMenu,
36  kBBDOULoadFailedMenu,
37  kBBDOULastMenuIndex
38 };
39 
40 class IllusionsEngine_BBDOU;
41 
43 public:
45  ~BBDOUMenuSystem() override;
46  void runMenu(MenuChoiceOffsets menuChoiceOffsets, int16 *menuChoiceOffset,
47  uint32 menuId, uint32 duration, uint timeOutMenuChoiceIndex, uint32 menuCallerThreadId);
48 public://protected:
50  BaseMenu *_menus[kBBDOULastMenuIndex];
51  void clearMenus();
52  void freeMenus();
53  BaseMenu *getMenuById(int menuId) override;
54  BaseMenu *createMenuById(int menuId);
55  BaseMenu *createMainMenu();
56  BaseMenu *createPauseMenu();
57  BaseMenu *createLoadGameMenu();
58  BaseMenu *createSaveGameMenu();
59  BaseMenu *createGameSavedMenu();
60  BaseMenu *createSaveFailedMenu();
61  BaseMenu *createLoadFailedMenu();
62  BaseMenu *createOptionsMenu();
63  int convertRootMenuId(uint32 menuId);
64  bool initMenuCursor() override;
65  int getGameState() override;
66  void setGameState(int gameState) override;
67  void setMenuCursorNum(int cursorNum) override;
68  void playSoundEffect(int sfxId) override;
69 };
70 
71 } // End of namespace Illusions
72 
73 #endif // ILLUSIONS_BBDOU_MENUSYSTEM_BBDOU_H
Definition: menusystem.h:57
Definition: menusystem_bbdou.h:42
Definition: menusystem.h:85
Definition: actor.h:34
Definition: illusions_bbdou.h:60