Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_map_path_fmap.h
Go to the documentation of this file.
1#ifndef D_MAP_D_MAP_PATH_FMAP_H
2#define D_MAP_D_MAP_PATH_FMAP_H
3
4#include "d/d_map_path.h"
5#include "d/d_tresure.h"
6#include "d/d_stage.h"
7
9public:
14
15 /* 8003EB70 */ ~fmpTresTypeGroupData_c() {
16 if (mpNext != NULL) {
17 delete mpNext;
18 }
19 }
20
26
27 /* 0x0 */ const dTres_c::data_s* mpTresData;
29 /* 0x8 */ u8 mTypeGroupNo;
30}; // Size: 0xC
31
43
55
83
86public:
87 /* 8003D818 */ bool isArrival();
88 /* 8003D868 */ void buildTresTypeGroup(int, int, int);
89 /* 8003D92C */ void buildFmapRoomData(int, int, f32, f32, f32, f32);
90
99
105
113 int getRoomNo() { return m_roomNo; }
115
120 /* 0x10 */ u8 m_roomNo;
121};
122
134
136public:
137 /* 8003D95C */ bool isArrival();
138 /* 8003D9D8 */ int buildFmapStageData(int, f32, f32);
139
144 m_stageMinX = 0.0f;
145 m_stageMinZ = 0.0f;
146 m_stageMaxX = 0.0f;
147 m_stageMaxZ = 0.0f;
148 m_offsetX = 0.0f;
149 m_offsetZ = 0.0f;
150 for (int i = 0; i < 8; i++) {
151 name[i] = '\0';
152 }
153 }
154
159 char* getStageName() { return name; }
175
176 void setName(char* i_name) {
177 for (int i = 0; i < 8; i++) {
178 name[i] = i_name[i];
179 }
180 }
181
182 /* 0x00 */ char name[8];
186 /* 0x14 */ f32 m_offsetX;
187 /* 0x18 */ f32 m_offsetZ;
188 /* 0x1C */ f32 m_stageMinX;
189 /* 0x20 */ f32 m_stageMinZ;
190 /* 0x24 */ f32 m_stageMaxX;
191 /* 0x28 */ f32 m_stageMaxZ;
192 /* 0x2C */ int m_stageCntNo;
193};
194
196public:
198 /* 8003DB70 */ int getPointStagePathInnerNo(f32, f32, int, int*, int*);
199 /* 8003DEE0 */ int buildFmapRegionData(int);
200
214
218
222
231 int getRegionNo() { return mRegionNo; }
233
236 /* 0x08 */ f32 mRegionOffsetX;
237 /* 0x0C */ f32 mRegionOffsetZ;
238 /* 0x10 */ f32 mRegionMinX;
239 /* 0x14 */ f32 mRegionMaxX;
240 /* 0x18 */ f32 mRegionMinZ;
241 /* 0x1C */ f32 mRegionMaxZ;
242 /* 0x20 */ int mRegionNo;
243};
244
263
265public:
266 /* 8003E114 */ bool init(dMenu_Fmap_region_data_c*, dMenu_Fmap_stage_data_c*, u8, int, int);
267 /* 8003E1C0 */ bool getFirstData();
268 /* 8003E2BC */ bool getData();
269 /* 8003E350 */ void getFirstRoomData();
270 /* 8003E37C */ bool getNextRoomData();
271 /* 8003E3A4 */ bool getNextStageData();
272 /* 8003E3D8 */ bool getNextData();
273 /* 8003E490 */ bool nextData();
274 /* 8003E510 */ bool getValidData();
275
276 /* 0x00 */ int mStageNo;
277 /* 0x04 */ int mStayStageNo;
278 /* 0x08 */ int mStayRoomNo;
279 /* 0x0C */ int mSaveTbl;
287 /* 0x2C */ const dTres_c::data_s* mpTresData;
288 /* 0x30 */ u8 mTypeGroupNo;
289 /* 0x31 */ u8 mType;
290};
291
293public:
294 /* 8003E578 */ bool getPosition(int*, int*, f32*, f32*, dTres_c::data_s const**);
295 /* 8003E6E8 */ virtual bool isDrawDisp();
296};
297
298#endif /* D_MAP_D_MAP_PATH_FMAP_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition d_map_path_fmap.h:292
virtual bool isDrawDisp()
Definition d_map_path_fmap.cpp:571
bool getPosition(int *, int *, f32 *, f32 *, dTres_c::data_s const **)
Definition d_map_path_fmap.cpp:521
Definition d_map_path_fmap.h:264
dMenu_Fmap_region_data_c * mpRegionData
Definition d_map_path_fmap.h:280
fmpTresTypeGroupDataListAll_c * mpFmpTresTypeGroupDataListAll
Definition d_map_path_fmap.h:283
const dTres_c::data_s * mpTresData
Definition d_map_path_fmap.h:287
int mStageNo
Definition d_map_path_fmap.h:276
fmpTresTypeGroupData_c * mpFmpTresTypeGroupData
Definition d_map_path_fmap.h:285
int mStayStageNo
Definition d_map_path_fmap.h:277
bool getNextRoomData()
Definition d_map_path_fmap.cpp:444
bool getFirstData()
Definition d_map_path_fmap.cpp:385
bool nextData()
Definition d_map_path_fmap.cpp:491
dMenu_Fmap_stage_data_c * mpStageData
Definition d_map_path_fmap.h:281
dMenu_Fmap_room_data_c * mpRoomData
Definition d_map_path_fmap.h:282
fmpTresTypeGroupDataList_c * mpFmpTresTypeGroupDataList
Definition d_map_path_fmap.h:284
void getFirstRoomData()
Definition d_map_path_fmap.cpp:437
dTres_c::typeGroupData_c * mpTresTypeGroupData
Definition d_map_path_fmap.h:286
u8 mType
Definition d_map_path_fmap.h:289
u8 mTypeGroupNo
Definition d_map_path_fmap.h:288
bool getNextStageData()
Definition d_map_path_fmap.cpp:455
bool getData()
Definition d_map_path_fmap.cpp:418
bool getValidData()
Definition d_map_path_fmap.cpp:508
int mSaveTbl
Definition d_map_path_fmap.h:279
bool getNextData()
Definition d_map_path_fmap.cpp:466
int mStayRoomNo
Definition d_map_path_fmap.h:278
Definition d_map_path_fmap.h:56
void * getDzsData()
Definition d_map_path_fmap.h:71
void * mp_dzsData
Definition d_map_path_fmap.h:81
void setMapPath(dDrawPath_c::room_class *i_path)
Definition d_map_path_fmap.h:75
dStage_FileList2_dt_c * m_fileList2
Definition d_map_path_fmap.h:79
f32 getFilelist2MinX()
Definition d_map_path_fmap.h:66
void setDzsData(void *i_dzsData)
Definition d_map_path_fmap.h:76
dMenu_Fmap_data_c()
Definition d_map_path_fmap.h:58
f32 getFilelist2MaxX()
Definition d_map_path_fmap.h:68
void setFileList2(dStage_FileList2_dt_c *i_fileList)
Definition d_map_path_fmap.h:73
dDrawPath_c::room_class * mp_mapPath
Definition d_map_path_fmap.h:80
f32 getFilelist2MinZ()
Definition d_map_path_fmap.h:67
void setTresure(dTres_c::list_class *i_list)
Definition d_map_path_fmap.h:74
dTres_c::list_class * mp_tresure
Definition d_map_path_fmap.h:78
dTres_c::list_class * getTresure()
Definition d_map_path_fmap.h:65
f32 getFilelist2MaxZ()
Definition d_map_path_fmap.h:69
dDrawPath_c::room_class * getMapPath()
Definition d_map_path_fmap.h:70
Definition d_map_path_fmap.h:195
int mRegionNo
Definition d_map_path_fmap.h:242
int buildFmapRegionData(int)
Definition d_map_path_fmap.cpp:264
dMenu_Fmap_region_data_c * getNextData()
Definition d_map_path_fmap.h:224
dMenu_Fmap_stage_data_c * mpMenuFmapStageDataTop
Definition d_map_path_fmap.h:234
f32 getRegionOffsetZ()
Definition d_map_path_fmap.h:226
dMenu_Fmap_stage_data_c * getMenuFmapStageData(int)
Definition d_map_path_fmap.cpp:136
f32 getRegionMinX()
Definition d_map_path_fmap.h:227
f32 mRegionOffsetX
Definition d_map_path_fmap.h:236
f32 mRegionMaxX
Definition d_map_path_fmap.h:239
f32 mRegionMinX
Definition d_map_path_fmap.h:238
f32 getStageCenterX_CoordWorld(int i_stageNo)
Definition d_map_path_fmap.h:215
f32 mRegionMaxZ
Definition d_map_path_fmap.h:241
f32 mRegionOffsetZ
Definition d_map_path_fmap.h:237
f32 getRegionMinZ()
Definition d_map_path_fmap.h:229
dMenu_Fmap_stage_data_c * getMenuFmapStageDataTop()
Definition d_map_path_fmap.h:223
f32 mRegionMinZ
Definition d_map_path_fmap.h:240
f32 getStageCenterZ_CoordWorld(int i_stageNo)
Definition d_map_path_fmap.h:219
f32 getRegionMaxX()
Definition d_map_path_fmap.h:228
int getPointStagePathInnerNo(f32, f32, int, int *, int *)
Definition d_map_path_fmap.cpp:147
void setNextData(dMenu_Fmap_region_data_c *i_data)
Definition d_map_path_fmap.h:232
dMenu_Fmap_region_data_c * mpNextData
Definition d_map_path_fmap.h:235
f32 getRegionOffsetX()
Definition d_map_path_fmap.h:225
dMenu_Fmap_region_data_c(int i_no, dMenu_Fmap_stage_data_c *i_stageData, f32 i_offsetX, f32 i_offsetZ)
Definition d_map_path_fmap.h:201
int getRegionNo()
Definition d_map_path_fmap.h:231
f32 getRegionMaxZ()
Definition d_map_path_fmap.h:230
Definition d_map_path_fmap.h:85
f32 getFileList2MinZ()
Definition d_map_path_fmap.h:108
dMenu_Fmap_room_data_c(u8 i_roomNo, dMenu_Fmap_stage_data_c *i_stageData, dMenu_Fmap_data_c *i_data)
Definition d_map_path_fmap.h:91
dMenu_Fmap_data_c * mp_fmapData
Definition d_map_path_fmap.h:116
f32 getFileList2MaxZ()
Definition d_map_path_fmap.h:110
bool isArrival()
Definition d_map_path_fmap.cpp:32
~dMenu_Fmap_room_data_c()
Definition d_map_path_fmap.h:100
dMenu_Fmap_stage_data_c * mp_parentStage
Definition d_map_path_fmap.h:119
dMenu_Fmap_data_c * getFmapData()
Definition d_map_path_fmap.h:112
f32 getFileList2MaxX()
Definition d_map_path_fmap.h:109
f32 getFileList2MinX()
Definition d_map_path_fmap.h:107
void buildTresTypeGroup(int, int, int)
Definition d_map_path_fmap.cpp:39
int getRoomNo()
Definition d_map_path_fmap.h:113
fmpTresTypeGroupDataListAll_c * mp_fmpTresTypeGroupDataListAll
Definition d_map_path_fmap.h:117
u8 m_roomNo
Definition d_map_path_fmap.h:120
void setNextData(dMenu_Fmap_room_data_c *i_nextData)
Definition d_map_path_fmap.h:114
void buildFmapRoomData(int, int, f32, f32, f32, f32)
Definition d_map_path_fmap.cpp:60
dMenu_Fmap_room_data_c * getNextData()
Definition d_map_path_fmap.h:111
dMenu_Fmap_room_data_c * mp_nextData
Definition d_map_path_fmap.h:118
fmpTresTypeGroupDataListAll_c * getTypeGroupDataListAll()
Definition d_map_path_fmap.h:106
Definition d_map_path_fmap.h:123
u8 getVisitedRoomSaveTableNo()
Definition d_map_path_fmap.h:126
u8 mVisitedRoomSaveTableNo
Definition d_map_path_fmap.h:130
u8 mRoomNos[0]
Definition d_map_path_fmap.h:132
u8 mSaveTableNo
Definition d_map_path_fmap.h:129
u8 getSaveTableNo()
Definition d_map_path_fmap.h:125
u8 mSize
Definition d_map_path_fmap.h:128
u8 field_0x3
Definition d_map_path_fmap.h:131
Definition d_map_path_fmap.h:135
void setName(char *i_name)
Definition d_map_path_fmap.h:176
char * getStageName()
Definition d_map_path_fmap.h:159
f32 m_stageMaxX
Definition d_map_path_fmap.h:190
f32 m_stageMaxZ
Definition d_map_path_fmap.h:191
dMenu_Fmap_stage_arc_data_c * mpStageArc
Definition d_map_path_fmap.h:183
f32 getStageMaxX()
Definition d_map_path_fmap.h:167
int buildFmapStageData(int, f32, f32)
Definition d_map_path_fmap.cpp:85
f32 getStageCenterZ()
Definition d_map_path_fmap.h:156
void setStageArc(dMenu_Fmap_stage_arc_data_c *i_stageArc)
Definition d_map_path_fmap.h:169
dMenu_Fmap_room_data_c * mp_roomTop
Definition d_map_path_fmap.h:184
dMenu_Fmap_stage_arc_data_c * getStageArc()
Definition d_map_path_fmap.h:160
f32 getStageMinX()
Definition d_map_path_fmap.h:165
void setFmapRoomDataTop(dMenu_Fmap_room_data_c *i_roomTop)
Definition d_map_path_fmap.h:170
void setNextData(dMenu_Fmap_stage_data_c *i_nextData)
Definition d_map_path_fmap.h:171
f32 m_offsetX
Definition d_map_path_fmap.h:186
dMenu_Fmap_room_data_c * getFmapRoomDataTop()
Definition d_map_path_fmap.h:162
f32 getStageCenterX()
Definition d_map_path_fmap.h:155
dMenu_Fmap_stage_data_c * mpNextData
Definition d_map_path_fmap.h:185
f32 getStageMaxZ()
Definition d_map_path_fmap.h:168
f32 getStageCenterX_CoordRegion()
Definition d_map_path_fmap.h:157
void setStageCntNo(int i_no)
Definition d_map_path_fmap.h:172
void setOffsetX(f32 i_offsetX)
Definition d_map_path_fmap.h:173
dMenu_Fmap_stage_data_c * getNextData()
Definition d_map_path_fmap.h:161
f32 getOffsetZ()
Definition d_map_path_fmap.h:164
f32 m_stageMinX
Definition d_map_path_fmap.h:188
void setOffsetZ(f32 i_offsetZ)
Definition d_map_path_fmap.h:174
f32 m_stageMinZ
Definition d_map_path_fmap.h:189
f32 getOffsetX()
Definition d_map_path_fmap.h:163
f32 getStageMinZ()
Definition d_map_path_fmap.h:166
char name[8]
Definition d_map_path_fmap.h:182
f32 m_offsetZ
Definition d_map_path_fmap.h:187
dMenu_Fmap_stage_data_c()
Definition d_map_path_fmap.h:140
bool isArrival()
Definition d_map_path_fmap.cpp:71
int m_stageCntNo
Definition d_map_path_fmap.h:192
f32 getStageCenterZ_CoordRegion()
Definition d_map_path_fmap.h:158
Definition d_map_path_fmap.h:245
f32 getWorldMaxZ()
Definition d_map_path_fmap.h:255
f32 m_worldMaxZ
Definition d_map_path_fmap.h:261
f32 m_worldMinX
Definition d_map_path_fmap.h:258
dMenu_Fmap_region_data_c * mp_fmapRegionData
Definition d_map_path_fmap.h:257
int buildFmapWorldData()
Definition d_map_path_fmap.cpp:318
dMenu_Fmap_region_data_c * getMenuFmapRegionTop()
Definition d_map_path_fmap.h:251
dMenu_Fmap_world_data_c(dMenu_Fmap_region_data_c *i_regionData)
Definition d_map_path_fmap.h:250
f32 getWorldMaxX()
Definition d_map_path_fmap.h:254
void create(dMenu_Fmap_region_data_c *)
Definition d_map_path_fmap.cpp:311
f32 m_worldMaxX
Definition d_map_path_fmap.h:260
f32 getWorldMinX()
Definition d_map_path_fmap.h:252
f32 getWorldMinZ()
Definition d_map_path_fmap.h:253
f32 m_worldMinZ
Definition d_map_path_fmap.h:259
Definition d_stage.h:224
f32 mLeftRmX
Definition d_stage.h:226
f32 mInnerRmZ
Definition d_stage.h:227
f32 mRightRmX
Definition d_stage.h:228
f32 mFrontRmZ
Definition d_stage.h:229
Definition d_map_path_fmap.h:44
fmpTresTypeGroupDataList_c mpTypeGroupData[17]
Definition d_map_path_fmap.h:53
fmpTresTypeGroupDataList_c * getTypeGroupDataList(int i_typeGroupNo)
Definition d_map_path_fmap.h:49
void addTypeGroupData(u8 i_typeGroupNo, const dTres_c::data_s *i_data)
Definition d_map_path_fmap.h:46
Definition d_map_path_fmap.h:32
fmpTresTypeGroupData_c * mpTypeGroupDataHead
Definition d_map_path_fmap.h:40
fmpTresTypeGroupData_c * mpNextData
Definition d_map_path_fmap.h:41
void addTypeGroupData(u8, dTres_c::data_s const *)
Definition d_map_path_fmap.cpp:11
fmpTresTypeGroupDataList_c()
Definition d_map_path_fmap.cpp:671
~fmpTresTypeGroupDataList_c()
Definition d_map_path_fmap.cpp:664
fmpTresTypeGroupData_c * getTypeGroupDataHead()
Definition d_map_path_fmap.h:38
Definition d_map_path_fmap.h:8
void setNextData(fmpTresTypeGroupData_c *i_next)
Definition d_map_path_fmap.h:22
void setTypeGroupNo(u8 i_no)
Definition d_map_path_fmap.h:21
const dTres_c::data_s * mpTresData
Definition d_map_path_fmap.h:27
void setTresData(const dTres_c::data_s *i_data)
Definition d_map_path_fmap.h:23
const dTres_c::data_s * getTresData()
Definition d_map_path_fmap.h:24
fmpTresTypeGroupData_c * mpNext
Definition d_map_path_fmap.h:28
fmpTresTypeGroupData_c * getNextData()
Definition d_map_path_fmap.h:25
~fmpTresTypeGroupData_c()
Definition d_map_path_fmap.h:15
fmpTresTypeGroupData_c()
Definition d_map_path_fmap.h:10
u8 mTypeGroupNo
Definition d_map_path_fmap.h:29
static initFunc init[]
Definition d_menu_collect.cpp:42
int i
Definition e_pow.c:165
Definition d_menu_dmap_map.cpp:54
Definition d_menu_dmap_map.cpp:18
Definition d_tresure.h:41
Definition d_menu_dmap_map.cpp:20
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8