Home | Trees | Indices | Help |
|
---|
|
fife.fife.TimeEvent --+ | Timer
Timer
This class wraps the fife.TimeEvent class to make it easily usable from Python It allows for a TimeEvent to be executed once or multiple times.
Remember FIFE::TimeManager does NOT delete the timer so make sure you keep a reference to this timer to ensure python doesnt delete the timer prematurely.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
integer
|
|
||
|
|||
|
|||
|
|||
integer
|
|
||
boolean
|
|
||
integer
|
|
||
boolean
|
|
||
integer
|
|
|
|||
delay = property(_getDelay, _setDelay)
|
|||
callback = property(_getCallback, _setCallback)
|
|||
repeat = property(_getRepeat, _setRepeat)
|
|
|
Call this to start the timer. This registers the timer with the time manager. The time manger then calls the timers updateEvent() function when the delay time has passed. |
Stops the timer This unregisters the timer from the time manager. |
This is called by FIFE::TimeManager when the delay has passed. Should not be called directly. |
Sets how many milliseconds to wait before executing the callback. The timer must not be active to change this value
|
Returns the number of milliseconds to wait before executing the callback.
|
Sets how many times the timer should be repeated. The timer must not be active to change it's repeat value.
|
Returns the number of times the timer will be executed.
|
Returns True if the timer is active and False if it is not.
|
Returns the number of times the timer has been executed
|
Returns True if the timer is active and False if it is not.
|
Returns the number of times the timer has been executed
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Feb 5 07:00:22 2023 | http://epydoc.sourceforge.net |