ScummVM API documentation
Illusions::BaseMenuSystem Class Referenceabstract
Inheritance diagram for Illusions::BaseMenuSystem:
Illusions::BBDOUMenuSystem Illusions::DuckmanMenuSystem

Public Member Functions

 BaseMenuSystem (IllusionsEngine *vm)
 
void playSoundEffect13 ()
 
void playSoundEffect14 ()
 
void selectMenuChoiceIndex (uint choiceIndex)
 
void leaveMenu ()
 
void enterSubMenu (BaseMenu *menu)
 
void leaveSubMenu ()
 
void enterSubMenuById (int menuId)
 
uint getQueryConfirmationChoiceIndex () const
 
void setQueryConfirmationChoiceIndex (uint queryConfirmationChoiceIndex)
 
bool isActive () const
 
void openMenu (BaseMenu *menu)
 
void closeMenu ()
 
void handleClick (uint menuItemIndex, const Common::Point &mousePos)
 
uint drawMenuText (BaseMenu *menu)
 
void redrawMenuText (BaseMenu *menu)
 
void update (Control *cursorControl)
 
void setTimeOutDuration (uint32 duration, uint timeOutMenuChoiceIndex)
 
void setMenuCallerThreadId (uint32 menuCallerThreadId)
 
void setMenuChoiceOffsets (MenuChoiceOffsets menuChoiceOffsets, int16 *menuChoiceOffset)
 
void setSavegameSlotNum (int slotNum)
 
void setSavegameDescription (Common::String desc)
 
bool calcMenuItemTextPositionAtPoint (Common::Point pt, int &offset)
 
virtual bool initMenuCursor ()=0
 
virtual int getGameState ()=0
 
virtual void setGameState (int gameState)=0
 
virtual void setMenuCursorNum (int cursorNum)=0
 

Protected Member Functions

void setMouseCursorToMenuItem (int menuItemIndex)
 
void calcMenuItemRect (uint menuItemIndex, WRect &rect)
 
bool calcMenuItemMousePos (uint menuItemIndex, Common::Point &pt)
 
bool calcMenuItemIndexAtPoint (Common::Point pt, uint &menuItemIndex)
 
void setMousePos (Common::Point &mousePos)
 
void activateMenu (BaseMenu *menu)
 
void updateTimeOut (bool resetTimeOut)
 
void initActorHoverBackground ()
 
void placeActorHoverBackground ()
 
void updateActorHoverBackground ()
 
void hideActorHoverBackground ()
 
void initActorTextColorRect ()
 
void placeActorTextColorRect ()
 
void hideActorTextColorRect ()
 
virtual BaseMenugetMenuById (int menuId)=0
 
virtual void playSoundEffect (int sfxId)=0
 

Protected Attributes

IllusionsEngine_vm
 
MenuStack _menuStack
 
uint32 _menuCallerThreadId
 
bool _isTimeOutEnabled
 
bool _isTimeOutReached
 
uint32 _timeOutDuration
 
uint _timeOutMenuChoiceIndex
 
uint32 _timeOutStartTime
 
uint32 _timeOutEndTime
 
Common::Point _savedCursorPos
 
bool _cursorInitialVisibleFlag
 
int _savedGameState
 
int _savedCursorActorIndex
 
int _savedCursorSequenceId
 
bool _isActive
 
MenuChoiceOffsets _menuChoiceOffsets
 
int16 * _menuChoiceOffset
 
uint _queryConfirmationChoiceIndex
 
uint _field54
 
uint _menuLinesCount
 
uint _menuItemCount
 
uint _hoveredMenuItemIndex
 
uint _hoveredMenuItemIndex2
 
uint _hoveredMenuItemIndex3
 
BaseMenu_activeMenu
 

The documentation for this class was generated from the following file: