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

Behavior that computes AutonomousAgent steering behaviors force
Inheritance: Behavior
Mostra file Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
Add ( SteeringBehavior steeringBehavior ) : void

Add a new Steering Behavior

Add ( SteeringBehavior steeringBehavior, bool unicity ) : void

Add a new Steering Behavior

ComputeSteeringForcesBehavior ( ) : System

Creates a new instance

Contains ( SteeringBehavior steeringBehavior ) : bool

Returns if a given Steering Behavior instance is present

Contains ( Type steeringBehaviorType ) : bool

Returns if a given type of Steering Behavior is present

Remove ( SteeringBehavior steeringBehavior ) : void

Remove the provided Steering Behavior instance

RemoveAll ( ) : void

Remove all Steering Behaviors

SortBySteeringBehaviorPriority ( SteeringBehavior a, SteeringBehavior b ) : int

Sort all Steering Behaviors by their Priority property

Private Methods

Method Description
ComputeSteeringBehaviors ( Command command ) : object

Method Details

Add() public method

Add a new Steering Behavior
public Add ( SteeringBehavior steeringBehavior ) : void
steeringBehavior SteeringBehavior
return void

Add() public method

Add a new Steering Behavior
public Add ( SteeringBehavior steeringBehavior, bool unicity ) : void
steeringBehavior SteeringBehavior
unicity bool Set to true if we want to have one steering behavior type only
return void

ComputeSteeringForcesBehavior() public method

Creates a new instance
public ComputeSteeringForcesBehavior ( ) : System
return System

Contains() public method

Returns if a given Steering Behavior instance is present
public Contains ( SteeringBehavior steeringBehavior ) : bool
steeringBehavior SteeringBehavior
return bool

Contains() public method

Returns if a given type of Steering Behavior is present
public Contains ( Type steeringBehaviorType ) : bool
steeringBehaviorType System.Type
return bool

Remove() public method

Remove the provided Steering Behavior instance
public Remove ( SteeringBehavior steeringBehavior ) : void
steeringBehavior SteeringBehavior
return void

RemoveAll() public method

Remove all Steering Behaviors
public RemoveAll ( ) : void
return void

SortBySteeringBehaviorPriority() public static method

Sort all Steering Behaviors by their Priority property
public static SortBySteeringBehaviorPriority ( SteeringBehavior a, SteeringBehavior b ) : int
a SteeringBehavior
b SteeringBehavior
return int