class flixel.system.frontEnds.WatchFrontEnd

Available on all platforms

Instance Fields

function new():Void

Just needed to create an instance.

function add(AnyObject:Dynamic, VariableName:String, ?DisplayName:String = null):Void

Add a variable to the watch list in the debugger. * This lets you see the value of the variable all the time. * *

AnyObject

A reference to any object in your game, e.g. Player or Robot or this. *

VariableName

The name of the variable you want to watch, in quotes, as a string: e.g. "speed" or "health". *

DisplayName

Optional, display your own string instead of the class name + variable name: e.g. "enemy count".

function addMouse():Void

Add the mouse coords to the watch window. Useful for quickly * getting coordinates for object placement during prototyping!

function addQuick(Name:String, NewValue:Dynamic):Void

Add or update a quickWatch entry to the watch list in the debugger. * Extremely useful when called in update() functions when there * doesn't exist a variable for a value you want to watch - so you won't have to create one. * *

Name

The name of the quickWatch entry, for example "mousePressed". *

NewValue

The new value for this entry, for example FlxG.mouse.pressed.

function remove(AnyObject:Dynamic, ?VariableName:String = null):Void

Remove a variable from the watch list in the debugger. * Don't pass a Variable Name to remove all watched variables for the specified object. * *

AnyObject

A reference to any object in your game, e.g. Player or Robot or this. *

VariableName

The name of the variable you want to watch, in quotes, as a string: e.g. "speed" or "health".

function removeMouse():Void

Removes the mouse coords from the watch window.

function removeQuick(Name:String):Void

Remove a quickWatch entry from the watch list of the debugger. * *

Name

The name of the quickWatch entry you want to remove.