Exemplo n.º 1
0
    public void Clean()
    {
        AStar.Cleanup();
        AStar = null;

        Map = null;

        Storage = null;

        Goal = null;
    }
Exemplo n.º 2
0
    public void Clean()
    {
        AStar.Cleanup();
        AStar = null;

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

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

        //goalPlanner->Cleanup();
        Goal = null;
    }
Exemplo n.º 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);
    }
Exemplo n.º 4
0
    //AgentHuman Owner;

    public void Initialise(AgentHuman ai, AStarGOAPMap map, GOAPGoal goal)
    {
        // Owner = ai;
        Map  = map;
        Goal = goal;
    }