public GameObjects.Tile GetTile(Point point) { GameObjects.Tile tile = null; this.tilesByPoint.TryGetValue(point, out tile); return(tile); }
public void AddTile(GameObjects.Tile tile) { Point point = tile.Location.Point; this.tilesByPoint[point] = tile; this.SetCellProperties(point.X, point.Y, !tile.IsBlocking, !tile.IsBlocking); }