Packagenet.flashpunk.debug
Classpublic class Console
InheritanceConsole Inheritance Object

FlashPunk debug console; can use to log information or pause the game and view/move Entities and step the frame.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
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
Property Detail
debugproperty
debug:Boolean

If the Console is currently in debug mode.


Implementation
    public function get debug():Boolean
    public function set debug(value:Boolean):void
pausedproperty 
paused:Boolean

If the Console is currently in paused mode.


Implementation
    public function get paused():Boolean
    public function set paused(value:Boolean):void
toggleKeyproperty 
public var toggleKey:uint = 192

The key used to toggle the Console on/off. Tilde (~) by default.

visibleproperty 
visible:Boolean

If the console should be visible.


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
Constructor Detail
Console()Constructor
public function Console()

Constructor.

Method Detail
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.