/// <summary> /// Constructor /// </summary> /// <param name="coordinates"></param> public SurroundingView(Coordinates coordinates, MapTile[,] view) { // Set the center coordinate _centerOfView = coordinates; _view = new Map(Convert.ToInt16(view.GetUpperBound(0)), Convert.ToInt16(view.GetUpperBound(1))); _view.InitializeGrid(view); }
/// <summary> /// Constructor /// </summary> public World() { // Create the empty map of the world _masterMap = new Map(_worldWidth, _worldHeight); _cells = new List<Cell>(); }