Packagecom.lookbackon.AI.steeringBehavior
Interfacepublic interface IVehicle

The interface of vechicle type. all kinds of monster's type is vechicle.



Public Properties
 PropertyDefined By
  edgeBehavior : String
Sets / gets what will happen if character hits edge.
IVehicle
  mass : Number
Sets / gets mass of character.
IVehicle
  maxSpeed : Number
Sets / gets maximum speed of character.
IVehicle
  position : Vector2D
Sets / gets position of character as a Vector2D.
IVehicle
  velocity : Vector2D
Sets / gets velocity of character as a Vector2D.
IVehicle
  x : Number
[write-only] Sets x position of character.
IVehicle
  y : Number
[write-only] Sets y position of character.
IVehicle
Public Methods
 MethodDefined By
  
update():void
update vehicle 's properties.
IVehicle
Property Detail
edgeBehaviorproperty
edgeBehavior:String

Sets / gets what will happen if character hits edge.


Implementation
    public function get edgeBehavior():String
    public function set edgeBehavior(value:String):void
massproperty 
mass:Number

Sets / gets mass of character.


Implementation
    public function get mass():Number
    public function set mass(value:Number):void
maxSpeedproperty 
maxSpeed:Number

Sets / gets maximum speed of character.


Implementation
    public function get maxSpeed():Number
    public function set maxSpeed(value:Number):void
positionproperty 
position:Vector2D

Sets / gets position of character as a Vector2D.


Implementation
    public function get position():Vector2D
    public function set position(value:Vector2D):void
velocityproperty 
velocity:Vector2D

Sets / gets velocity of character as a Vector2D.


Implementation
    public function get velocity():Vector2D
    public function set velocity(value:Vector2D):void
xproperty 
x:Number  [write-only]

Sets x position of character. Overrides Sprite.x to set internal Vector2D position as well.


Implementation
    public function set x(value:Number):void
yproperty 
y:Number  [write-only]

Sets y position of character. Overrides Sprite.y to set internal Vector2D position as well.


Implementation
    public function set y(value:Number):void
Method Detail
update()method
public function update():void

update vehicle 's properties.