示例#1
0
    public List <Point> GetOccupiedPoints()
    {
        List <Point> occupiedPoints =
            Actors.Select(actor => actor.Position).ToList();

        occupiedPoints.AddRange(Pawns.Select(pawn => pawn.Position));

        return(occupiedPoints);
    }