Moving some stuff around before writing a test to confirm the EntityAI.

This commit is contained in:
Zed A. Shaw 2025-03-14 22:39:08 -04:00
parent f3e157a0f7
commit db5a371766
6 changed files with 49 additions and 38 deletions

20
ai.hpp
View file

@ -9,6 +9,26 @@
#include "goap.hpp"
namespace ai {
struct EntityAI {
std::string script;
ai::State start;
ai::State goal;
ai::ActionPlan plan;
EntityAI(std::string script, ai::State start, ai::State goal) :
script(script), start(start), goal(goal)
{
}
EntityAI() {};
bool wants_to(std::string name);
void set_state(std::string name, bool setting);
void update();
};
struct AIManager {
AIProfile profile;