feat: added goals to Planner

This commit is contained in:
Sara 2024-03-30 23:03:51 +01:00
parent 4847d82533
commit 662ede04e9

View file

@ -59,12 +59,15 @@ public:
void set_actions(Array actions);
Array get_actions() const;
void set_goals(Array goals);
Array get_goals() const;
private:
CharacterActor *actor{nullptr}; // the parent actor of this planner
WorldState cached_world_state{}; // the cached worldstate, cleared for every make_plan call
GlobalWorldState *global_world_state{nullptr}; // cached singleton instance
// configured settings
Vector<Ref<Action>> actions{}; // available actions
Vector<Ref<Goal>> goals{}; // available goals
};
struct PlannerNodeHasher {