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

Inheritance: BaseAbility
Afficher le fichier Open project: floAr/WarTornLands Class Usage Examples

Méthodes publiques

Свойство Type Description
WeaponMarkerA Vector2
WeaponMarkerB Vector2

Méthodes publiques

Méthode 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

Méthode Description
GetRoundedAngle ( ) : double
Hit ( ) : void
OnBang ( object sender, BangEventArgs e ) : void

Method Details

SetOwner() public méthode

public SetOwner ( Entity owner ) : void
owner Entity
Résultat void

SwingHitAbility() public méthode

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
Résultat System

TryCancel() public méthode

public TryCancel ( ) : bool
Résultat bool

TryExecute() public méthode

public TryExecute ( ) : bool
Résultat bool

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

WeaponMarkerA public_oe static_oe property

public static Vector2 WeaponMarkerA
Résultat Vector2

WeaponMarkerB public_oe static_oe property

public static Vector2 WeaponMarkerB
Résultat Vector2