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
파일 보기 프로젝트 열기: floAr/WarTornLands 1 사용 예제들

공개 메소드들

메소드 설명
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