Pathfind() public method

public Pathfind ( ) : void
return void
Ejemplo n.º 1
0
    public void RecalcPath()
    {
        GRIDMANAGER.ClearLogic();
        GRIDMANAGER.Pathfind();
        //  GRIDMANAGER.HighlightPath();

        //	GRIDMANAGER.DrawBoard( this );
    }
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
0
    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();
    }