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

Steering Behavior that computes a force that tends to regroup agents
Inheritance: ContextualSteeringBehavior
Afficher le fichier Open project: Indiefreaks/igf

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

Cohesion ( ) : System.Collections.Generic

Creates a new instance

Compute ( ) : void

Computes the current Steering Behavior

Private Methods

Méthode Description
GetAgentPositions ( ) : void

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

Cohesion() public méthode

Creates a new instance
public Cohesion ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Compute() public méthode

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