Exploring raycasters and possibly make a little "doom like" game based on it.
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.
 
 
 
 
 
 
raycaster/rituals.cpp

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);
}