Exemplo n.º 1
0
 public static void UseAbility(int numberOfAbility, Character character)
 {
     switch (numberOfAbility)
     {
         case 1:
             {
                 if(character is Crusader)
                 {
                     if(!(character as Crusader).DoubleStrike.IsOnCooldown)
                     {
                         (character as Crusader).DoubleStrike.Action(character);
                     }
                 }
                 break;
             }
         case 2:
             {
                 if (character is Crusader)
                 {
                     if (!(character as Crusader).Slash.IsOnCooldown)
                     {
                         (character as Crusader).Slash.Action(character);
                     }
                 }
                 break;
             }
     }
 }
Exemplo n.º 2
0
 public override void Action(Character character)
 {
     character.AbilityInUse = this;
     base.Action(character);
 }
Exemplo n.º 3
0
 public virtual void Action(Character character)
 {
     this.Animation.IsActive = true;
     this.TimeSinceUse = 0;
     this.IsOnCooldown = true;
     character.IddleAnimation.IsActive = false;
     character.IsUsingAbility = true;
 }
Exemplo n.º 4
0
 public override void Action(Character character)
 {
     this.UpdateAffectedTargets(character);
     base.Action(character);
 }