aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman/menusystem_duckman.h
diff options
context:
space:
mode:
authorjohndoe1232015-11-24 00:10:10 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitfa17f684da1da7fded805746b75c454502ffe683 (patch)
tree1e668515abccf6455299a5b9fbadc2c5b6affd98 /engines/illusions/duckman/menusystem_duckman.h
parent09bbb482a8ccdfb8e36128d40364900b99aa2a13 (diff)
downloadscummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.tar.gz
scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.tar.bz2
scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.zip
ILLUSIONS: DUCKMAN: Start implementing the menu system
Still work-in-progress, missing functionality and buggy Maybe needs some work for BBDOU where this isn't implemented yet.
Diffstat (limited to 'engines/illusions/duckman/menusystem_duckman.h')
-rw-r--r--engines/illusions/duckman/menusystem_duckman.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/engines/illusions/duckman/menusystem_duckman.h b/engines/illusions/duckman/menusystem_duckman.h
new file mode 100644
index 0000000000..bb43619acd
--- /dev/null
+++ b/engines/illusions/duckman/menusystem_duckman.h
@@ -0,0 +1,70 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef ILLUSIONS_DUCKMAN_MENUSYSTEM_DUCKMAN_H
+#define ILLUSIONS_DUCKMAN_MENUSYSTEM_DUCKMAN_H
+
+#include "illusions/menusystem.h"
+
+namespace Illusions {
+
+enum {
+ kDuckmanMainMenu,
+ kDuckmanLoadGameMenu,
+ kDuckmanOptionsMenu,
+ kDuckmanPauseMenu,
+ kDuckmanQueryQuitMenu,
+ kDuckmanQueryRestartMenu,
+ kDuckmanLastMenuIndex
+};
+
+class IllusionsEngine_Duckman;
+
+class DuckmanMenuSystem : public BaseMenuSystem {
+public:
+ DuckmanMenuSystem(IllusionsEngine_Duckman *vm);
+ ~DuckmanMenuSystem();
+ void runMenu(MenuChoiceOffsets menuChoiceOffsets, int16 *menuChoiceOffset,
+ uint32 menuId, uint32 duration, uint timeOutMenuChoiceIndex, uint32 menuCallerThreadId);
+public://protected:
+ IllusionsEngine_Duckman *_vm;
+ BaseMenu *_menus[kDuckmanLastMenuIndex];
+ void clearMenus();
+ void freeMenus();
+ BaseMenu *getMenuById(int menuId);
+ BaseMenu *createMenuById(int menuId);
+ BaseMenu *createMainMenu();
+ BaseMenu *createLoadGameMenu();
+ BaseMenu *createOptionsMenu();
+ BaseMenu *createPauseMenu();
+ BaseMenu *createQueryRestartMenu();
+ BaseMenu *createQueryQuitMenu();
+ int convertRootMenuId(uint32 menuId);
+ virtual bool initMenuCursor();
+ virtual int getGameState();
+ virtual void setGameState(int gameState);
+ virtual void setMenuCursorNum(int cursorNum);
+};
+
+} // End of namespace Illusions
+
+#endif // ILLUSIONS_DUCKMAN_MENUSYSTEM_DUCKMAN_H