ScummVM API documentation
Ultima::Ultima4::MenuController Class Reference

#include <menu_controller.h>

Inheritance diagram for Ultima::Ultima4::MenuController:
Ultima::Ultima4::WaitableController< void *> Ultima::Ultima4::Controller Ultima::Ultima4::ReagentsMenuController

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 ()
 

Detailed Description

This class controls a menu. The value field of WaitableController isn't used.

Member Function Documentation

◆ setActive()

void Ultima::Ultima4::MenuController::setActive ( )
overridevirtual

Called when a controller is made active

Reimplemented from Ultima::Ultima4::Controller.

◆ keybinder()

void Ultima::Ultima4::MenuController::keybinder ( KeybindingAction  action)
overridevirtual

Handles keybinder actions

Reimplemented from Ultima::Ultima4::Controller.

Reimplemented in Ultima::Ultima4::ReagentsMenuController.

◆ keyPressed()

bool Ultima::Ultima4::MenuController::keyPressed ( int  key)
overridevirtual

Key was pressed

Reimplemented from Ultima::Ultima4::Controller.

Reimplemented in Ultima::Ultima4::ReagentsMenuController.

◆ mousePressed()

bool Ultima::Ultima4::MenuController::mousePressed ( const Common::Point mousePos)
overridevirtual

Mouse button was pressed

Reimplemented from Ultima::Ultima4::WaitableController< void *>.


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