示例#1
0
        private List <PointPosition> findPositionPoints(List <List <int> > map)
        {
            List <PointPosition> positionsList = new List <PointPosition>();

            for (int i = 0; i < map.Count(); i++)
            {
                for (int j = 0; j < map[i].Count(); j++)
                {
                    if (map[i][j] == 4)
                    {
                        PointPosition newPosition = new PointPosition(i, j);
                        positionsList.Add(newPosition);
                    }
                }
            }
            return(positionsList);
        }
示例#2
0
        private List<PointPosition> findPositionPoints(List<List<int>> map)
        {
            List<PointPosition> positionsList = new List<PointPosition>();
            for (int i = 0; i < map.Count(); i++)
            {

                for (int j = 0; j < map[i].Count(); j++)
                {
                    if (map[i][j] == 4)
                    {
                        PointPosition newPosition = new PointPosition(i, j);
                        positionsList.Add(newPosition);
                    }
                }
            }
            return positionsList;
        }