C# Class Gravitation.AIEngine.AIBehaviours.AvoidObsticles

Inheritance: Behaviour
Show file Open project: thedamoes/Gravitation Class Usage Examples

Public Methods

Method Description
AvoidObsticles ( ) : System
getDirection ( SpriteObjects mShip, Body otherShipsBody, float directionWeight ) : Vector2
getRotation ( SpriteObjects mShip, Body otherShipsBody, float rotationWeight ) : float
getWeight ( ) : int
performAction ( SpriteObjects mShip, Body otherShipsBody ) : void

Method Details

AvoidObsticles() public method

public AvoidObsticles ( ) : System
return System

getDirection() public method

public getDirection ( SpriteObjects mShip, Body otherShipsBody, float directionWeight ) : Vector2
mShip SpriteObjects
otherShipsBody FarseerPhysics.Dynamics.Body
directionWeight float
return Vector2

getRotation() public method

public getRotation ( SpriteObjects mShip, Body otherShipsBody, float rotationWeight ) : float
mShip SpriteObjects
otherShipsBody FarseerPhysics.Dynamics.Body
rotationWeight float
return float

getWeight() public method

public getWeight ( ) : int
return int

performAction() public method

public performAction ( SpriteObjects mShip, Body otherShipsBody ) : void
mShip SpriteObjects
otherShipsBody FarseerPhysics.Dynamics.Body
return void