#include <menu_controller.h>
Public Member Functions | |
MenuController (Menu *menu, TextView *view) | |
void | setActive () override |
void | keybinder (KeybindingAction action) override |
bool | keyPressed (int key) override |
bool | mousePressed (const Common::Point &mousePos) override |
Public Member Functions inherited from Ultima::Ultima4::WaitableController< void *> | |
WaitableController (void * defaultValue) | |
virtual void * | getValue () |
virtual void * | waitFor () |
Public Member Functions inherited from Ultima::Ultima4::Controller | |
Controller (int timerInterval=1) | |
virtual bool | isCombatController () const |
bool | notifyKeyPressed (int key) |
bool | notifyMousePress (const Common::Point &mousePos) |
int | getTimerInterval () |
virtual void | timerFired () |
bool | shouldQuit () const |
Protected Attributes | |
Menu * | _menu |
TextView * | _view |
Protected Attributes inherited from Ultima::Ultima4::WaitableController< void *> | |
void * | _value |
Additional Inherited Members | |
Static Public Member Functions inherited from Ultima::Ultima4::Controller | |
static void | timerCallback (void *data) |
Protected Member Functions inherited from Ultima::Ultima4::WaitableController< void *> | |
void | doneWaiting () |
This class controls a menu. The value field of WaitableController isn't used.
|
overridevirtual |
Called when a controller is made active
Reimplemented from Ultima::Ultima4::Controller.
|
overridevirtual |
Handles keybinder actions
Reimplemented from Ultima::Ultima4::Controller.
Reimplemented in Ultima::Ultima4::ReagentsMenuController.
|
overridevirtual |
Key was pressed
Reimplemented from Ultima::Ultima4::Controller.
Reimplemented in Ultima::Ultima4::ReagentsMenuController.
|
overridevirtual |
Mouse button was pressed
Reimplemented from Ultima::Ultima4::WaitableController< void *>.