Пример #1
0
        public void AttackDwarf(Co_Pawn dwarfPawn)
        {
            //Move the current pawn to the target dwarf board box
            Pawn.MoveTo(dwarfPawn.boardBox, false);

            //Kill the dwarf
            dwarfPawn.Die();

            //Add points to the player
            BattleManager.AddPointTo(false, 1);
            //Add taken pawn to the player
            BattleManager.AddTakenPawn(false, 1);
        }
Пример #2
0
        public void AttackTroll(Co_Pawn trollPawn)
        {
            //Move the current pawn to the target dwarf board box
            Pawn.MoveTo(trollPawn.boardBox, false);

            //Kill the dwarf
            trollPawn.Die();

            //Add points to the player
            BattleManager.AddPointTo(true, 4);
            //Add taken pawn to the player
            BattleManager.AddTakenPawn(true, 1);

            //Block player to do another attack
            BattleInformation.PlayerHasMadeAnAttackInThisTurn = true;
        }