Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_flower.h
Go to the documentation of this file.
1#ifndef D_FLOWER_H
2#define D_FLOWER_H
3
6
7class cCcD_Obj;
9class fopAc_ac_c;
10
12public:
13 void WorkCo(fopAc_ac_c*, u32, int);
14 void deleteAnm();
17 void hitCheck(fopAc_ac_c*, int);
20
21 /* 0x00 */ u8 m_state;
22 /* 0x01 */ s8 field_0x01;
23 /* 0x02 */ s8 m_tableNo;
24 /* 0x03 */ u8 field_0x03;
25 /* 0x04 */ s16 field_0x04;
26 /* 0x08 */ cXyz m_pos;
27 /* 0x14 */ Mtx m_modelMtx;
29};
30
32public:
34 void deleteData();
36
38
40};
41
43public:
45
46 /* 0x00 */ u8 m_state;
47 /* 0x02 */ s16 m_angY;
48 /* 0x04 */ s16 m_angX;
49 /* 0x08 */ Mtx m_animMtx;
50};
51
53public:
55 void calc();
56 void update();
57 void setData(dFlower_data_c*, int, s8, cXyz&, int, s8, s16);
59 void deleteRoom(int);
60 int newAnm();
61 void setAnm(int, s16);
62
63 virtual void draw();
64 virtual ~dFlower_packet_c();
65
66 typedef void (dFlower_packet_c::*deleteFunc)(int);
67
69 JUT_ASSERT(174, m_deleteRoom != NULL);
70 return m_deleteRoom;
71 }
72
74
75 dFlower_anm_c* getAnm(int i_idx) { return &m_anm[i_idx]; }
76 dFlower_anm_c* getAnm() { return &m_anm[0]; }
78
79 void deleteAnm(int i_idx) { m_anm[i_idx].m_state = 0; }
80
81 void setPlayerCutFlg(int i_flag) { m_playerCutFlg = i_flag != 0; }
82 void setPlayerSwordAngY(s16 i_angY) { m_playerSwordAngY = i_angY; }
84 void setPlayerSwordTop(cXyz& i_pos) { m_playerSwordTop = i_pos; }
86
87 /* 0x00010 */ u16 m_dataNum;
88 /* 0x00014 */ dFlower_data_c m_data[1000];
89 /* 0x11954 */ dFlower_anm_c m_anm[72];
90 /* 0x12914 */ dFlower_room_c m_room[64];
91 /* 0x12A14 */ u8 m_playerCutFlg;
92 /* 0x12A16 */ s16 m_playerSwordAngY;
94 /* 0x12A1C */ cXyz m_playerSwordTop;
95 /* 0x12A28 */ Vec* mp_pos;
96 /* 0x12A2C */ GXColor* mp_colors;
97 /* 0x12A30 */ Vec* mp_texCoords;
98 /* 0x12A34 */ u8* mp_mat2DL;
99 /* 0x12A38 */ u32 m_mat2DL_size;
100 /* 0x12A3C */ u8* mp_mat2Light4DL;
102 /* 0x12A44 */ u8* mp_Jhana01DL;
103 /* 0x12A48 */ u32 m_Jhana01DL_size;
104 /* 0x12A4C */ u8* mp_Jhana01_cDL;
105 /* 0x12A50 */ u32 m_Jhana01_cDL_size;
106}; // Size: 0x12A54
107
108#endif /* D_FLOWER_H */
Definition J3DPacket.h:170
Definition c_cc_d.h:442
Definition d_cc_mass_s.h:30
Definition d_flower.h:42
Mtx m_animMtx
Definition d_flower.h:49
s16 m_angX
Definition d_flower.h:48
s16 m_angY
Definition d_flower.h:47
u8 m_state
Definition d_flower.h:46
Definition d_flower.h:11
u8 m_state
Definition d_flower.h:21
void WorkAt_NoCutAnim(fopAc_ac_c *, u32, int, dCcMassS_HitInf *, cCcD_Obj *)
s8 field_0x01
Definition d_flower.h:22
dFlower_data_c * mp_next
Definition d_flower.h:28
s16 field_0x04
Definition d_flower.h:25
cXyz m_pos
Definition d_flower.h:26
u8 field_0x03
Definition d_flower.h:24
void WorkAt(fopAc_ac_c *, u32, int, dCcMassS_HitInf *)
s8 m_tableNo
Definition d_flower.h:23
void WorkCo(fopAc_ac_c *, u32, int)
void hitCheck(fopAc_ac_c *, int)
Mtx m_modelMtx
Definition d_flower.h:27
Definition d_flower.h:52
void deleteRoom(int)
static deleteFunc getDeleteRoom()
Definition d_flower.h:68
s16 m_playerSwordMoveAngY
Definition d_flower.h:93
Vec * mp_pos
Definition d_flower.h:95
u8 * mp_Jhana01_cDL
Definition d_flower.h:104
void setPlayerSwordAngY(s16 i_angY)
Definition d_flower.h:82
dFlower_data_c * newData(s8, cXyz &, int, s8, s16)
dFlower_anm_c m_anm[72]
Definition d_flower.h:89
u32 m_mat2Light4DL_size
Definition d_flower.h:101
void setData(dFlower_data_c *, int, s8, cXyz &, int, s8, s16)
void deleteAnm(int i_idx)
Definition d_flower.h:79
u8 * mp_Jhana01DL
Definition d_flower.h:102
dFlower_room_c m_room[64]
Definition d_flower.h:90
void setPlayerSwordTop(cXyz &i_pos)
Definition d_flower.h:84
dFlower_data_c m_data[1000]
Definition d_flower.h:88
u32 m_Jhana01DL_size
Definition d_flower.h:103
u32 m_Jhana01_cDL_size
Definition d_flower.h:105
Vec * mp_texCoords
Definition d_flower.h:97
void setPlayerCutFlg(int i_flag)
Definition d_flower.h:81
u8 * mp_mat2Light4DL
Definition d_flower.h:100
virtual ~dFlower_packet_c()
Definition d_a_grass.cpp:123
dFlower_data_c * getData()
Definition d_flower.h:77
void setPlayerSwordMoveAngY(s16 i_angY)
Definition d_flower.h:83
u32 m_mat2DL_size
Definition d_flower.h:99
static deleteFunc m_deleteRoom
Definition d_flower.h:73
dFlower_anm_c * getAnm()
Definition d_flower.h:76
u8 * mp_mat2DL
Definition d_flower.h:98
cXyz & getPlayerSwordTop()
Definition d_flower.h:85
u8 m_playerCutFlg
Definition d_flower.h:91
void setAnm(int, s16)
void(dFlower_packet_c::*) deleteFunc(int)
Definition d_flower.h:66
GXColor * mp_colors
Definition d_flower.h:96
virtual void draw()
cXyz m_playerSwordTop
Definition d_flower.h:94
dFlower_anm_c * getAnm(int i_idx)
Definition d_flower.h:75
u16 m_dataNum
Definition d_flower.h:87
s16 m_playerSwordAngY
Definition d_flower.h:92
Definition d_flower.h:31
dFlower_data_c * getData()
Definition d_flower.h:37
dFlower_data_c * mp_data
Definition d_flower.h:39
void newData(dFlower_data_c *)
Definition f_op_actor.h:243
f32 Mtx[3][4]
Definition mtx.h:25
signed char s8
Definition types.h:7
unsigned long u32
Definition types.h:12
signed short int s16
Definition types.h:9
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
Definition mtx.h:13
Definition GXStruct.h:30
Definition c_xyz.h:7