public static bool CanAddFighter(TypeFighter type, Hero hero) { if (hero.Energy >= (int)type) { hero.Energy -= (int)type; return(true); } else { return(false); } }
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; } }
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; }
public ArcherFighter(bool orientation, Cell cell, TypeFighter type) : base(orientation, cell, type) { }
public BarbarianFighter(bool orientation, Cell cell, TypeFighter type) : base(orientation, cell, type) { }