Skip to content
Jirka Dell'Oro-Friedl edited this page Dec 18, 2021 · 2 revisions

Scalable Time

FUDGE supports multiple and scalable times. Mostly used are the built in game-time and real-time. Realtime is the time of the system running FUDGE and cannot be manipulated. The game-time on the other hand may be slowed down or sped up, set or reset. All time dependent functionality referring to game-time thus reacts accordingly. Creators may define more time-instances as desired. The class Time is a fundamental class to use in FUDGE.

Timer

An instances of the class Timer refers to an instance of the class time and dispatches timer-events in regular intervals according to the passing of that time. It is convenient to use, since it not only respects a time to elapse between the events but also counts the events and stops and deletes itself after a specified number has been send.

EventTimer

The events sent are instances of the class EventTimer and contain information about that event being the first sent from that timer, the last and the number events sent so far, amongst other information. That makes time controlled actions in a game quite easy.

Clone this wiki locally