|
1 | 1 | #ifndef D_A_OBJ_TOBYHOUSE_H |
2 | 2 | #define D_A_OBJ_TOBYHOUSE_H |
3 | 3 |
|
| 4 | +#include "d/d_bg_s_movebg_actor.h" |
4 | 5 | #include "f_op/f_op_actor_mng.h" |
5 | 6 |
|
6 | 7 | /** |
|
11 | 12 | * @details |
12 | 13 | * |
13 | 14 | */ |
14 | | -class daObjTobyHouse_c : public fopAc_ac_c { |
| 15 | +class daObjTobyHouse_c : public dBgS_MoveBgActor { |
15 | 16 | public: |
| 17 | + typedef void (daObjTobyHouse_c::*actionFunc)(); |
| 18 | + |
| 19 | + enum Action { |
| 20 | + ACTION_WAIT, |
| 21 | + ACTION_ORDER_EVENT, |
| 22 | + ACTION_EVENT, |
| 23 | + ACTION_DEAD, |
| 24 | + }; |
| 25 | + |
| 26 | + enum Type { |
| 27 | + TYPE_0, |
| 28 | + TYPE_1, |
| 29 | + }; |
| 30 | + |
16 | 31 | /* 80D15F0C */ void initBaseMtx(); |
17 | 32 | /* 80D15F48 */ void setBaseMtx(); |
18 | | - /* 80D15FE0 */ void Create(); |
19 | | - /* 80D161A4 */ void CreateHeap(); |
20 | | - /* 80D163F0 */ void create1st(); |
21 | | - /* 80D164C0 */ void Execute(f32 (**)[3][4]); |
| 33 | + /* 80D15FE0 */ int Create(); |
| 34 | + /* 80D161A4 */ int CreateHeap(); |
| 35 | + /* 80D163F0 */ int create1st(); |
| 36 | + /* 80D164C0 */ int Execute(Mtx**); |
22 | 37 | /* 80D16560 */ void action(); |
23 | 38 | /* 80D1661C */ void actionWait(); |
24 | 39 | /* 80D166E0 */ void actionOrderEvent(); |
25 | 40 | /* 80D167BC */ void actionEvent(); |
26 | 41 | /* 80D16860 */ void actionDead(); |
27 | 42 | /* 80D16864 */ void demoProc(); |
28 | 43 | /* 80D171C0 */ void sceneChange(); |
29 | | - /* 80D17230 */ void Draw(); |
30 | | - /* 80D17374 */ void checkLODModel(); |
31 | | - /* 80D174F8 */ void Delete(); |
| 44 | + /* 80D17230 */ int Draw(); |
| 45 | + /* 80D17374 */ BOOL checkLODModel(); |
| 46 | + /* 80D174F8 */ int Delete(); |
32 | 47 |
|
33 | | -private: |
34 | | - /* 0x568 */ u8 field_0x568[0x600 - 0x568]; |
| 48 | + bool checkWater() { return fopAcM_GetParamBit(this, 31, 1); } |
| 49 | + void setAction(u8 action) { mAction = action; } |
| 50 | + |
| 51 | + /* 0x5A0 */ request_of_phase_process_class mPhase; |
| 52 | + /* 0x5A8 */ J3DModel* mModel; |
| 53 | + /* 0x5AC */ J3DModel* mLODModel; |
| 54 | + /* 0x5B0 */ mDoExt_bckAnm* mBcks[3]; |
| 55 | + /* 0x5BC */ mDoExt_bckAnm* mActiveBck; |
| 56 | + /* 0x5C0 */ int field_0x5c0; |
| 57 | + /* 0x5C4 */ int field_0x5c4; |
| 58 | + /* 0x5C8 */ int field_0x5c8; |
| 59 | + /* 0x5CC */ int mStaffId; |
| 60 | + /* 0x5D0 */ int mEventIdIdx; |
| 61 | + /* 0x5D4 */ s16 mEventIds[2]; |
| 62 | + /* 0x5D8 */ u16 mBirlPJnt; |
| 63 | + /* 0x5DA */ u16 mBirlCannonJnt; |
| 64 | + /* 0x5DC */ u8 field_0x5dc; |
| 65 | + /* 0x5DD */ u8 mAction; |
| 66 | + /* 0x5DE */ u8 field_0x5de; |
| 67 | + /* 0x5E0 */ s16 field_0x5e0; |
| 68 | + /* 0x5E2 */ u8 field_0x5e2; |
| 69 | + /* 0x5E3 */ u8 field_0x5e3; |
| 70 | + /* 0x5E4 */ u8 field_0x5e4; |
| 71 | + /* 0x5E5 */ u8 mType; |
| 72 | + /* 0x5E8 */ f32 mHeightOffset; |
| 73 | + /* 0x5EC */ u16 mDemoTimer; |
| 74 | + /* 0x5F0 */ JPABaseEmitter* field_0x5f0; |
| 75 | + /* 0x5F4 */ JPABaseEmitter* field_0x5f4; |
| 76 | + /* 0x5F8 */ JPABaseEmitter* field_0x5f8; |
| 77 | + /* 0x5FC */ JPABaseEmitter* field_0x5fc; |
35 | 78 | }; |
36 | 79 |
|
37 | 80 | STATIC_ASSERT(sizeof(daObjTobyHouse_c) == 0x600); |
38 | 81 |
|
| 82 | +#ifdef DEBUG |
| 83 | + |
| 84 | +class daObjTobyHouse_HIO_c : public mDoHIO_entry_c { |
| 85 | +public: |
| 86 | + daObjTobyHouse_HIO_c(); |
| 87 | + ~daObjTobyHouse_HIO_c() {} |
| 88 | + void genMessage(JORMContext* ctx); |
| 89 | + |
| 90 | + /* 0x06 */ u8 mHawkeyeMediumLOD; |
| 91 | + /* 0x07 */ u8 field_0x07; |
| 92 | + /* 0x08 */ u8 mDrawCollision; |
| 93 | + /* 0x0A */ s16 mShakingCycle; |
| 94 | + /* 0x0C */ f32 mShakingAmplitude; |
| 95 | + /* 0x10 */ f32 mLODDistance; |
| 96 | +}; |
| 97 | + |
| 98 | +#endif |
| 99 | + |
39 | 100 |
|
40 | 101 | #endif /* D_A_OBJ_TOBYHOUSE_H */ |
0 commit comments