Property | Type | Description | |
---|---|---|---|
_point |
Method | Description | |
---|---|---|
Add ( float x, float y ) : void |
Add a new node to the end of the path at the specified location.
|
|
AddAt ( float x, float y, int index ) : void |
Add a new node to the path at the specified location and index within the path.
|
|
AddPoint ( |
Sometimes its easier or faster to just pass a point object instead of separate X and Y coordinates. This also gives you the option of not creating a new node but actually adding that specific
|
|
AddPointAt ( |
Sometimes its easier or faster to just pass a point object instead of separate X and Y coordinates. This also gives you the option of not creating a new node but actually adding that specific
|
|
DrawDebug ( |
While this doesn't override
|
|
FlxPath ( IEnumerable |
Instantiate a new path object.
|
|
Head ( ) : |
Get the first node in the list.
|
|
Remove ( |
Remove a node from the path. NOTE: only works with points added by reference or with references from
|
|
RemoveAt ( int index ) : |
Remove a node from the path using the specified position in the list of path nodes.
|
|
Tail ( ) : |
Get the last node in the list.
|
|
destroy ( ) : void |
public Add ( float x, float y ) : void | ||
x | float | X position of the new path point in world coordinates. |
y | float | Y position of the new path point in world coordinates. |
return | void |
public AddAt ( float x, float y, int index ) : void | ||
x | float | X position of the new path point in world coordinates. |
y | float | Y position of the new path point in world coordinates. |
index | int | Where within the list of path nodes to insert this new point. |
return | void |
public AddPoint ( |
||
node | The point in world coordinates you want to add to the path. | |
asReference | bool | Whether to add the point as a reference, or to create a new point with the specified values. |
return | void |
public AddPointAt ( |
||
node | The point in world coordinates you want to add to the path. | |
index | int | Where within the list of path nodes to insert this new point. |
asReference | bool | Whether to add the point as a reference, or to create a new point with the specified values. |
return | void |
public DrawDebug ( |
||
camera | The camera object the path will draw to. | |
return | void |
public FlxPath ( IEnumerable |
||
nodes | IEnumerable |
Optional, can specify all the points for the path up front if you want. |
return | System |
public Remove ( |
||
node | The point object you want to remove from the path. | |
return |
public RemoveAt ( int index ) : |
||
index | int | Where within the list of path nodes you want to remove a node. |
return |