#include <controller.h>
Public Member Functions | |
| WaitableController (T defaultValue) | |
| virtual T | getValue () |
| virtual T | waitFor () |
| virtual bool | mousePressed (const Common::Point &mousePos) |
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 | setActive () |
| virtual bool | keyPressed (int key) |
| virtual void | keybinder (KeybindingAction action) |
| virtual void | timerFired () |
| bool | shouldQuit () const |
Protected Member Functions | |
| void | doneWaiting () |
Protected Attributes | |
| T | _value |
Additional Inherited Members | |
Static Public Member Functions inherited from Ultima::Ultima4::Controller | |
| static void | timerCallback (void *data) |
Class template for controllers that can be "waited for". Subclasses should set the value variable and call doneWaiting when the controller has completed.
|
inlinevirtual |
Mouse button was pressed
Reimplemented from Ultima::Ultima4::Controller.
Reimplemented in Ultima::Ultima4::MenuController.