GODPAPER | All Packages | All Classes | Index | Frames No Frames |
SteeredVehicle

Package | com.lookbackon.AI.steeringBehavior
Class | public class SteeredVehicle
Inheritance | SteeredVehicle Vehicle flash.display.Sprite
Implements | ISteeredVehicle

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | arriveThreshold : Number | SteeredVehicle
|  | avoidBuffer : Number | SteeredVehicle
|  | avoidDistance : Number | SteeredVehicle
|  | edgeBehavior : String Sets / gets what will happen if character hits edge. | Vehicle
|  | inSightDist : Number | SteeredVehicle
|  | mass : Number Sets / gets mass of character. | Vehicle
|  | maxForce : Number | SteeredVehicle
|  | maxSpeed : Number Sets / gets maximum speed of character. | Vehicle
|  | pathIndex : int | SteeredVehicle
|  | pathThreshold : Number | SteeredVehicle
|  | position : Vector2D Sets / gets position of character as a Vector2D. | Vehicle
|  | tooCloseDist : Number | SteeredVehicle
|  | velocity : Vector2D Sets / gets velocity of character as a Vector2D. | Vehicle
|  | wanderDistance : Number | SteeredVehicle
|  | wanderRadius : Number | SteeredVehicle
|  | wanderRange : Number | SteeredVehicle
|  | x : Number [override] [write-only] Sets x position of character. | Vehicle
|  | y : Number [override] [write-only] Sets y position of character. | Vehicle

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined By
--- | --- | ---
|  | _edgeBehavior : String = wrap | Vehicle
|  | _mass : Number = 1.0 | Vehicle
|  | _maxSpeed : Number = 10 | Vehicle
|  | _position : Vector2D | Vehicle
|  | _velocity : Vector2D | Vehicle

Public Methods

| Method | Defined By
--- | --- | ---
|  | SteeredVehicle() | SteeredVehicle
|  | arrive(target:Vector2D):void | SteeredVehicle
|  | avoid(circles:Array):void | SteeredVehicle
|  | evade(target:Vehicle):void | SteeredVehicle
|  | flee(target:Vector2D):void | SteeredVehicle
|  | flock(vehicles:Array):void | SteeredVehicle
|  | followPath(path:Array, loop:Boolean = false):void | SteeredVehicle
|  | inSight(vehicle:Vehicle):Boolean | SteeredVehicle
|  | pursue(target:Vehicle):void | SteeredVehicle
|  | seek(target:Vector2D):void | SteeredVehicle
|  | tooClose(vehicle:Vehicle):Boolean | SteeredVehicle
|  | update():void [override] | SteeredVehicle
|  | wander():void | SteeredVehicle

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | draw():void Default graphics for vehicle. | Vehicle

Public Constants
Hide Inherited Public Constants
Show Inherited Public Constants

| Constant | Defined By
--- | --- | ---
|  | BOUNCE : String = bounce [static] | Vehicle
|  | WRAP : String = wrap [static] | Vehicle

Property Detail

arriveThreshold | property

`arriveThreshold:Number`

Implementation
`public function get arriveThreshold():Number`
`public function set arriveThreshold(value:Number):void`

avoidBuffer | property |

`avoidBuffer:Number`

Implementation
`public function get avoidBuffer():Number`
`public function set avoidBuffer(value:Number):void`

avoidDistance | property |

`avoidDistance:Number`

Implementation
`public function get avoidDistance():Number`
`public function set avoidDistance(value:Number):void`

inSightDist | property |

`inSightDist:Number`

Implementation
`public function get inSightDist():Number`
`public function set inSightDist(value:Number):void`

maxForce | property |

`maxForce:Number`

Implementation
`public function get maxForce():Number`
`public function set maxForce(value:Number):void`

pathIndex | property |

`pathIndex:int`

Implementation
`public function get pathIndex():int`
`public function set pathIndex(value:int):void`

pathThreshold | property |

`pathThreshold:Number`

Implementation
`public function get pathThreshold():Number`
`public function set pathThreshold(value:Number):void`

tooCloseDist | property |

`tooCloseDist:Number`

Implementation
`public function get tooCloseDist():Number`
`public function set tooCloseDist(value:Number):void`

wanderDistance | property |

`wanderDistance:Number`

Implementation
`public function get wanderDistance():Number`
`public function set wanderDistance(value:Number):void`

wanderRadius | property |

`wanderRadius:Number`

Implementation
`public function get wanderRadius():Number`
`public function set wanderRadius(value:Number):void`

wanderRange | property |

`wanderRange:Number`

Implementation
`public function get wanderRange():Number`
`public function set wanderRange(value:Number):void`
Constructor Detail

SteeredVehicle | () | Constructor

`public function SteeredVehicle()`

Method Detail

arrive | () | method

`public function arrive(target:Vector2D):void`

Parameters

| `target:Vector2D`

avoid | () | method |

`public function avoid(circles:Array):void`

Parameters

| `circles:Array`

evade | () | method |

`public function evade(target:Vehicle):void`

Parameters

| `target:Vehicle`

flee | () | method |

`public function flee(target:Vector2D):void`

Parameters

| `target:Vector2D`

flock | () | method |

`public function flock(vehicles:Array):void`

Parameters

| `vehicles:Array`

followPath | () | method |

`public function followPath(path:Array, loop:Boolean = false):void`

Parameters

| `path:Array`
| `loop:Boolean` (default = `false`)``

inSight | () | method |

`public function inSight(vehicle:Vehicle):Boolean`

Parameters

| `vehicle:Vehicle`

Returns

| `Boolean`

pursue | () | method |

`public function pursue(target:Vehicle):void`

Parameters

| `target:Vehicle`

seek | () | method |

`public function seek(target:Vector2D):void`

Parameters

| `target:Vector2D`

tooClose | () | method |

`public function tooClose(vehicle:Vehicle):Boolean`

Parameters

| `vehicle:Vehicle`

Returns

| `Boolean`

update | () | method |

`override public function update():void`

wander | () | method |

`public function wander():void`

Thu Jan 16 2014, 01:11 PM +08:00