Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_midna.h
Go to the documentation of this file.
1#ifndef D_A_MIDNA_H
2#define D_A_MIDNA_H
3
7#include "f_op/f_op_actor.h"
8#include "d/d_bg_s_lin_chk.h"
9#include "d/d_com_inf_game.h"
10#include "d/d_msg_flow.h"
11#include "d/actor/d_a_player.h"
12
13class daKago_c;
14
16public:
17 /* 804BC218 */ void init();
18 /* 804BC248 */ void calc(J3DMaterial*) const;
19 /* 804C63E0 */ ~daMidna_matAnm_c() {}
20
22
27
28 static bool getEyeMoveFlg() { return sEyeMoveFlg; }
29 static void offEyeMoveFlg() { sEyeMoveFlg = false; }
30 static void onEyeMoveFlg() { sEyeMoveFlg = true; }
31 static void setMorfFrame(u8 frame) { sMorfFrame = frame; }
33 static u8 getMorfFrame() { return sMorfFrame; }
34
35 /* 0x0F4 */ f32 mOldTransX;
36 /* 0x0F8 */ f32 mOldTransY;
37 /* 0x0FC */ f32 mNowOffsetX;
38 /* 0x100 */ f32 mNowOffsetY;
39
40 static bool sEyeMoveFlg;
41 static u8 sMorfFrame;
42};
43
45
47public:
48 struct param {
49 /* 0x00 */ u8 field_0x00[0x14];
50 /* 0x14 */ f32 mScale;
51 /* 0x18 */ f32 field_0x18;
52 /* 0x1C */ f32 field_0x1c;
53 };
54
55 static param const m;
56};
57
59
61public:
62 /* 804BC36C */ int execute(u16, J3DTransformInfo*);
63 /* 804C6398 */ virtual ~daMidna_McaMorfCB1_c() {}
64
66
67 /* 0x4 */ cXyz* mpScale;
68};
69
71 /* 0x0 */ u16 mResID;
72 /* 0x2 */ u16 mTexID;
73 /* 0x4 */ f32 mSoundFrame;
74 /* 0x8 */ u32 mSoundID;
75};
76
78 /* 0x0 */ u16 mBtpID;
79 /* 0x2 */ u16 mBtkID;
80};
81
82class daMidna_c;
84
93class daMidna_c : public fopAc_ac_c {
94public:
105
140
156
158 /* 0x00 */ ANM_WAITA,
159 /* 0x01 */ ANM_CLING,
160 /* 0x02 */ ANM_CLINGB,
161 /* 0x03 */ ANM_WAITB,
162 /* 0x04 */ ANM_PANIC,
163 /* 0x05 */ ANM_TALKA,
164 /* 0x06 */ ANM_LEADST,
165 /* 0x07 */ ANM_LEADED,
166 /* 0x08 */ ANM_LEADWAIT,
167 /* 0x09 */ ANM_LEADTOWAITA,
168 /* 0x0A */ ANM_LEADSWAIT,
169 /* 0x0B */ ANM_CLINGST,
170 /* 0x0C */ ANM_SWAITB,
171 /* 0x0D */ ANM_SWAITC,
172 /* 0x0E */ ANM_WLDIEA,
173 /* 0x0F */ ANM_WLSWIMDIE,
174 /* 0x10 */ ANM_S_APPEAR,
175 /* 0x11 */ ANM_S_APPEARBL,
176 /* 0x12 */ ANM_S_RETURN,
177 /* 0x13 */ ANM_S_HOLE,
178 /* 0x14 */ ANM_WARPIN,
179 /* 0x15 */ ANM_WAITTP,
180 /* 0x16 */ ANM_ENTRANCE,
181 /* 0x17 */ ANM_SWAITD,
182 /* 0x18 */ ANM_HIT,
183 /* 0x19 */ ANM_LOOKABOUT,
184 /* 0x1A */ ANM_SWAITA,
185 /* 0x1B */ ANM_S_MOVE,
186 /* 0x1C */ ANM_RETURN,
187 /* 0x1D */ ANM_WAITD,
188 /* 0x1E */ ANM_CLINGD,
189 /* 0x1F */ ANM_ROPEWAIT,
190 /* 0x20 */ ANM_ROPEFALTER,
191 /* 0x21 */ ANM_DIGIN,
192 /* 0x22 */ ANM_DOOROPC,
193 /* 0x23 */ ANM_DOOROPD,
194 /* 0x24 */ ANM_GRAB,
195 /* 0x25 */ ANM_GRABED,
196 /* 0x26 */ ANM_MGNCATCHST,
197 /* 0x27 */ ANM_MGNCATCHED,
198 /* 0x28 */ ANM_MGNTHROWLST,
199 /* 0x29 */ ANM_MGNTHROWLED,
200 /* 0x2A */ ANM_MGNTHROWRST,
201 /* 0x2B */ ANM_MGNTHROWRED,
202 /* 0x2C */ ANM_FTALKA,
203 /* 0x2D */ ANM_FTALKB,
204 /* 0x2E */ ANM_FTALKC,
205 /* 0x2F */ ANM_FTALKC2,
206 /* 0x30 */ ANM_HAIR,
207 /* 0x31 */ ANM_S_TAKES,
208 /* 0x32 */ ANM_S_WAITS,
209 /* 0x33 */ ANM_S_PACKAWAY,
210 /* 0x34 */ ANM_GRABST,
211 /* 0x35 */ ANM_MAX,
212 /* 0x00 */ ANM_NONE = 0,
213 };
214
218 static bool checkMidnaTired();
220
221 /* 804BC3E0 */ int modelCallBack(int);
222 /* 804BC5C4 */ int changeUpperBck();
223 /* 804BC614 */ int changeFaceBck();
224 /* 804BC670 */ int baseModelCallBack(int);
225 /* 804BC740 */ int initInvModel(u16, J3DModel**, mDoExt_invisibleModel*, u32);
226 /* 804BC7D4 */ int initDemoModel(J3DModel**, char const*, u32);
227 /* 804BC868 */ int createHeap();
228 /* 804BD274 */ cPhs__Step create();
229 /* 804BD93C */ void allAnimePlay();
230 /* 804BDE04 */ void setMatrix();
231 /* 804BE470 */ void setBodyPartMatrix();
232 /* 804BED1C */ void setRoomInfo();
233 /* 804BEDB8 */ void setBodyPartPos();
234 /* 804BEFA0 */ BOOL checkAppear();
235 /* 804BF070 */ void checkMidnaPosState();
236 /* 804BFF80 */ BOOL setUpperAnime(u16, u16);
237 /* 804C0020 */ BOOL setUpperAnimeAndSe(daMidna_ANM);
238 /* 804C0094 */ BOOL setFaceAnime(u16, u16);
239 /* 804C0134 */ void endHighModel();
240 /* 804C0238 */ BOOL setDemoAnm();
241 /* 804C0BAC */ void setFaceBtp(u16, int);
242 /* 804C0C6C */ void setFaceBtk(u16, int);
243 /* 804C0D2C */ void setLeftHandShape(u16);
244 /* 804C0E18 */ void setRightHandShape(u16);
245 /* 804C0F04 */ BOOL checkHairOnlyAnime(int) const;
246 /* 804C0F24 */ void setBckAnime(J3DAnmTransform*, int, f32);
247 /* 804C103C */ void setAnm();
248 /* 804C287C */ s16 getNeckAimAngle(cXyz const*, s16*, s16*, s16*, s16*);
249 /* 804C2A68 */ void clearEyeMove();
250 /* 804C2AB8 */ void setEyeMove(cXyz const*, s16, s16);
251 /* 804C2EBC */ void setNeckAngle();
252 /* 804C3168 */ void initHairAngle();
253 /* 804C3298 */ void setHairAngle();
254 /* 804C3F04 */ void setDemoData();
255 /* 804C4394 */ J3DAnmTevRegKey* setSimpleBrk(J3DModelData*, u16);
257 /* 804C44CC */ void initMidnaModel();
258 /* 804C49B8 */ void setMidnaNoDrawFlg();
259 /* 804C4AE8 */ int checkMetamorphoseEnableBase();
260 /* 804C4B68 */ BOOL checkNoDrawState();
261 /* 804C4BC0 */ void setSound();
262 /* 804C4FDC */ int execute();
263 /* 804C5A08 */ int draw();
264 /* 804C61A4 */ ~daMidna_c();
265
266 daMidna_c() : mBtpHeap(0x400), mBtkHeap(0x400) {}
267
276 void setFaceNum(int num) { mFaceNum = num; }
277 void setMotionNum(int num) { mMotionNum = num; }
278 bool checkDemoTypeNone() const { return mDemoType == 0; }
280 void changeDemoMode(u32 mode) { mDemoMode = mode; }
288 int checkMetamorphoseEnable() { return (this->*mpFunc)(); }
290
295
301
306
310
313
315
319
320 bool checkReturnAnime() const {
321 return mBckHeap[0].getIdx() == 0x1CA;
322 }
323
325 return field_0x84e == 3 || field_0x84e == 4 || field_0x84e == 2;
326 }
327
331
332 bool checkShadowReturnEnd() const {
333 return mBckHeap[0].getIdx() == 0x21C && mpMorf->isStop();
334 }
335
337 return (field_0x84e == 2 || field_0x84e == 1) ;
338 }
339
341
345
349
353
354 BOOL checkDemoPortalWarpWait() const { return mDemoMode == 11; }
355
357 return dKy_darkworld_check() == true || dComIfGs_isTransformLV(3);
358 }
359
360 static bool i_checkMidnaTired() {
361 return dComIfGs_isTransformLV(3) && !dComIfGs_isEventBit(0x1E08);
362 }
363
364 void resetRatBody() {}
365
367 return mBckHeap[0].getIdx() == 0x1CB || mBckHeap[0].getIdx() == 0x1C7
368 || mBckHeap[0].getIdx() == 0x1C8 || mBckHeap[0].getIdx() == 0x1C9;
369 }
370
372
373 static daMidna_texData_s const m_texDataTable[21];
374 static daMidna_anmData_s const m_anmDataTable[53];
375
376private:
378 /* 0x570 */ J3DModel* mpModel;
390 /* 0x5E4 */ daPy_anmHeap_c mBckHeap[3];
403 /* 0x670 */ J3DModel* mpMaskBmd;
405 /* 0x678 */ J3DModel* mpHandsBmd;
413 /* 0x698 */ J3DModel* mpGokouBmd;
435 /* 0x6F8 */ daMidna_hio_c0* mpHIO;
436 /* 0x6FC */ Z2Creature mSound;
437 /* 0x78C */ dMsgFlow_c mMsgFlow;
439 /* 0x848 */ u8 mMotionNum;
440 /* 0x849 */ u8 mFaceNum;
441 /* 0x84A */ u8 field_0x84a;
442 /* 0x84B */ u8 mFaceBckTimer;
443 /* 0x84C */ u8 mEyeMoveTimer;
444 /* 0x84D */ s8 mReverb;
445 /* 0x84E */ u8 field_0x84e;
446 /* 0x84F */ u8 mDemoType;
447 /* 0x850 */ u8 field_0x850;
448 /* 0x851 */ u8 field_0x851;
449 /* 0x852 */ u8 field_0x852[8];
450 /* 0x85A */ s16 field_0x85a;
451 /* 0x85C */ s16 mHairAngleZ[5];
452 /* 0x866 */ s16 mHairAngleY[5];
453 /* 0x870 */ u8 field_0x870[2];
454 /* 0x872 */ s16 field_0x872;
455 /* 0x874 */ s16 mBackboneAngleZ;
456 /* 0x876 */ s16 field_0x876;
459 /* 0x87C */ s16 mDemoAngle;
460 /* 0x87E */ s16 field_0x87e;
461 /* 0x880 */ csXyz mNeckAngle;
462 /* 0x886 */ u8 field_0x886[6];
463 /* 0x88C */ int mStaffID;
464 /* 0x890 */ u32 mStateFlg0;
465 /* 0x894 */ u32 mStateFlg1;
467 /* 0x89C */ u32 mShadowKey;
468 /* 0x8A0 */ u32 mParticleKey1;
469 /* 0x8A4 */ u32 mParticleKey2;
470 /* 0x8A8 */ u32 mThroughEffectKey[6];
471 /* 0x8C0 */ u32 mDemoMode;
472 /* 0x8C4 */ u32 mSoundID;
473 /* 0x8C8 */ f32 mVoiceFrame;
474 /* 0x8CC */ f32 mEyeMoveX;
475 /* 0x8D0 */ f32 mEyeMoveY;
476 /* 0x8D4 */ f32 field_0x8d4;
477 /* 0x8D8 */ f32 mDemoSpeed;
478 /* 0x8DC */ f32 field_0x8dc;
479 /* 0x8E0 */ cXyz mHairPos[5];
480 /* 0x91C */ cXyz mHairDir[5];
481 /* 0x958 */ cXyz mHeadCenterPos;
482 /* 0x964 */ cXyz mHairScale[5];
483 /* 0x9A0 */ cXyz field_0x9a0;
484 /* 0x9AC */ cXyz mTagWaitPos;
485 /* 0x9B8 */ cXyz mDemoPos;
487 /* 0x9D0 */ daKago_c* mpKago;
488 /* 0x9D4 */ daMidna_func mpFunc;
489};
490
491STATIC_ASSERT(sizeof(daMidna_c) == 0x9E0);
492
493#endif /* D_A_MIDNA_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
cPhs__Step
Definition c_phase.h:8
Definition J3DAnimation.h:811
Definition J3DCluster.h:74
Definition J3DShape.h:82
Definition d_bg_s_lin_chk.h:20
Basket.
Definition d_a_kago.h:15
Definition d_a_midna.h:60
int execute(u16, J3DTransformInfo *)
Definition d_a_midna.cpp:147
void setScale(cXyz *i_scale)
Definition d_a_midna.h:65
cXyz * mpScale
Definition d_a_midna.h:67
virtual ~daMidna_McaMorfCB1_c()
Definition d_a_midna.h:63
Midna.
Definition d_a_midna.h:93
void setShadowReturn()
Definition d_a_midna.h:340
void offTagWaitPos()
Definition d_a_midna.h:307
s16 mHairAngleZ[5]
Definition d_a_midna.h:451
cXyz mHairScale[5]
Definition d_a_midna.h:482
daMidna_hio_c0 * mpHIO
Definition d_a_midna.h:435
J3DModel * mpDemoHLTmpBmd
Definition d_a_midna.h:425
static bool checkMidnaTired()
void onForceMorfCancel()
Definition d_a_midna.h:371
u8 field_0x870[2]
Definition d_a_midna.h:453
void setDemoData()
Definition d_a_midna.cpp:2678
u16 mRightHandShapeIdx
Definition d_a_midna.h:458
J3DAnmTextureSRTKey * setSimpleBtk(J3DModelData *, u16)
Definition d_a_midna.cpp:2816
cXyz mTagWaitPos
Definition d_a_midna.h:484
u8 mDemoType
Definition d_a_midna.h:446
s16 field_0x872
Definition d_a_midna.h:454
s16 mBackboneAngleZ
Definition d_a_midna.h:455
int createHeap()
Definition d_a_midna.cpp:350
J3DAnmTextureSRTKey * mpMoyaBtk
Definition d_a_midna.h:393
J3DModel * mpShadowHairhandBmd
Definition d_a_midna.h:408
void setBckAnime(J3DAnmTransform *, int, f32)
Definition d_a_midna.cpp:1752
u8 mFaceBckTimer
Definition d_a_midna.h:442
u32 mEndResetStateFlg0
Definition d_a_midna.h:466
bool checkShadowModelDraw() const
Definition d_a_midna.h:328
f32 field_0x8dc
Definition d_a_midna.h:478
void setSound()
Definition d_a_midna.cpp:2966
J3DAnmTevRegKey * mpGokouAppearBrk
Definition d_a_midna.h:400
J3DAnmTevRegKey * field_0x668
Definition d_a_midna.h:401
mDoExt_invisibleModel mMaskInvModel
Definition d_a_midna.h:387
u32 checkStateFlg0(daMidna_FLG0 flag) const
Definition d_a_midna.h:274
cXyz mDemoPos
Definition d_a_midna.h:485
void setMotionNum(int num)
Definition d_a_midna.h:277
s8 mReverb
Definition d_a_midna.h:444
J3DAnmTevRegKey * mpAppearBrk
Definition d_a_midna.h:397
mDoExt_bckAnm mUpperBck
Definition d_a_midna.h:382
J3DModel * mpDemoBDHairhandBmd
Definition d_a_midna.h:412
int draw()
Definition d_a_midna.cpp:3249
Z2Creature mSound
Definition d_a_midna.h:436
void setLeftHandShape(u16)
Definition d_a_midna.cpp:1693
BOOL checkNoInput() const
Definition d_a_midna.h:286
u32 mThroughEffectKey[6]
Definition d_a_midna.h:470
mDoExt_invisibleModel mHairhandInvModel
Definition d_a_midna.h:389
void setEyeMove(cXyz const *, s16, s16)
Definition d_a_midna.cpp:2356
void onStateFlg0(daMidna_FLG0 i_flag)
Definition d_a_midna.h:269
static daMidna_texData_s const m_texDataTable[21]
Definition d_a_midna.h:160
void onSideWarp()
Definition d_a_midna.h:312
J3DAnmTevRegKey * setSimpleBrk(J3DModelData *, u16)
Definition d_a_midna.cpp:2803
J3DModel * mpHairhandBmd
Definition d_a_midna.h:407
J3DShape * mpLeftHandShape
Definition d_a_midna.h:414
J3DAnmTextureSRTKey * mpMaskMoyaBtk
Definition d_a_midna.h:394
mDoExt_bckAnm * mpDemoHDTmpBck
Definition d_a_midna.h:430
J3DModel * mpHandsBmd
Definition d_a_midna.h:405
int baseModelCallBack(int)
Definition d_a_midna.cpp:294
cXyz mForceNeckAimPos
Definition d_a_midna.h:486
s16 field_0x85a
Definition d_a_midna.h:450
mDoExt_bckAnm * mpDemoHLTmpBck
Definition d_a_midna.h:426
void clearEyeMove()
Definition d_a_midna.cpp:2344
daMidna_c()
Definition d_a_midna.h:266
u32 checkShadowModelDrawDemoForce() const
Definition d_a_midna.h:289
J3DModel * mpDemoHDTmpBmd
Definition d_a_midna.h:429
bool checkShadowModeTalkWait() const
Definition d_a_midna.h:336
s16 mDemoAngle
Definition d_a_midna.h:459
J3DAnmTextureSRTKey * mpHairhandMoyaBtk
Definition d_a_midna.h:396
MtxP getMtxHairTop()
Definition d_a_midna.h:314
bool checkSetAnime(int param_0, daMidna_ANM i_anm)
Definition d_a_midna.h:316
u32 checkForceTiredColor() const
cXyz mHairPos[5]
Definition d_a_midna.h:479
mDoExt_invisibleModel mInvModel
Definition d_a_midna.h:386
u32 mDemoMode
Definition d_a_midna.h:471
J3DGXColorS10 field_0x6e0
Definition d_a_midna.h:431
daMidna_ANM
Definition d_a_midna.h:157
@ ANM_DIGIN
Definition d_a_midna.h:191
@ ANM_FTALKC2
Definition d_a_midna.h:205
@ ANM_SWAITC
Definition d_a_midna.h:171
@ ANM_LEADTOWAITA
Definition d_a_midna.h:167
@ ANM_MGNTHROWRED
Definition d_a_midna.h:201
@ ANM_SWAITD
Definition d_a_midna.h:181
@ ANM_S_MOVE
Definition d_a_midna.h:185
@ ANM_LEADST
Definition d_a_midna.h:164
@ ANM_PANIC
Definition d_a_midna.h:162
@ ANM_GRAB
Definition d_a_midna.h:194
@ ANM_HIT
Definition d_a_midna.h:182
@ ANM_FTALKC
Definition d_a_midna.h:204
@ ANM_HAIR
Definition d_a_midna.h:206
@ ANM_RETURN
Definition d_a_midna.h:186
@ ANM_WAITB
Definition d_a_midna.h:161
@ ANM_MGNTHROWRST
Definition d_a_midna.h:200
@ ANM_MGNTHROWLST
Definition d_a_midna.h:198
@ ANM_WAITA
Definition d_a_midna.h:158
@ ANM_ROPEFALTER
Definition d_a_midna.h:190
@ ANM_SWAITA
Definition d_a_midna.h:184
@ ANM_S_RETURN
Definition d_a_midna.h:176
@ ANM_WLSWIMDIE
Definition d_a_midna.h:173
@ ANM_LOOKABOUT
Definition d_a_midna.h:183
@ ANM_FTALKA
Definition d_a_midna.h:202
@ ANM_CLINGST
Definition d_a_midna.h:169
@ ANM_MGNTHROWLED
Definition d_a_midna.h:199
@ ANM_S_APPEARBL
Definition d_a_midna.h:175
@ ANM_S_WAITS
Definition d_a_midna.h:208
@ ANM_NONE
Definition d_a_midna.h:212
@ ANM_ENTRANCE
Definition d_a_midna.h:180
@ ANM_LEADSWAIT
Definition d_a_midna.h:168
@ ANM_GRABED
Definition d_a_midna.h:195
@ ANM_CLING
Definition d_a_midna.h:159
@ ANM_WAITD
Definition d_a_midna.h:187
@ ANM_S_APPEAR
Definition d_a_midna.h:174
@ ANM_LEADED
Definition d_a_midna.h:165
@ ANM_TALKA
Definition d_a_midna.h:163
@ ANM_DOOROPC
Definition d_a_midna.h:192
@ ANM_CLINGD
Definition d_a_midna.h:188
@ ANM_WARPIN
Definition d_a_midna.h:178
@ ANM_FTALKB
Definition d_a_midna.h:203
@ ANM_DOOROPD
Definition d_a_midna.h:193
@ ANM_ROPEWAIT
Definition d_a_midna.h:189
@ ANM_LEADWAIT
Definition d_a_midna.h:166
@ ANM_S_PACKAWAY
Definition d_a_midna.h:209
@ ANM_WLDIEA
Definition d_a_midna.h:172
@ ANM_S_HOLE
Definition d_a_midna.h:177
@ ANM_GRABST
Definition d_a_midna.h:210
@ ANM_MGNCATCHED
Definition d_a_midna.h:197
@ ANM_WAITTP
Definition d_a_midna.h:179
@ ANM_CLINGB
Definition d_a_midna.h:160
@ ANM_MGNCATCHST
Definition d_a_midna.h:196
@ ANM_SWAITB
Definition d_a_midna.h:170
@ ANM_MAX
Definition d_a_midna.h:211
@ ANM_S_TAKES
Definition d_a_midna.h:207
f32 mDemoSpeed
Definition d_a_midna.h:477
J3DModel * mpShadowModel
Definition d_a_midna.h:379
static daMidna_anmData_s const m_anmDataTable[53]
Definition d_a_midna.h:185
J3DModel * mpDemoFCTongueBmd
Definition d_a_midna.h:419
u16 mLeftHandShapeIdx
Definition d_a_midna.h:457
static bool i_checkMidnaTired()
Definition d_a_midna.h:360
u32 checkEndResetStateFlg0(daMidna_ERFLG0 flag) const
Definition d_a_midna.h:273
BOOL checkNoMaskDraw() const
Definition d_a_midna.h:350
void setFaceBtp(u16, int)
Definition d_a_midna.cpp:1655
mDoExt_invisibleModel mHandsInvModel
Definition d_a_midna.h:388
J3DAnmTexPattern * mpFaceBtp
Definition d_a_midna.h:384
u32 mParticleKey2
Definition d_a_midna.h:469
int initInvModel(u16, J3DModel **, mDoExt_invisibleModel *, u32)
Definition d_a_midna.cpp:321
void offStateFlg0(daMidna_FLG0 i_flag)
Definition d_a_midna.h:270
u8 mMotionNum
Definition d_a_midna.h:439
u8 field_0x852[8]
Definition d_a_midna.h:449
BOOL checkNpcNear()
Definition d_a_midna.h:283
daMidna_func mpFunc
Definition d_a_midna.h:488
J3DModel * mpDemoHRTmpBmd
Definition d_a_midna.h:427
J3DModel * mpDemoBDMaskBmd
Definition d_a_midna.h:410
void setBodyPartPos()
Definition d_a_midna.cpp:1057
int mStaffID
Definition d_a_midna.h:463
daMidna_FLG1
Definition d_a_midna.h:141
@ FLG1_NO_MASK_DRAW
Definition d_a_midna.h:147
@ FLG1_SHADOW_MODEL_DRAW_DEMO_FORCE
Definition d_a_midna.h:153
@ FLG1_SHADOW_NO_DRAW
Definition d_a_midna.h:142
@ FLG1_UNK_1
Definition d_a_midna.h:154
@ FLG1_UNK_10
Definition d_a_midna.h:150
@ FLG1_FORCE_NORMAL_COL
Definition d_a_midna.h:151
@ FLG1_UNK_40
Definition d_a_midna.h:148
@ FLG1_FORCE_TIRED_COL
Definition d_a_midna.h:152
@ FLG1_UNK_200
Definition d_a_midna.h:145
@ FLG1_UNK_400
Definition d_a_midna.h:144
@ FLG1_SIDE_WARP
Definition d_a_midna.h:146
@ FLG1_UNK_20
Definition d_a_midna.h:149
@ FLG1_UNK_800
Definition d_a_midna.h:143
J3DModel * mpShadowMaskBmd
Definition d_a_midna.h:404
s16 mHairAngleY[5]
Definition d_a_midna.h:452
int changeFaceBck()
Definition d_a_midna.cpp:284
u32 mShadowKey
Definition d_a_midna.h:467
void setRightHandShape(u16)
Definition d_a_midna.cpp:1719
daPy_anmHeap_c mBckHeap[3]
Definition d_a_midna.h:390
int modelCallBack(int)
Definition d_a_midna.cpp:242
J3DGXColor field_0x6ec
Definition d_a_midna.h:433
void setRoomInfo()
Definition d_a_midna.cpp:1043
BOOL checkAppear()
Definition d_a_midna.cpp:1085
void onEndResetStateFlg0(daMidna_ERFLG0 pFlg)
Definition d_a_midna.h:268
int checkMetamorphoseEnableBase()
Definition d_a_midna.cpp:2949
s16 field_0x87e
Definition d_a_midna.h:460
daPy_anmHeap_c mBtpHeap
Definition d_a_midna.h:391
void checkMidnaPosState()
Definition d_a_midna.cpp:1098
daMidna_McaMorfCB1_c mMorfCB
Definition d_a_midna.h:381
daKago_c * mpKago
Definition d_a_midna.h:487
BOOL checkDemoPortalWarpWait() const
Definition d_a_midna.h:354
u32 mSoundID
Definition d_a_midna.h:472
void endHighModel()
Definition d_a_midna.cpp:1395
J3DAnmTextureSRTKey * mpHandsMoyaBtk
Definition d_a_midna.h:395
u8 mFaceNum
Definition d_a_midna.h:440
void changeDemoMode(u32 mode)
Definition d_a_midna.h:280
void onTagNoHairLead()
Definition d_a_midna.h:311
cXyz mHeadCenterPos
Definition d_a_midna.h:481
int initDemoModel(J3DModel **, char const *, u32)
Definition d_a_midna.cpp:336
f32 mVoiceFrame
Definition d_a_midna.h:473
void resetRatBody()
Definition d_a_midna.h:364
void onNoServiceWait()
BOOL setDemoAnm()
Definition d_a_midna.cpp:1414
BOOL setFaceAnime(u16, u16)
Definition d_a_midna.cpp:1375
request_of_phase_process_class mPhase
Definition d_a_midna.h:377
J3DShape * mpShadowRightHandShape
Definition d_a_midna.h:417
mDoExt_bckAnm * mpDemoHRTmpBck
Definition d_a_midna.h:428
void setFaceBtk(u16, int)
Definition d_a_midna.cpp:1674
void setMidnaNoDrawFlg()
Definition d_a_midna.cpp:2927
BOOL checkNpcFar()
Definition d_a_midna.h:284
void allAnimePlay()
Definition d_a_midna.cpp:627
u32 checkStateFlg1(daMidna_FLG1 flag) const
Definition d_a_midna.h:275
J3DModel * mpDemoFCBlendBmd
Definition d_a_midna.h:418
mDoExt_bckAnm * mpDemoFCTmpBck
Definition d_a_midna.h:421
void setNeckAngle()
Definition d_a_midna.cpp:2448
J3DModel * mpDemoBDHandsBmd
Definition d_a_midna.h:411
BOOL checkNoDrawState()
Definition d_a_midna.cpp:2960
J3DAnmTextureSRTKey * mpFaceBtk
Definition d_a_midna.h:385
J3DModel * mpShadowHandsBmd
Definition d_a_midna.h:406
J3DAnmTevRegKey * mpHairhandAppearBrk
Definition d_a_midna.h:399
BOOL checkPortalObjCall()
Definition d_a_midna.h:281
csXyz mNeckAngle
Definition d_a_midna.h:461
J3DShape * mpRightHandShape
Definition d_a_midna.h:415
void setForceNeckAimPos(const cXyz &i_pos)
Definition d_a_midna.h:291
void onForcePanic()
Definition d_a_midna.h:215
bool checkShadowReturnEnd() const
Definition d_a_midna.h:332
void setAnm()
Definition d_a_midna.cpp:1781
u8 field_0x84e
Definition d_a_midna.h:445
void onTagWaitPosWarp(const cXyz *param_0)
Definition d_a_midna.h:296
f32 field_0x8d4
Definition d_a_midna.h:476
u8 field_0x851
Definition d_a_midna.h:448
int checkMetamorphoseEnable()
Definition d_a_midna.h:288
dMsgFlow_c mMsgFlow
Definition d_a_midna.h:437
u8 field_0x84a
Definition d_a_midna.h:441
BOOL checkWolfNoPos() const
Definition d_a_midna.h:287
J3DAnmTextureSRTKey * mpDemoFCTongueBtk
Definition d_a_midna.h:420
mDoExt_blkAnm * mpDemoFCTmpBlk
Definition d_a_midna.h:424
u8 field_0x850
Definition d_a_midna.h:447
BOOL checkShadowNoDraw() const
Definition d_a_midna.h:346
cXyz field_0x9a0
Definition d_a_midna.h:483
bool checkReturnAnime() const
Definition d_a_midna.h:320
u32 mStateFlg0
Definition d_a_midna.h:464
~daMidna_c()
Definition d_a_midna.cpp:3397
void changeOriginalDemo()
Definition d_a_midna.h:279
BOOL checkNoHairScale() const
Definition d_a_midna.h:282
bool checkDemoTypeNone() const
Definition d_a_midna.h:278
s16 field_0x876
Definition d_a_midna.h:456
int changeUpperBck()
Definition d_a_midna.cpp:276
void initMidnaModel()
Definition d_a_midna.cpp:2829
J3DModel * mpMaskBmd
Definition d_a_midna.h:403
void setHairAngle()
Definition d_a_midna.cpp:2517
J3DAnmCluster * mpDemoFCTmpCluster
Definition d_a_midna.h:423
u32 mStateFlg1
Definition d_a_midna.h:465
J3DAnmTevRegKey * mpMaskAppearBrk
Definition d_a_midna.h:398
dBgS_LinkLinChk mLinChk
Definition d_a_midna.h:438
bool checkPortalObjRide() const
Definition d_a_midna.h:342
u32 mParticleKey1
Definition d_a_midna.h:468
f32 mEyeMoveX
Definition d_a_midna.h:474
BOOL checkNoDraw() const
Definition d_a_midna.h:285
J3DAnmTevRegKey * mpDemoFCBlendBrk
Definition d_a_midna.h:402
void onStateFlg1(daMidna_FLG1 i_flag)
Definition d_a_midna.h:271
J3DShape * mpShadowLeftHandShape
Definition d_a_midna.h:416
BOOL setUpperAnime(u16, u16)
Definition d_a_midna.cpp:1344
J3DDeformData * mpDemoFCTmpBls
Definition d_a_midna.h:422
int execute()
Definition d_a_midna.cpp:3042
static BOOL checkMidnaRealBody()
Definition d_a_midna.h:356
cPhs__Step create()
Definition d_a_midna.cpp:504
u32 checkForceNormalColor() const
bool checkShadowModelDrawSmode() const
Definition d_a_midna.h:324
void setFaceNum(int num)
Definition d_a_midna.h:276
daPy_anmHeap_c mBtkHeap
Definition d_a_midna.h:392
mDoExt_bckAnm mFaceBck
Definition d_a_midna.h:383
cXyz mHairDir[5]
Definition d_a_midna.h:480
void offStateFlg1(daMidna_FLG1 i_flag)
Definition d_a_midna.h:272
daMidna_matAnm_c * mpEyeMatAnm[2]
Definition d_a_midna.h:434
void onTagWaitPos(const cXyz *param_0)
Definition d_a_midna.h:302
mDoExt_McaMorfSO * mpMorf
Definition d_a_midna.h:380
BOOL checkHairOnlyAnime(int) const
Definition d_a_midna.cpp:1746
J3DGXColor field_0x6e8
Definition d_a_midna.h:432
void initHairAngle()
Definition d_a_midna.cpp:2497
void setBodyPartMatrix()
Definition d_a_midna.cpp:854
u8 field_0x886[6]
Definition d_a_midna.h:462
bool checkFlyWaitAnime()
Definition d_a_midna.h:366
J3DModel * mpModel
Definition d_a_midna.h:378
daMidna_ERFLG0
Definition d_a_midna.h:95
@ ERFLG0_UNK_2
Definition d_a_midna.h:102
@ ERFLG0_UNK_40
Definition d_a_midna.h:98
@ ERFLG0_NO_SERVICE_WAIT
Definition d_a_midna.h:97
@ ERFLG0_UNK_20
Definition d_a_midna.h:99
@ ERFLG0_UNK_100
Definition d_a_midna.h:96
@ ERFLG0_FORCE_PANIC
Definition d_a_midna.h:101
@ ERFLG0_FORCE_MORF_CANCEL
Definition d_a_midna.h:100
@ ERFLG0_UNK_1
Definition d_a_midna.h:103
BOOL setUpperAnimeAndSe(daMidna_ANM)
Definition d_a_midna.cpp:1364
u8 mEyeMoveTimer
Definition d_a_midna.h:443
J3DModel * mpGokouBmd
Definition d_a_midna.h:413
void setMatrix()
Definition d_a_midna.cpp:743
J3DModel * mpDemoBDTmpBmd
Definition d_a_midna.h:409
f32 mEyeMoveY
Definition d_a_midna.h:475
s16 getNeckAimAngle(cXyz const *, s16 *, s16 *, s16 *, s16 *)
Definition d_a_midna.cpp:2312
daMidna_FLG0
Definition d_a_midna.h:106
@ FLG0_PORTAL_OBJ_CALL
Definition d_a_midna.h:111
@ FLG0_UNK_4
Definition d_a_midna.h:136
@ FLG0_NO_INPUT
Definition d_a_midna.h:124
@ FLG0_UNK_2
Definition d_a_midna.h:137
@ FLG0_UNK_400000
Definition d_a_midna.h:116
@ FLG0_UNK_80
Definition d_a_midna.h:131
@ FLG0_NPC_FAR
Definition d_a_midna.h:120
@ FLG0_UNK_2000000
Definition d_a_midna.h:113
@ FLG0_UNK_100
Definition d_a_midna.h:130
@ FLG0_UNK_20
Definition d_a_midna.h:133
@ FLG0_UNK_200000
Definition d_a_midna.h:117
@ FLG0_UNK_8000
Definition d_a_midna.h:123
@ FLG0_UNK_80000
Definition d_a_midna.h:119
@ FLG0_WOLF_NO_POS
Definition d_a_midna.h:127
@ FLG0_NPC_NEAR
Definition d_a_midna.h:118
@ FLG0_NO_HAIR_SCALE
Definition d_a_midna.h:109
@ FLG0_UNK_4000000
Definition d_a_midna.h:112
@ FLG0_UNK_10000000
Definition d_a_midna.h:110
@ FLG0_UNK_1000
Definition d_a_midna.h:126
@ FLG0_UNK_1000000
Definition d_a_midna.h:114
@ FLG0_UNK_200
Definition d_a_midna.h:129
@ FLG0_UNK_800000
Definition d_a_midna.h:115
@ FLG0_TAG_WAIT
Definition d_a_midna.h:128
@ FLG0_UNK_10
Definition d_a_midna.h:134
@ FLG0_NO_DRAW
Definition d_a_midna.h:125
@ FLG0_FORCE_NECK_AIM
Definition d_a_midna.h:121
@ FLG0_UNK_8
Definition d_a_midna.h:135
@ FLG0_NO_HAIR_LEAD
Definition d_a_midna.h:107
@ FLG0_UNK_1
Definition d_a_midna.h:138
@ FLG0_UNK_40000000
Definition d_a_midna.h:108
@ FLG0_UNK_10000
Definition d_a_midna.h:122
@ FLG0_UNK_40
Definition d_a_midna.h:132
Definition d_a_midna.h:46
static param const m
Definition d_a_midna.h:103
Definition d_a_midna.h:15
f32 mNowOffsetY
Definition d_a_midna.h:38
static u8 sMorfFrame
Definition d_a_midna.h:41
void setNowOffsetY(f32 offsetY)
Definition d_a_midna.h:26
static void setMorfFrame(u8 frame)
Definition d_a_midna.h:31
f32 mNowOffsetX
Definition d_a_midna.h:37
static u8 getMorfFrame()
Definition d_a_midna.h:33
static bool getEyeMoveFlg()
Definition d_a_midna.h:28
f32 mOldTransX
Definition d_a_midna.h:35
void init()
Definition d_a_midna.cpp:114
static void onEyeMoveFlg()
Definition d_a_midna.h:30
static void decMorfFrame()
Definition d_a_midna.h:32
void setNowOffsetX(f32 offsetX)
Definition d_a_midna.h:25
~daMidna_matAnm_c()
Definition d_a_midna.h:19
daMidna_matAnm_c()
Definition d_a_midna.h:21
static void offEyeMoveFlg()
Definition d_a_midna.h:29
static bool sEyeMoveFlg
Definition d_a_midna.h:40
void calc(J3DMaterial *) const
Definition d_a_midna.cpp:124
f32 * getNowOffsetYP()
Definition d_a_midna.h:24
f32 mOldTransY
Definition d_a_midna.h:36
f32 * getNowOffsetXP()
Definition d_a_midna.h:23
Definition d_a_player.h:51
u16 getIdx() const
Definition d_a_player.h:72
Definition m_Do_ext.h:193
int(daMidna_c::* daMidna_func)()
Definition d_a_midna.h:83
STATIC_ASSERT(sizeof(daMidna_matAnm_c)==0x104)
bool dKy_darkworld_check()
Definition d_kankyo.cpp:4460
static volatile BOOL flag
Definition dspproc.cpp:20
f32(* MtxP)[4]
Definition mtx.h:18
Definition d_a_obj_sekizoa.cpp:45
Definition d_a_hozelda.cpp:36
Definition d_a_hozelda.cpp:45
Definition d_a_hozelda.cpp:54
Definition J3DMatBlock.h:12
Definition J3DMatBlock.h:30
Definition d_a_hozelda.cpp:229
Definition d_a_hozelda.cpp:93
Definition d_a_ep.cpp:51
Definition d_a_ep.cpp:155
MtxP getAnmMtx(int jointNo)
Definition J3DModel.h:101
Definition d_a_hozelda.cpp:169
Definition d_a_hozelda.cpp:163
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:66
Definition d_a_obj_sekizoa.cpp:318
Definition d_a_midna.h:70
u16 mResID
Definition d_a_midna.h:71
u16 mTexID
Definition d_a_midna.h:72
f32 mSoundFrame
Definition d_a_midna.h:73
u32 mSoundID
Definition d_a_midna.h:74
Definition d_a_midna.h:48
f32 field_0x1c
Definition d_a_midna.h:52
f32 field_0x18
Definition d_a_midna.h:51
f32 mScale
Definition d_a_midna.h:50
u8 field_0x00[0x14]
Definition d_a_midna.h:49
Definition d_a_midna.h:77
u16 mBtpID
Definition d_a_midna.h:78
u16 mBtkID
Definition d_a_midna.h:79
Definition d_a_ep.cpp:19
Definition d_a_obj_sekizoa.cpp:62
Definition d_a_npc_fguard.cpp:23
Definition d_a_hozelda.cpp:56
Definition d_a_obj_sekizoa.cpp:38
BOOL isStop()
Definition m_Do_ext.h:282
Definition d_a_hozelda.cpp:14
int BOOL
Definition types.h:27
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8