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

#include <alpha_action_controller.h>

Inheritance diagram for Ultima::Ultima4::AlphaActionController:
Ultima::Ultima4::WaitableController< int > Ultima::Ultima4::Controller

Public Member Functions

 AlphaActionController (char letter, const Common::String &p)
 
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 int get (char lastValidLetter, const Common::String &prompt, EventHandler *eh=nullptr)
 
- Static Public Member Functions inherited from Ultima::Ultima4::Controller
static void timerCallback (void *data)
 

Additional Inherited Members

- Protected Member Functions inherited from Ultima::Ultima4::WaitableController< int >
void doneWaiting ()
 
- Protected Attributes inherited from Ultima::Ultima4::WaitableController< int >
int _value
 

Detailed Description

A controller to handle input for commands requiring a letter argument in the range 'a' - lastValidLetter.

Member Function Documentation

◆ keyPressed()

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

Key was pressed

Reimplemented from Ultima::Ultima4::Controller.

◆ keybinder()

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

Handles keybinder actions

Reimplemented from Ultima::Ultima4::Controller.


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