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

        Map = null;

        Storage = null;

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

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

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

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

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