mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 15:20:58 -04:00
d_a_obj_pumpkin_leaf OK (#58)
This commit is contained in:
@@ -147,6 +147,10 @@ public:
|
||||
return getSquareDistanceTo(point) > radius;
|
||||
}
|
||||
|
||||
u32 getRoomId() {
|
||||
return roomid;
|
||||
}
|
||||
|
||||
public:
|
||||
// funcs found in TU
|
||||
/* 8002c650 */ static void setTempCreateParams(mVec3_c *pos, mAng3_c *rot, mVec3_c *scale, s32 roomId, u32 params2,
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef D_A_OBJ_PUMPKIN_LEAF_H
|
||||
#define D_A_OBJ_PUMPKIN_LEAF_H
|
||||
|
||||
#include <d/a/obj/d_a_obj_base.h>
|
||||
#include <m/m3d/m_smdl.h>
|
||||
#include <s/s_State.hpp>
|
||||
#include <s/s_StateMgr.hpp>
|
||||
|
||||
class dAcOPumpkinLeaf_c : public dAcObjBase_c {
|
||||
public:
|
||||
dAcOPumpkinLeaf_c() : mStateMgr(*this, sStateID::null) {}
|
||||
virtual ~dAcOPumpkinLeaf_c() {}
|
||||
virtual bool createHeap() override;
|
||||
virtual int create() override;
|
||||
virtual int actorExecute() override;
|
||||
virtual int draw() override;
|
||||
virtual int doDelete() override;
|
||||
|
||||
STATE_FUNC_DECLARE(dAcOPumpkinLeaf_c, Wait);
|
||||
|
||||
private:
|
||||
nw4r::g3d::ResFile mBrres;
|
||||
m3d::smdl_c mModel;
|
||||
STATE_MGR_DECLARE(dAcOPumpkinLeaf_c);
|
||||
void dummy_executeState() {
|
||||
// Not called from the class but needed for weak function ordering
|
||||
mStateMgr.executeState();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user