C# Класс WarTornLands.Entities.Modules.Think.Parts.JumpAbility

A part for a ThinkModule to give the respective entity a jump ability on TryExecute(). Parameters: Duration (duration of a complete jump) Zenit (max jump height in pixels)
Наследование: BaseAbility
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
JumpAbility ( int duration = 700, float zenit = 3.0f ) : System

Initializes a new instance of the JumpAbility class.

SetOwner ( Entity owner ) : void
TryCancel ( ) : bool
TryExecute ( ) : bool

Tries to execute a jump.

Update ( GameTime gameTime ) : void

Updates the part. May manipulate the Height value of respective owner.

Приватные методы

Метод Описание
OnBang ( object sender, BangEventArgs e ) : void

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

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

Initializes a new instance of the JumpAbility class.
public JumpAbility ( int duration = 700, float zenit = 3.0f ) : System
duration int The duration of a jump in ms.
zenit float The zenit of a jump in meter.
Результат System

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

public SetOwner ( Entity owner ) : void
owner Entity
Результат void

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

public TryCancel ( ) : bool
Результат bool

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

Tries to execute a jump.
public TryExecute ( ) : bool
Результат bool

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

Updates the part. May manipulate the Height value of respective owner.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The game time.
Результат void