Move the ritual stuff to the combat namespace.

This commit is contained in:
Zed A. Shaw 2025-03-16 13:46:40 -04:00
parent 49531ba148
commit 1d2968f826
4 changed files with 38 additions and 33 deletions

View file

@ -1,23 +1,25 @@
#pragma once
#include "ai.hpp"
struct RitualAI {
std::string script;
ai::State start;
ai::State original;
ai::State goal;
ai::ActionPlan plan;
namespace combat {
struct RitualAI {
std::string script;
ai::State start;
ai::State original;
ai::State goal;
ai::ActionPlan plan;
RitualAI(std::string script, ai::State start, ai::State goal) :
script(script), start(start), original(start), goal(goal)
{
}
RitualAI(std::string script, ai::State start, ai::State goal) :
script(script), start(start), original(start), goal(goal)
{
}
RitualAI() {};
RitualAI() {};
void reset();
bool will_do(std::string name);
void set_state(std::string name, bool setting);
void update();
void dump();
};
void reset();
bool will_do(std::string name);
void set_state(std::string name, bool setting);
void update();
void dump();
};
}