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

#include <timed_event_mgr.h>

Public Types

typedef Common::List< TimedEvent * > List
 
typedef void(* Callback) (void *)
 

Public Member Functions

 TimedEvent (Callback callback, int interval, void *data=nullptr)
 
Callback getCallback () const
 
void * getData ()
 
void tick ()
 

Protected Attributes

Callback _callback
 
void * _data
 
int _interval
 
int _current
 

Detailed Description

A class for handling timed events.

Member Function Documentation

◆ tick()

void Ultima::Ultima4::TimedEvent::tick ( )

Advances the timed event forward a tick. When (current >= interval), then it executes its callback function.


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