|
11 | 11 | * @details |
12 | 12 | * |
13 | 13 | */ |
14 | | -class daNpc_midP_c : public fopAc_ac_c { |
| 14 | +class daNpc_midP_c : public daNpcT_c { |
15 | 15 | public: |
| 16 | + typedef int (daNpc_midP_c::*cutFunc)(int); |
| 17 | + |
16 | 18 | /* 80A70C6C */ ~daNpc_midP_c(); |
17 | | - /* 80A70D90 */ void create(); |
18 | | - /* 80A71074 */ void CreateHeap(); |
| 19 | + /* 80A70D90 */ int create(); |
| 20 | + /* 80A71074 */ int CreateHeap(); |
19 | 21 | /* 80A714BC */ void Delete(); |
20 | 22 | /* 80A714F0 */ void Execute(); |
21 | 23 | /* 80A71510 */ void Draw(); |
22 | | - /* 80A715D4 */ void createHeapCallBack(fopAc_ac_c*); |
23 | | - /* 80A715F4 */ void ctrlJointCallBack(J3DJoint*, int); |
24 | | - /* 80A7164C */ void getType(); |
25 | | - /* 80A7166C */ void isDelete(); |
| 24 | + /* 80A715D4 */ static int createHeapCallBack(fopAc_ac_c*); |
| 25 | + /* 80A715F4 */ static int ctrlJointCallBack(J3DJoint*, int); |
| 26 | + /* 80A7164C */ u8 getType(); |
| 27 | + /* 80A7166C */ int isDelete(); |
26 | 28 | /* 80A7168C */ void reset(); |
27 | 29 | /* 80A717D4 */ void afterJntAnm(int); |
28 | | - /* 80A71860 */ void ctrlBtk(); |
| 30 | + // /* 80A71860 */ void ctrlBtk(); |
29 | 31 | /* 80A7199C */ void setParam(); |
30 | 32 | /* 80A71A98 */ void setAfterTalkMotion(); |
31 | 33 | /* 80A71AF8 */ void srchActors(); |
32 | | - /* 80A71AFC */ void evtTalk(); |
33 | | - /* 80A71BFC */ void evtCutProc(); |
| 34 | + // /* 80A71AFC */ void evtTalk(); |
| 35 | + // /* 80A71BFC */ void evtCutProc(); |
34 | 36 | /* 80A71CC4 */ void action(); |
35 | 37 | /* 80A71DB0 */ void beforeMove(); |
36 | 38 | /* 80A71E28 */ void setAttnPos(); |
37 | 39 | /* 80A72064 */ void setCollision(); |
38 | | - /* 80A7216C */ bool drawDbgInfo(); |
| 40 | + // /* 80A7216C */ bool drawDbgInfo(); |
39 | 41 | /* 80A72174 */ void drawGhost(); |
40 | 42 | /* 80A721E0 */ void selectAction(); |
41 | 43 | /* 80A72228 */ void chkAction(int (daNpc_midP_c::*)(void*)); |
42 | 44 | /* 80A72254 */ void setAction(int (daNpc_midP_c::*)(void*)); |
43 | 45 | /* 80A722FC */ void wait(void*); |
44 | 46 | /* 80A72548 */ void talk(void*); |
45 | | - /* 80A737D0 */ daNpc_midP_c(daNpcT_faceMotionAnmData_c const*, daNpcT_motionAnmData_c const*, |
46 | | - daNpcT_MotionSeqMngr_c::sequenceStepData_c const*, int, |
47 | | - daNpcT_MotionSeqMngr_c::sequenceStepData_c const*, int, |
48 | | - daNpcT_evtData_c const*, char**); |
| 47 | + /* 80A737D0 */ daNpc_midP_c(daNpcT_faceMotionAnmData_c const* param_1, daNpcT_motionAnmData_c const* param_2, |
| 48 | + daNpcT_MotionSeqMngr_c::sequenceStepData_c const* param_3, int param_4, |
| 49 | + daNpcT_MotionSeqMngr_c::sequenceStepData_c const* param_5, int param_6, |
| 50 | + daNpcT_evtData_c const* param_7, char** param_8) : |
| 51 | + daNpcT_c(param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8) {} |
49 | 52 | /* 80A7390C */ s32 getEyeballRMaterialNo(); |
50 | 53 | /* 80A73914 */ s32 getEyeballLMaterialNo(); |
51 | 54 | /* 80A7391C */ s32 getHeadJointNo(); |
52 | 55 | /* 80A73924 */ s32 getNeckJointNo(); |
53 | 56 | /* 80A7392C */ s32 getBackboneJointNo(); |
54 | | - /* 80A73934 */ void checkChangeJoint(int); |
55 | | - /* 80A73944 */ void checkRemoveJoint(int); |
| 57 | + // /* 80A73934 */ void checkChangeJoint(int); |
| 58 | + // /* 80A73944 */ void checkRemoveJoint(int); |
| 59 | + |
| 60 | + int getFlowNodeNo() { |
| 61 | + u16 nodeNo = home.angle.x; |
| 62 | + if (nodeNo == 0xffff) { |
| 63 | + return -1; |
| 64 | + } |
| 65 | + return nodeNo; |
| 66 | + } |
56 | 67 |
|
57 | | - static void* mCutNameList; |
58 | | - static u8 mCutList[12]; |
| 68 | + static char* mCutNameList; |
| 69 | + static cutFunc mCutList[1]; |
59 | 70 |
|
60 | 71 | private: |
61 | | - /* 0x568 */ u8 field_0x568[0xfa0 - 0x568]; |
| 72 | + /* 0xE40 */ u8 field_0xE40[0xe44 - 0xe40]; |
| 73 | + /* 0xE44 */ dCcD_Cyl mCyl; |
| 74 | + /* 0xF80 */ u8 mType; |
62 | 75 | }; |
63 | 76 |
|
64 | | -STATIC_ASSERT(sizeof(daNpc_midP_c) == 0xfa0); |
| 77 | +// STATIC_ASSERT(sizeof(daNpc_midP_c) == 0xfa0); |
65 | 78 |
|
66 | 79 | class daNpc_midP_Param_c { |
67 | 80 | public: |
68 | 81 | /* 80A73954 */ ~daNpc_midP_Param_c(); |
69 | 82 |
|
70 | | - static u8 const m[140]; |
| 83 | + struct Data { |
| 84 | + /* 0x00 */ f32 field_0x00; |
| 85 | + /* 0x04 */ f32 field_0x04; |
| 86 | + /* 0x08 */ f32 field_0x08; |
| 87 | + /* 0x0C */ f32 field_0x0c; |
| 88 | + /* 0x10 */ f32 field_0x10; |
| 89 | + /* 0x14 */ f32 field_0x14; |
| 90 | + /* 0x18 */ f32 field_0x18; |
| 91 | + /* 0x1C */ f32 field_0x1c; |
| 92 | + /* 0x20 */ f32 field_0x20; |
| 93 | + /* 0x24 */ f32 field_0x24; |
| 94 | + /* 0x28 */ f32 field_0x28; |
| 95 | + /* 0x2C */ f32 field_0x2c; |
| 96 | + /* 0x30 */ f32 field_0x30; |
| 97 | + /* 0x34 */ f32 field_0x34; |
| 98 | + /* 0x38 */ f32 field_0x38; |
| 99 | + /* 0x3C */ f32 field_0x3c; |
| 100 | + /* 0x40 */ f32 field_0x40; |
| 101 | + /* 0x44 */ f32 field_0x44; |
| 102 | + /* 0x48 */ s16 field_0x48; |
| 103 | + /* 0x4A */ s16 field_0x4a; |
| 104 | + /* 0x4C */ s16 field_0x4c; |
| 105 | + /* 0x4E */ s16 field_0x4e; |
| 106 | + /* 0x50 */ f32 field_0x50; |
| 107 | + /* 0x54 */ f32 field_0x54; |
| 108 | + /* 0x58 */ f32 field_0x58; |
| 109 | + /* 0x5C */ f32 field_0x5c; |
| 110 | + /* 0x60 */ s16 field_0x60; |
| 111 | + /* 0x62 */ s16 field_0x62; |
| 112 | + /* 0x64 */ int field_0x64; |
| 113 | + /* 0x68 */ int field_0x68; |
| 114 | + /* 0x6C */ f32 field_0x6c; |
| 115 | + /* 0x70 */ f32 field_0x70; |
| 116 | + /* 0x74 */ f32 field_0x74; |
| 117 | + /* 0x78 */ f32 field_0x78; |
| 118 | + /* 0x7C */ f32 field_0x7c; |
| 119 | + /* 0x80 */ f32 field_0x80; |
| 120 | + /* 0x84 */ f32 field_0x84; |
| 121 | + /* 0x88 */ f32 field_0x88; |
| 122 | + }; |
| 123 | + |
| 124 | + static const Data m; |
71 | 125 | }; |
72 | 126 |
|
73 | 127 |
|
|
0 commit comments