mirror of
https://github.com/zeldaret/ss
synced 2026-06-02 02:00:06 -04:00
dAcEKs_c State ChaseAttack, Fighting, AttackReady, Attack, Damage, Stun, WindBlow and PathMove
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user