示例#1
0
 /// <summary>
 /// Custom Size Ctor
 /// </summary>
 public GameWorld(int x, int y)
 {
     X           = x; y = Y;
     _board      = new Cell[X, Y];
     _pathFinder = new AStarPathfinder(this);
     InitiateGameBoard();
 }
示例#2
0
 /// <summary>
 /// Standard Ctor
 /// </summary>
 public GameWorld()
 {
     _board      = new Cell[X, Y];
     _pathFinder = new AStarPathfinder(this);
     InitiateGameBoard();
 }