mirror of
https://github.com/zeldaret/ss
synced 2026-09-02 17:53:15 -04:00
Fix mAng3_c copy assignment, clean up list node templates
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
/* 0xC0 */ mVec3_c position;
|
||||
/* 0xCC */ mVec3_c scale;
|
||||
/* 0xD8 */ u32 actor_properties;
|
||||
/* 0xDC */ fLiNdBa_c actor_node;
|
||||
/* 0xDC */ dAcRef_c<dAcBase_c> actor_node;
|
||||
/* 0xE8 */ u32 field_0xe8;
|
||||
/* 0xEC */ s8 roomid;
|
||||
/* 0xED */ u8 actor_subtype;
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
return position - other.position;
|
||||
}
|
||||
|
||||
f32 getSquareDistanceTo(const mVec3_c &point) {
|
||||
f32 getSquareDistanceTo(const mVec3_c &point) const {
|
||||
mVec3_c diff = position - point;
|
||||
return diff.x * diff.x + diff.z * diff.z;
|
||||
}
|
||||
@@ -155,7 +155,7 @@ public:
|
||||
// same concept as above
|
||||
/* 8002d290 */ bool getDistanceAndAngleToActor(dAcBase_c *actor, f32 distThresh, s16 yAngle, s16 xAngle,
|
||||
f32 *outDist, s16 *outDiffAngleY, s16 *outDiffAngleX);
|
||||
/* 8002d3e0 */ bool isWithinPlayerRadius(f32 radius);
|
||||
/* 8002d3e0 */ bool isWithinPlayerRadius(f32 radius) const;
|
||||
/* 8002d440 */ bool getDistanceAndAngleToPlayer(f32 distThresh, s16 yAngle, s16 xAngle, f32 *outDist,
|
||||
s16 *outDiffAngleY, s16 *outDiffAngleX);
|
||||
/* 8002d470 */ f32 getDistToPlayer();
|
||||
@@ -183,7 +183,7 @@ public:
|
||||
// End of SoundSource stuff
|
||||
|
||||
/* 8002d890 */ void FUN_8002d890();
|
||||
/* 8002d920 */ void setActorRef(dBase_c *);
|
||||
/* 8002d920 */ void setActorRef(dAcBase_c *);
|
||||
// next three funcs are related
|
||||
/* 8002d930 */ void setEnemyDefeatFlag();
|
||||
/* 8002d940 */ void changeLoadedEntitiesWithSet();
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ public:
|
||||
/* 800508f0 */ virtual void postExecute(MAIN_STATE_e state);
|
||||
/* 80050920 */ virtual int preDraw();
|
||||
/* 80050860 */ virtual void postDraw(MAIN_STATE_e state);
|
||||
/* 8002c530 */ virtual ~dBase_c();
|
||||
/* 8002c530 */ virtual ~dBase_c() {}
|
||||
|
||||
public:
|
||||
/* 80050980 */ static void resetFlags();
|
||||
|
||||
@@ -6,12 +6,6 @@
|
||||
#include <s/s_State.hpp>
|
||||
#include <s/s_StateMgr.hpp>
|
||||
|
||||
class fLiNdTumbleweed_c : public fLiNdBaAutoUnlink_c {
|
||||
public:
|
||||
fLiNdTumbleweed_c(fBase_c *owner) : fLiNdBaAutoUnlink_c(owner) {}
|
||||
u16 someField;
|
||||
};
|
||||
|
||||
class dTgTumbleWeed_c : public dTg_c {
|
||||
public:
|
||||
dTgTumbleWeed_c() : mStateMgr(*this, sStateID::null), childTumbleweed(nullptr) {}
|
||||
@@ -35,7 +29,9 @@ private:
|
||||
u16 tumbleweedTimer;
|
||||
u16 padding;
|
||||
u16 windTimer;
|
||||
fLiNdTumbleweed_c childTumbleweed;
|
||||
// TODO dAcObjTumbleWeed
|
||||
dAcRef_c<dAcBase_c> childTumbleweed;
|
||||
u16 someField;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user