I'm currently working on a decision tree for an enemy character. I'm not sure how to use the actions for the decision tree.
Does the actions either: 1.
void AttackAction::ExecuteAction(EnemyBase& owner) {
//Use the code for attacking here and tell the character when the aciton is finished.
}
void AttackAction::ExecuteAction(EnemyBase& owner) {
/*The character class handles the attack and makes a new decision once the attack is
finished*/
}
Which one of these is the correct one for decision tree? Or is neither of them the right choice?
Thanks beforehand for the answers.