public void RecalcPath() { GRIDMANAGER.ClearLogic(); GRIDMANAGER.Pathfind(); // GRIDMANAGER.HighlightPath(); // GRIDMANAGER.DrawBoard( this ); }
private void GridManager_INIT() { GRIDMANAGER = new GridManager(this, 4); GRIDMANAGER.Squares = new Tile[WIDTH, HEIGHT]; GRIDMANAGER.ClearSquares(); GRIDMANAGER.Squares[0, 7].ContentCode = TileContent.Start; GRIDMANAGER.Squares[20, 7].ContentCode = TileContent.Finish; GRIDMANAGER.ClearLogic(); GRIDMANAGER.Pathfind(); // GRIDMANAGER.HighlightPath(); }
private void GridManager_INIT() { GRIDMANAGER = new GridManager( this, 4 ); GRIDMANAGER.Squares = new Tile[ WIDTH, HEIGHT ]; GRIDMANAGER.ClearSquares(); GRIDMANAGER.Squares[ 0, 7 ].ContentCode = TileContent.Start; GRIDMANAGER.Squares[ 20, 7 ].ContentCode = TileContent.Finish; GRIDMANAGER.ClearLogic(); GRIDMANAGER.Pathfind(); // GRIDMANAGER.HighlightPath(); }