Exemplo n.º 1
0
        /// <summary>
        /// Gathers the player pawns from this node.
        /// </summary>
        /// <param name="playerIdP">The player identifier.</param>
        /// <returns>the player's pawns from this node.</returns>
        protected List <Pawn> GatherPlayerPawns(Int32 playerIdP)
        {
            List <Pawn> _playerPawns = Pawns.FindAll(_playerPawn => _playerPawn.PawnID == playerIdP);

            Pawns.RemoveAll(_playerPawn => _playerPawn.PawnID == playerIdP);
            return(_playerPawns);
        }