Moving some stuff around before writing a test to confirm the EntityAI.
This commit is contained in:
parent
f3e157a0f7
commit
db5a371766
6 changed files with 49 additions and 38 deletions
20
ai.hpp
20
ai.hpp
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue