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

Steering Behavior that computes a force that tends to regroup agents
Inheritance: ContextualSteeringBehavior
Show file Open project: Indiefreaks/igf

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

Cohesion ( ) : System.Collections.Generic

Creates a new instance

Compute ( ) : void

Computes the current Steering Behavior

Private Methods

Method Description
GetAgentPositions ( ) : void

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

Cohesion() public method

Creates a new instance
public Cohesion ( ) : System.Collections.Generic
return System.Collections.Generic

Compute() public method

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