C# Class Indiefreaks.Xna.Logic.Steering.SteeringBehavior

The abstract class for all Steering Behaviors
Show file Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Property Type Description
ComputedSteeringForce Microsoft.Xna.Framework.Vector3

Public Methods

Method Description
CanCompute ( ) : bool

Defines if the current steering behavior can execute or not.

Override this method to add a global condition to this behavior

Compute ( ) : void

Computes the current Steering Behavior

ResetSteeringForce ( ) : void

Protected Methods

Method Description
SteeringBehavior ( ) : Microsoft.Xna.Framework

Creates a new instance

SteeringBehavior ( float weight ) : Microsoft.Xna.Framework

Creates a new instance

SteeringBehavior ( float weight, float probability ) : Microsoft.Xna.Framework

Creates a new instance

Method Details

CanCompute() public method

Defines if the current steering behavior can execute or not.
Override this method to add a global condition to this behavior
public CanCompute ( ) : bool
return bool

Compute() public abstract method

Computes the current Steering Behavior
public abstract Compute ( ) : void
return void

ResetSteeringForce() public method

public ResetSteeringForce ( ) : void
return void

SteeringBehavior() protected method

Creates a new instance
protected SteeringBehavior ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

SteeringBehavior() protected method

Creates a new instance
protected SteeringBehavior ( float weight ) : Microsoft.Xna.Framework
weight float The weight of this steering behavior when computed with others
return Microsoft.Xna.Framework

SteeringBehavior() protected method

Creates a new instance
protected SteeringBehavior ( float weight, float probability ) : Microsoft.Xna.Framework
weight float The weight of this steering behavior when computed with others
probability float A float value between 0f and 1f defining the chances this steering behavior may compute when used with Dithering Computation algorithm
return Microsoft.Xna.Framework

Property Details

ComputedSteeringForce protected property

protected Vector3,Microsoft.Xna.Framework ComputedSteeringForce
return Microsoft.Xna.Framework.Vector3