forked from zeldaret/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathd_a_npc_shoe.h
More file actions
157 lines (140 loc) · 4.66 KB
/
d_a_npc_shoe.h
File metadata and controls
157 lines (140 loc) · 4.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#ifndef D_A_NPC_SHOE_H
#define D_A_NPC_SHOE_H
#include "d/actor/d_a_npc.h"
/**
* @ingroup actors-npcs
* @class daNpcShoe_c
* @brief Soal
*
* @details
*
*/
class daNpcShoe_c : public daNpcF_c {
public:
typedef bool (daNpcShoe_c::*actionFunc)(void*);
typedef BOOL (daNpcShoe_c::*EventFn)(int);
enum Animation {
/* 0x01 */ ANM_M_SITWAIT_A,
/* 0x02 */ ANM_M_SITTALK_A,
/* 0x03 */ ANM_M_SITTALK_A_B,
/* 0x04 */ ANM_SHOE_TALK_A,
/* 0x05 */ ANM_M_SIT_TO_WOLF_A
};
enum Motion {
/* 0x01 */ MOT_SITWAIT_A,
/* 0x02 */ MOT_SITTALK_A,
/* 0x03 */ MOT_SITTALK_A_B,
/* 0x04 */ MOT_SHOE_TALK_A,
/* 0x05 */ MOT_SIT_TO_WOLF_A,
};
/* 80AE794C */ daNpcShoe_c();
/* 80AE7B60 */ ~daNpcShoe_c();
/* 80AE7D48 */ cPhs__Step Create();
/* 80AE7FD8 */ BOOL CreateHeap();
/* 80AE81E8 */ int Delete();
/* 80AE821C */ int Execute();
/* 80AE8308 */ int Draw();
/* 80AE840C */ bool ctrlJoint(J3DJoint*, J3DModel*);
/* 80AE8598 */ static int createHeapCallBack(fopAc_ac_c*);
/* 80AE85B8 */ static BOOL ctrlJointCallBack(J3DJoint*, int);
/* 80AE8604 */ void setMotion(int, f32, BOOL);
/* 80AE864C */ void reset();
/* 80AE895C */ inline int setAction(actionFunc);
/* 80AE8A04 */ bool wait(void*);
/* 80AE8E24 */ bool fear(void*);
/* 80AE8ED4 */ bool talk(void*);
/* 80AE9094 */ bool demo(void*);
/* 80AE92E8 */ void setParam();
/* 80AE93A0 */ BOOL main();
/* 80AE9624 */ void setAttnPos();
/* 80AE9820 */ void lookat();
/* 80AE9A00 */ void setMotionAnm(int, f32);
/* 80AE9AD0 */ BOOL drawDbgInfo();
/* 80AEA340 */ void adjustShapeAngle();
s16 getMessageNo() { return fopAcM_GetParam(this) >> 0x10; }
int getTime() { return getTimeMinute() + getTimeHour() * 60; }
int getTimeHour() {
if (dKy_darkworld_check() != 0) {
return dKy_getDarktime_hour();
} else {
return dKy_getdaytime_hour();
}
}
int getTimeMinute() {
if (dKy_darkworld_check() != 0) {
return dKy_getDarktime_minute();
} else {
return dKy_getdaytime_minute();
}
}
int getStartTime() { return fopAcM_GetParam(this) & 0xff; }
int getEndTime() { return (fopAcM_GetParam(this) >> 8) & 0xff; }
inline void setLookMode(int i_lookMode);
inline bool chkFindPlayer();
inline void playMotion();
static EventFn mEvtSeqList[1];
private:
/* 0xB48 */ J3DModel* mpModel1;
/* 0xB4C */ J3DModel* mpModel2;
/* 0xB50 */ Z2CreatureCitizen mCreature;
/* 0xBF4 */ u8 field_0xbf4[0xbf8 - 0xbf4];
/* 0xBF8 */ daNpcF_Lookat_c mLookat;
/* 0xC94 */ daNpcF_ActorMngr_c mActorMngr[1];
/* 0xC9C */ u8 field_0xc9c[0xca0 - 0xc9c];
/* 0xCA0 */ dCcD_Cyl mCcCyl;
/* 0xDDC */ actionFunc mpActionFn;
/* 0xDE8 */ request_of_phase_process_class mPhases[3];
/* 0xE00 */ u32 field_0xe00;
/* 0xE04 */ u32 field_0xe04;
/* 0xE08 */ u32 field_0xe08;
/* 0xE0C */ u32 field_0xe0c;
/* 0xE10 */ s16 mLookMode;
/* 0xE12 */ u16 mStartTime;
/* 0xE14 */ u16 mEndTime;
/* 0xE16 */ u16 field_0xe16;
/* 0xE18 */ u16 mMode;
/* 0xE1A */ u8 field_0xe1a;
/* 0xE1B */ u8 field_0xe1b; // Probably isDaytime or isNighttime
};
STATIC_ASSERT(sizeof(daNpcShoe_c) == 0xe1c);
class daNpcShoe_Param_c {
public:
/* 8095D5D4 */ virtual ~daNpcShoe_Param_c() {}
struct param {
/* 0x00 */ f32 mAttnOffsetY;
/* 0x04 */ f32 mGravity;
/* 0x08 */ f32 mScale;
/* 0x0C */ f32 mShadowDepth;
/* 0x10 */ f32 mCcWeight;
/* 0x14 */ f32 mCylH;
/* 0x18 */ f32 mWallH;
/* 0x1C */ f32 mWallR;
/* 0x20 */ f32 mBodyUpAngle;
/* 0x24 */ f32 mBodyDownAngle;
/* 0x28 */ f32 mBodyLeftAngle;
/* 0x2C */ f32 mBodyRightAngle;
/* 0x30 */ f32 mHeadUpAngle;
/* 0x34 */ f32 mHeadDownAngle;
/* 0x38 */ f32 mHeadLeftAngle;
/* 0x3C */ f32 mHeadRightAngle;
/* 0x40 */ f32 mNeckAngleScl;
/* 0x44 */ f32 mMorfFrames;
/* 0x48 */ s16 mSpeakDistIdx;
/* 0x4A */ s16 mSpeakAngleIdx;
/* 0x4C */ s16 mTalkDistIdx;
/* 0x4E */ s16 mTalkAngleIdx;
/* 0x50 */ f32 mAttnFovY;
/* 0x54 */ f32 mAttnRadius;
/* 0x58 */ f32 mAttnUpperY;
/* 0x5C */ f32 mAttnLowerY;
/* 0x60 */ s16 field_0x60;
/* 0x62 */ s16 mDamageTimer;
/* 0x64 */ s16 mTestExpression;
/* 0x66 */ s16 mTestMotion;
/* 0x68 */ s16 mTestLookMode;
/* 0x6A */ bool mTest;
};
static param const m;
};
STATIC_ASSERT(sizeof(daNpcShoe_Param_c::param) == 0x6C);
#endif /* D_A_NPC_SHOE_H */