Initial battle engine is now integrated in the systems so now I can finally get the turn based combat to work the way I envision.

This commit is contained in:
Zed A. Shaw 2025-04-06 00:45:51 -04:00
parent e18aeaf05c
commit 1f90367f51
10 changed files with 80 additions and 81 deletions

4
ai.cpp
View file

@ -174,6 +174,10 @@ namespace ai {
}
}
std::string& EntityAI::wants_to() {
return plan.script[0].name;
}
bool EntityAI::wants_to(std::string name) {
ai::check_valid_action(name, "EntityAI::wants_to");
return plan.script.size() > 0 && plan.script[0].name == name;