You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
473 B
23 lines
473 B
#include "rituals.hpp"
|
|
#include "ai_debug.hpp"
|
|
|
|
void RitualAI::reset() {
|
|
start = original;
|
|
}
|
|
|
|
bool RitualAI::will_do(std::string name) {
|
|
ai::check_valid_action(name, "RitualAI::is_able_to");
|
|
return plan.script[0].name == name;
|
|
}
|
|
|
|
void RitualAI::set_state(std::string name, bool setting) {
|
|
ai::set(start, name, setting);
|
|
}
|
|
|
|
void RitualAI::update() {
|
|
plan = ai::plan(script, start, goal);
|
|
}
|
|
|
|
void RitualAI::dump() {
|
|
ai::dump_script(script, start, plan.script);
|
|
}
|
|
|