C# Class WarTornLands.Entities.Modules.Think.Parts.SwingHitAbility

Inheritance: BaseAbility
Mostrar archivo Open project: floAr/WarTornLands Class Usage Examples

Public Properties

Property Type Description
WeaponMarkerA Vector2
WeaponMarkerB Vector2

Public Methods

Method Description
SetOwner ( Entity owner ) : void
SwingHitAbility ( int duration = 700, float angle = 2, float range = 50, int damage = 1 ) : System

Initializes a new instance of the SwingHitAbility class.

TryCancel ( ) : bool
TryExecute ( ) : bool
Update ( GameTime gameTime ) : void

Private Methods

Method Description
GetRoundedAngle ( ) : double
Hit ( ) : void
OnBang ( object sender, BangEventArgs e ) : void

Method Details

SetOwner() public method

public SetOwner ( Entity owner ) : void
owner Entity
return void

SwingHitAbility() public method

Initializes a new instance of the SwingHitAbility class.
public SwingHitAbility ( int duration = 700, float angle = 2, float range = 50, int damage = 1 ) : System
duration int The duration of a swing.
angle float The angle of the swing cone.
range float
damage int
return System

TryCancel() public method

public TryCancel ( ) : bool
return bool

TryExecute() public method

public TryExecute ( ) : bool
return bool

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

WeaponMarkerA public_oe static_oe property

public static Vector2 WeaponMarkerA
return Vector2

WeaponMarkerB public_oe static_oe property

public static Vector2 WeaponMarkerB
return Vector2