22 #ifndef ULTIMA4_CONTROLLERS_CONTROLLER_H 23 #define ULTIMA4_CONTROLLERS_CONTROLLER_H 25 #include "ultima/ultima4/metaengine.h" 41 virtual bool isCombatController()
const {
58 int getTimerInterval();
109 void Controller_startWait();
110 void Controller_endWait();
126 Controller_endWait();
130 _value(defaultValue), _exitWhenDone(
false) {}
132 virtual T getValue() {
136 virtual T waitFor() {
137 _exitWhenDone =
true;
138 Controller_startWait();
148 _value = _defaultValue;
157 virtual void finishTurn() = 0;
159 virtual void finishTurnAfterCombatEnds() {
virtual bool mousePressed(const Common::Point &mousePos)
Definition: controller.h:145
Definition: controller.h:153
Definition: controller.h:35
static void timerCallback(void *data)
Definition: detection.h:27
virtual void timerFired()
bool notifyMousePress(const Common::Point &mousePos)
virtual void keybinder(KeybindingAction action)
Definition: controller.h:90
virtual bool keyPressed(int key)
Definition: controller.h:76
Definition: controller.h:118
virtual bool mousePressed(const Common::Point &mousePos)
Definition: controller.h:83
bool notifyKeyPressed(int key)