ai: Implement ForkAI

This commit is contained in:
Léo Lam
2021-04-07 19:39:33 +02:00
parent 88f69b04ec
commit 3dc1988b02
6 changed files with 164 additions and 21 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ bool Ai::isCurrentAction(const sead::SafeString& name) {
return name == action->getName();
}
void Ai::changeChildIdx(u16 new_idx) {
void Ai::changeChildIdx(int new_idx) {
const auto prev_idx = mChildIdx;
mChildIdx = new_idx;
mPrevChildIdx = prev_idx;
+1 -1
View File
@@ -43,7 +43,7 @@ public:
protected:
virtual void calc_() {}
virtual void handlePendingChildChange_() { changeChild(mPendingChildIdx); }
void changeChildIdx(u16 new_idx);
void changeChildIdx(int new_idx);
static constexpr u16 InvalidIdx = 0xffff;