C# Класс Protogame.DefaultPlatforming

The default platforming.
Наследование: IPlatforming
Показать файл Открыть проект

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

Метод Описание
ApplyActionUntil ( IBoundingBox entity, Action action, bool>.Func check, int maximum ) : void

The apply action until.

ApplyGravity ( IHasVelocity entity, float xGravity, float yGravity ) : void

The apply gravity.

ApplyMovement ( IBoundingBox entity, int xAmount, int yAmount, IEnumerable entities, bool>.Func ground ) : bool

The apply movement.

ApplyOverheadCheck ( IBoundingBox entity, IEnumerable entities, bool>.Func ground, float yGravity, bool bounce ) : bool
ClampSpeed ( IHasVelocity entity, float maximumXSpeed, float maximumYSpeed ) : void

The clamp speed.

DefaultPlatforming ( ITransformUtilities transformUtilities, IBoundingBoxUtilities boundingBoxUtilities ) : Microsoft.Xna.Framework

Initializes a new instance of the DefaultPlatforming class.

IsAtCeiling ( IBoundingBox entity, IEnumerable entities, bool>.Func ground ) : bool

The is on ground.

IsOnGround ( IBoundingBox entity, IEnumerable entities, bool>.Func ground ) : bool

The is on ground.

PerformHorizontalAlignment ( IBoundingBox entity, int cellWidth, int cellAlignment, int maxAdjust, System.Action simulateLeft, System.Action simulateRight ) : void

The perform horizontal alignment.

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

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

The apply action until.
public ApplyActionUntil ( IBoundingBox entity, Action action, bool>.Func check, int maximum ) : void
entity IBoundingBox /// The entity. ///
action Action /// The action. ///
check bool>.Func /// The check. ///
maximum int /// The maximum. ///
Результат void

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

The apply gravity.
public ApplyGravity ( IHasVelocity entity, float xGravity, float yGravity ) : void
entity IHasVelocity /// The entity. ///
xGravity float /// The x gravity. ///
yGravity float /// The y gravity. ///
Результат void

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

The apply movement.
public ApplyMovement ( IBoundingBox entity, int xAmount, int yAmount, IEnumerable entities, bool>.Func ground ) : bool
entity IBoundingBox /// The entity. ///
xAmount int /// The x amount. ///
yAmount int /// The y amount. ///
entities IEnumerable /// The entities. ///
ground bool>.Func /// The ground. ///
Результат bool

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

public ApplyOverheadCheck ( IBoundingBox entity, IEnumerable entities, bool>.Func ground, float yGravity, bool bounce ) : bool
entity IBoundingBox
entities IEnumerable
ground bool>.Func
yGravity float
bounce bool
Результат bool

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

The clamp speed.
public ClampSpeed ( IHasVelocity entity, float maximumXSpeed, float maximumYSpeed ) : void
entity IHasVelocity /// The entity. ///
maximumXSpeed float /// The maximum x speed. ///
maximumYSpeed float /// The maximum y speed. ///
Результат void

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

Initializes a new instance of the DefaultPlatforming class.
public DefaultPlatforming ( ITransformUtilities transformUtilities, IBoundingBoxUtilities boundingBoxUtilities ) : Microsoft.Xna.Framework
transformUtilities ITransformUtilities /// The transform utilities. ///
boundingBoxUtilities IBoundingBoxUtilities /// The bounding box utilities. ///
Результат Microsoft.Xna.Framework

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

The is on ground.
public IsAtCeiling ( IBoundingBox entity, IEnumerable entities, bool>.Func ground ) : bool
entity IBoundingBox /// The entity. ///
entities IEnumerable /// The entities. ///
ground bool>.Func /// The ground. ///
Результат bool

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

The is on ground.
public IsOnGround ( IBoundingBox entity, IEnumerable entities, bool>.Func ground ) : bool
entity IBoundingBox /// The entity. ///
entities IEnumerable /// The entities. ///
ground bool>.Func /// The ground. ///
Результат bool

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

The perform horizontal alignment.
public PerformHorizontalAlignment ( IBoundingBox entity, int cellWidth, int cellAlignment, int maxAdjust, System.Action simulateLeft, System.Action simulateRight ) : void
entity IBoundingBox /// The entity. ///
cellWidth int /// The cell width. ///
cellAlignment int /// The cell alignment. ///
maxAdjust int /// The max adjust. ///
simulateLeft System.Action /// The simulate left. ///
simulateRight System.Action /// The simulate right. ///
Результат void