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

The abstract class for all Steering Behaviors
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Свойство Type Description
ComputedSteeringForce Microsoft.Xna.Framework.Vector3

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

Compute() public abstract méthode

Computes the current Steering Behavior
public abstract Compute ( ) : void
Résultat void

ResetSteeringForce() public méthode

public ResetSteeringForce ( ) : void
Résultat void

SteeringBehavior() protected méthode

Creates a new instance
protected SteeringBehavior ( ) : Microsoft.Xna.Framework
Résultat Microsoft.Xna.Framework

SteeringBehavior() protected méthode

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

SteeringBehavior() protected méthode

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
Résultat Microsoft.Xna.Framework

Property Details

ComputedSteeringForce protected_oe property

protected Vector3,Microsoft.Xna.Framework ComputedSteeringForce
Résultat Microsoft.Xna.Framework.Vector3