示例#1
0
 public void SetHero()
 {
     PlayingHero = Factory.GetHero((HeroEnum)Choice);
     PlayingHero.Position.Left = Console.WindowWidth / 2;
     PlayingHero.Position.Top = Console.WindowHeight - PlayingHero.Length - PlayField.borderTop;
     PlayingHero.Draw();
 }
 /// <summary>
 ///     Gets the hero bonus for the specified hero.
 /// </summary>
 /// <param name="hero">The hero.</param>
 /// <returns>The bonus for the specified hero.</returns>
 public Bonus GetHeroBonusFor(Hero hero)
 {
     return new Bonus
            {
                Initiative = hero.InitiativeBonus,
                SoftAttack = hero.AttackBonus,
                HardAttack = hero.AttackBonus,
                AirAttack = hero.AttackBonus,
                NavalAttack = hero.AttackBonus,
                GroundDefense = hero.DefenseBonus,
                AirDefense = hero.DefenseBonus,
                CloseDefense = hero.DefenseBonus,
                Range = hero.RangeBonus,
                Movement = hero.MovementBonus,
                Spotting = hero.SpottingBonus,
            };
 }