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

#include <wait_controller.h>

Inheritance diagram for Ultima::Ultima4::WaitController:
Ultima::Ultima4::Controller

Public Member Functions

 WaitController (uint cycles)
 
bool keyPressed (int key) override
 
void timerFired () override
 
void wait ()
 
void setCycles (int c)
 
- 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 mousePressed (const Common::Point &mousePos)
 
virtual void keybinder (KeybindingAction action)
 
bool shouldQuit () const
 

Additional Inherited Members

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

Detailed Description

A controller to pause for a given length of time, ignoring all keyboard input.

Member Function Documentation

◆ keyPressed()

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

Key was pressed

Reimplemented from Ultima::Ultima4::Controller.

◆ timerFired()

void Ultima::Ultima4::WaitController::timerFired ( )
overridevirtual

The default timerFired handler for a controller. By default, timers are ignored, but subclasses can override this method and it will be called every <interval> 1/4 seconds.

Reimplemented from Ultima::Ultima4::Controller.


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