Example #1
0
 public static bool CanAddFighter(TypeFighter type, Hero hero)
 {
     if (hero.Energy >= (int)type)
     {
         hero.Energy -= (int)type;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public WizardFighter(bool orientation, Cell cell, TypeFighter type)
     : base(orientation, cell, type)
 {
     if (orientation)
     {
         base.Cell.Field.Game.Gamer1.EnergyPlused += 2;
     }
     else
     {
         base.Cell.Field.Game.Gamer2.EnergyPlused += 2;
     }
 }
Example #3
0
 public Fighter(bool orientation, Cell cell, TypeFighter type)
 {
     Orientation = orientation;
     Cell        = cell;
     if (TypeFighter.WizardFighter == type && Cell.Field.Game.WhoTurn.Orientation == orientation)
     {
         IsCanGo = true;
     }
     else
     {
         IsCanGo = false;
     }
     TypeFighterStatus = type;
 }
Example #4
0
 public ArcherFighter(bool orientation, Cell cell, TypeFighter type)
     : base(orientation, cell, type)
 {
 }
Example #5
0
 public BarbarianFighter(bool orientation, Cell cell, TypeFighter type)
     : base(orientation, cell, type)
 {
 }