Package | org.flixel.plugin |
Class | public class TimerManager |
Inheritance | TimerManager FlxBasic Object |
Property | Defined By | ||
---|---|---|---|
_timers : Array | TimerManager |
Method | Defined By | ||
---|---|---|---|
Instantiates a new timer manager. | TimerManager | ||
Add a new timer to the timer manager. | TimerManager | ||
clear():void
Removes all the timers from the timer manager. | TimerManager | ||
destroy():void [override]
Clean up memory. | TimerManager | ||
draw():void
Override this function to control how the object is drawn. | FlxBasic | ||
Override this function to draw custom "debug mode" graphics to the
specified camera while the debugger's visual mode is toggled on. | FlxBasic | ||
kill():void
Handy function for "killing" game objects. | FlxBasic | ||
postUpdate():void
Post-update is called right after update() on each object in the game loop. | FlxBasic | ||
preUpdate():void
Pre-update is called right before update() on each object in the game loop. | FlxBasic | ||
Remove a timer from the timer manager. | TimerManager | ||
revive():void
Handy function for bringing game objects "back to life". | FlxBasic | ||
toString():String
Convert object to readable string name. | FlxBasic | ||
update():void [override]
Called by FlxG.updatePlugins() before the game state has been updated. | TimerManager |
_timers | property |
protected var _timers:Array
TimerManager | () | Constructor |
public function TimerManager()
Instantiates a new timer manager.
add | () | method |
public function add(Timer:FlxTimer):void
Add a new timer to the timer manager.
Usually called automatically by FlxTimer
's constructor.
Parameters
Timer:FlxTimer — The FlxTimer you want to add to the manager.
|
clear | () | method |
public function clear():void
Removes all the timers from the timer manager.
destroy | () | method |
override public function destroy():void
Clean up memory.
remove | () | method |
public function remove(Timer:FlxTimer):void
Remove a timer from the timer manager.
Usually called automatically by FlxTimer
's stop()
function.
Parameters
Timer:FlxTimer — The FlxTimer you want to remove from the manager.
|
update | () | method |
override public function update():void
Called by FlxG.updatePlugins()
before the game state has been updated.
Cycles through timers and calls update()
on each one.