| Package | org.flixel.plugin |
| Class | public class DebugPathDisplay |
| Inheritance | DebugPathDisplay FlxBasic Object |
| Property | Defined By | ||
|---|---|---|---|
| _paths : Array | DebugPathDisplay | ||
| Method | Defined By | ||
|---|---|---|---|
Instantiates a new debug path display manager. | DebugPathDisplay | ||
Add a path to the path debug display manager. | DebugPathDisplay | ||
clear():void
Removes all the paths from the path debug display manager. | DebugPathDisplay | ||
destroy():void [override]
Clean up memory. | DebugPathDisplay | ||
draw():void [override]
Called by FlxG.drawPlugins() after the game state has been drawn. | DebugPathDisplay | ||
[override]
Similar to FlxObject's drawDebug() functionality,
this function calls drawDebug() on each FlxPath for the specified camera. | DebugPathDisplay | ||
![]() | 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 path from the path debug display manager. | DebugPathDisplay | ||
![]() | revive():void
Handy function for bringing game objects "back to life". | FlxBasic | |
![]() | toString():String
Convert object to readable string name. | FlxBasic | |
![]() | update():void
Override this function to update your class's position and appearance. | FlxBasic | |
| _paths | property |
protected var _paths:Array| DebugPathDisplay | () | Constructor |
public function DebugPathDisplay()Instantiates a new debug path display manager.
| add | () | method |
public function add(Path:FlxPath):void
Add a path to the path debug display manager.
Usually called automatically by FlxPath's constructor.
Parameters
Path:FlxPath — The FlxPath you want to add to the manager.
|
| clear | () | method |
public function clear():voidRemoves all the paths from the path debug display manager.
| destroy | () | method |
override public function destroy():voidClean up memory.
| draw | () | method |
override public function draw():void
Called by FlxG.drawPlugins() after the game state has been drawn.
Cycles through cameras and calls drawDebug() on each one.
| drawDebug | () | method |
override public function drawDebug(Camera:FlxCamera = null):void
Similar to FlxObject's drawDebug() functionality,
this function calls drawDebug() on each FlxPath for the specified camera.
Very helpful for debugging!
Parameters
Camera:FlxCamera (default = null) — Which FlxCamera object to draw the debug data to.
|
| remove | () | method |
public function remove(Path:FlxPath):void
Remove a path from the path debug display manager.
Usually called automatically by FlxPath's destroy() function.
Parameters
Path:FlxPath — The FlxPath you want to remove from the manager.
|