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:
parent
e18aeaf05c
commit
1f90367f51
10 changed files with 80 additions and 81 deletions
4
ai.cpp
4
ai.cpp
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue