ScummVM API documentation
Ultima::Ultima4::WaitableController< T > Class Template Reference

#include <controller.h>

Inheritance diagram for Ultima::Ultima4::WaitableController< T >:
Ultima::Ultima4::Controller

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

_value
 

Additional Inherited Members

- Static Public Member Functions inherited from Ultima::Ultima4::Controller
static void timerCallback (void *data)
 

Detailed Description

template<class T>
class Ultima::Ultima4::WaitableController< T >

Class template for controllers that can be "waited for". Subclasses should set the value variable and call doneWaiting when the controller has completed.

Member Function Documentation

◆ mousePressed()

template<class T>
virtual bool Ultima::Ultima4::WaitableController< T >::mousePressed ( const Common::Point mousePos)
inlinevirtual

Mouse button was pressed

Reimplemented from Ultima::Ultima4::Controller.

Reimplemented in Ultima::Ultima4::MenuController.


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