Exemplo n.º 1
0
        public GameObjects.Tile GetTile(Point point)
        {
            GameObjects.Tile tile = null;
            this.tilesByPoint.TryGetValue(point, out tile);

            return(tile);
        }
Exemplo n.º 2
0
        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);
        }