示例#1
0
    public void Clean()
    {
        AStar.Cleanup();
        AStar = null;

        Map = null;

        Storage = null;

        Goal = null;
    }
示例#2
0
    public void Clean()
    {
        AStar.Cleanup();
        AStar = null;

        //mapPlanner->Cleanup();
        Map = null;

        //storage->Cleanup();
        Storage = null;

        //goalPlanner->Cleanup();
        Goal = null;
    }
示例#3
0
    public GOAPManager(Agent ai)
    {
        Owner = ai;
        Map   = new AStarGOAPMap();       //Initialise the AStar Planner
        //Map.Initialise(Owner);
        //Map.BuildActionsEffectsTable();//Build the action effects table

        Storage = new AStarStorage();

        Goal = new AStarGOAPGoal();

        AStar = new AStarEngine();

        //AStar.Setup(Goal,Storage,Map);
    }