/// <summary>
        /// MapModel 생성자
        /// </summary>
        /// <param name="x"> XSize</param>
        /// <param name="y">YSize</param>
        public MapModel(int x, int y)
        {
            MapSize = new Spot(x, y);

            MapData = new MapNode[y][];
            for (int i = 0; i < MapData.GetLength(0); i++)
            {
                MapData[i] = new MapNode[x];
                for (int j = 0; j < MapData.GetLength(1); j++)
                {
                    MapData[i][j] = new MapNode();
                }
            }
            OnMapModelCreate();
        }
 /// <summary>
 /// 주변노드 등록
 /// </summary>
 public void InitNearNode(MapNode Up, MapNode Down, MapNode Left, MapNode Right)
 {
     UpNode = Up; DownNode = Down; LeftNode = Left; RightNode = Right;
 }
 /// <summary>
 /// 네 방향의 Node를 받아 초기화하는 생성자
 /// </summary>
 /// <param name="Up"></param>
 /// <param name="Down"></param>
 /// <param name="Left"></param>
 /// <param name="Right"></param>
 public MapNode(MapNode Up, MapNode Down, MapNode Left, MapNode Right)
 {
     InitNearNode(Up , Down , Left , Right);
 }
예제 #4
0
 /// <summary>
 /// 주변노드 등록
 /// </summary>
 public void InitNearNode(MapNode Up, MapNode Down, MapNode Left, MapNode Right)
 {
     UpNode = Up; DownNode = Down; LeftNode = Left; RightNode = Right;
 }
예제 #5
0
 /// <summary>
 /// 네 방향의 Node를 받아 초기화하는 생성자
 /// </summary>
 /// <param name="Up"></param>
 /// <param name="Down"></param>
 /// <param name="Left"></param>
 /// <param name="Right"></param>
 public MapNode(MapNode Up, MapNode Down, MapNode Left, MapNode Right)
 {
     InitNearNode(Up, Down, Left, Right);
 }