dAcEKs_c State ChaseAttack, Fighting, AttackReady, Attack, Damage, Stun, WindBlow and PathMove

This commit is contained in:
elijah-thomas774
2026-05-24 14:29:43 -04:00
parent f65d59d315
commit 0b6f97ed73
7 changed files with 855 additions and 32 deletions
+18
View File
@@ -59,6 +59,11 @@ public:
return mpPathPtr->pointCount;
}
s32 getLastPointIdx() const {
s32 pnt = getNumPoints() - 1;
return pnt >= 0 ? pnt : 0;
}
bool initWithPathId(s32 pathId, s32 roomId, bool pathSubtype);
bool initWithPathIndex(s32 pathIndex, s32 roomId, bool pathSubtype);
@@ -138,10 +143,18 @@ public:
mSpeed = speed;
}
f32 getSpeed() const {
return mSpeed;
}
void getDirection(mVec3_c &result) {
mPath.getDirection(mSegmentIndex, mSegmentTime, result);
}
const Vec *getPoint(s32 idx) const {
return mPath.getPoint(idx);
}
bool checkFlag(u32 flags) const {
return (mFlags & flags) != 0;
}
@@ -154,6 +167,11 @@ public:
mFlags |= flags;
}
const dPath_c &getPath() const {
return mPath;
}
s32 getNextPointIndex2() const;
private:
s32 getNextPointIndex(s32 point) const;
s32 getNextPointIndex() const;