Package | net.flashpunk.debug |
Class | public class Console |
Inheritance | Console Object |
Property | Defined By | ||
---|---|---|---|
debug : Boolean
If the Console is currently in debug mode. | Console | ||
paused : Boolean
If the Console is currently in paused mode. | Console | ||
toggleKey : uint = 192
The key used to toggle the Console on/off. | Console | ||
visible : Boolean
If the console should be visible. | Console |
Method | Defined By | ||
---|---|---|---|
Console()
Constructor. | Console | ||
enable():void
Enables the console. | Console | ||
log(... data):void
Logs data to the console. | Console | ||
update():void
Console update, called by game loop. | Console | ||
watch(... properties):void
Adds properties to watch in the console's debug panel. | Console |
debug | property |
debug:Boolean
If the Console is currently in debug mode.
public function get debug():Boolean
public function set debug(value:Boolean):void
paused | property |
paused:Boolean
If the Console is currently in paused mode.
public function get paused():Boolean
public function set paused(value:Boolean):void
toggleKey | property |
public var toggleKey:uint = 192
The key used to toggle the Console on/off. Tilde (~) by default.
visible | property |
visible:Boolean
If the console should be visible.
public function get visible():Boolean
public function set visible(value:Boolean):void
Console | () | Constructor |
public function Console()
Constructor.
enable | () | method |
public function enable():void
Enables the console.
log | () | method |
public function log(... data):void
Logs data to the console.
Parameters
... data — The data parameters to log, can be variables, objects, etc. Parameters will be separated by a space (" ").
|
update | () | method |
public function update():void
Console update, called by game loop.
watch | () | method |
public function watch(... properties):void
Adds properties to watch in the console's debug panel.
Parameters
... properties — The properties (strings) to watch.
|