22 #ifndef ILLUSIONS_DUCKMAN_MENUSYSTEM_DUCKMAN_H 23 #define ILLUSIONS_DUCKMAN_MENUSYSTEM_DUCKMAN_H 25 #include "illusions/menusystem.h" 29 enum SliderActionType {
40 kDuckmanLoadGameFailedMenu,
44 kDuckmanDebugPauseMenu,
45 kDuckmanAddRemoveInventoryMenu,
46 kDuckmanQueryQuitMenu,
47 kDuckmanQueryRestartMenu,
48 kDuckmanSaveCompleteMenu,
52 class IllusionsEngine_Duckman;
53 class MenuActionUpdateSlider;
60 uint32 menuId, uint32 duration, uint timeOutMenuChoiceIndex, uint32 menuCallerThreadId);
63 BaseMenu *_menus[kDuckmanLastMenuIndex];
66 BaseMenu *getMenuById(
int menuId)
override;
67 BaseMenu *createMenuById(
int menuId);
71 BaseMenu *createLoadGameFailedMenu();
79 BaseMenu *createAddRemoveInventoryMenu();
80 int convertRootMenuId(uint32 menuId);
81 bool initMenuCursor()
override;
82 int getGameState()
override;
83 void setGameState(
int gameState)
override;
84 void setMenuCursorNum(
int cursorNum)
override;
85 void playSoundEffect(
int sfxId)
override;
88 SliderActionType type,
BaseMenu *baseMenu);
94 void execute()
override;
103 void setMenuItem(
MenuItem *menuItem) {
104 _menuItem = menuItem;
107 void execute()
override;
108 void setSliderValue(uint8 newValue);
111 SliderActionType _type;
114 int calcNewSliderValue(
int newOffset);
125 void execute()
override;
135 #endif // ILLUSIONS_DUCKMAN_MENUSYSTEM_DUCKMAN_H
Definition: illusions_duckman.h:78