#include <read_choice_controller.h>
Public Member Functions | |
| ReadChoiceController (const Common::String &choices) | |
| bool | keyPressed (int key) override |
| void | keybinder (KeybindingAction action) override |
Public Member Functions inherited from Ultima::Ultima4::WaitableController< int > | |
| WaitableController (int defaultValue) | |
| virtual int | getValue () |
| virtual int | 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 void | timerFired () |
| bool | shouldQuit () const |
Static Public Member Functions | |
| static char | get (const Common::String &choices, EventHandler *eh=nullptr) |
Static Public Member Functions inherited from Ultima::Ultima4::Controller | |
| static void | timerCallback (void *data) |
Protected Attributes | |
| Common::String | _choices |
Protected Attributes inherited from Ultima::Ultima4::WaitableController< int > | |
| int | _value |
Additional Inherited Members | |
Protected Member Functions inherited from Ultima::Ultima4::WaitableController< int > | |
| void | doneWaiting () |
A controller to read a single key from a provided list.
|
overridevirtual |
Key was pressed
Reimplemented from Ultima::Ultima4::Controller.
Reimplemented in Ultima::Ultima4::ReadPlayerController.
|
overridevirtual |
Handles keybinder actions
Reimplemented from Ultima::Ultima4::Controller.