C# Класс Indiefreaks.Xna.Logic.Steering.SteeringBehavior

The abstract class for all Steering Behaviors
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
ComputedSteeringForce Microsoft.Xna.Framework.Vector3

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

CanCompute() публичный Метод

Defines if the current steering behavior can execute or not.
Override this method to add a global condition to this behavior
public CanCompute ( ) : bool
Результат bool

Compute() публичный абстрактный Метод

Computes the current Steering Behavior
public abstract Compute ( ) : void
Результат void

ResetSteeringForce() публичный Метод

public ResetSteeringForce ( ) : void
Результат void

SteeringBehavior() защищенный Метод

Creates a new instance
protected SteeringBehavior ( ) : Microsoft.Xna.Framework
Результат Microsoft.Xna.Framework

SteeringBehavior() защищенный Метод

Creates a new instance
protected SteeringBehavior ( float weight ) : Microsoft.Xna.Framework
weight float The weight of this steering behavior when computed with others
Результат Microsoft.Xna.Framework

SteeringBehavior() защищенный Метод

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
Результат Microsoft.Xna.Framework

Описание свойств

ComputedSteeringForce защищенное свойство

protected Vector3,Microsoft.Xna.Framework ComputedSteeringForce
Результат Microsoft.Xna.Framework.Vector3