diff options
| author | elijah-thomas774 <elijahthomas774@gmail.com> | 2026-05-24 14:29:43 -0400 |
|---|---|---|
| committer | elijah-thomas774 <elijahthomas774@gmail.com> | 2026-05-24 20:34:43 -0400 |
| commit | 0b6f97ed73be491908b754ecfb2c231abc61d613 (patch) | |
| tree | 274dd1f765998a1379604ef368725ad457c26766 /include/toBeSorted | |
| parent | f65d59d315ff007b2cc9940be54cf0843f1ebcf7 (diff) | |
dAcEKs_c State ChaseAttack, Fighting, AttackReady, Attack, Damage, Stun, WindBlow and PathMove
Diffstat (limited to 'include/toBeSorted')
| -rw-r--r-- | include/toBeSorted/d_path.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/toBeSorted/d_path.h b/include/toBeSorted/d_path.h index 56856008..6337f5b4 100644 --- a/include/toBeSorted/d_path.h +++ b/include/toBeSorted/d_path.h @@ -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; |
