Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_map.h
Go to the documentation of this file.
1#ifndef D_MAP_D_MAP_H
2#define D_MAP_D_MAP_H
3
4#include "d/d_map_path_dmap.h"
5
8 /* 0x198 */ u8 field_0x198;
9 /* 0x199 */ u8 field_0x199;
10 /* 0x19A */ u8 field_0x19a;
11 /* 0x19B */ u8 field_0x19b;
12 /* 0x19C */ u8 field_0x19c;
13 /* 0x19D */ u8 field_0x19d;
14 /* 0x19E */ u8 field_0x19e;
15 /* 0x19F */ u8 field_0x19f;
16 /* 0x1A0 */ u8 field_0x1a0;
17 /* 0x1A1 */ u8 field_0x1a1;
18 /* 0x1A2 */ u8 field_0x1a2;
19 /* 0x1A3 */ u8 field_0x1a3;
20 /* 0x1A4 */ u8 field_0x1a4;
21 /* 0x1A5 */ u8 field_0x1a5;
22 /* 0x1A6 */ u8 field_0x1a6;
23 /* 0x1A7 */ u8 field_0x1a7;
24 /* 0x1A8 */ u8 field_0x1a8;
25 /* 0x1A9 */ u8 field_0x1a9;
26 /* 0x1AA */ s16 field_0x1aa;
27 /* 0x1AC */ s16 field_0x1ac;
28 /* 0x1AE */ s16 field_0x1ae;
29 /* 0x1B0 */ s16 field_0x1b0;
30 /* 0x1B2 */ s16 field_0x1b2;
31 /* 0x1B4 */ s16 field_0x1b4;
32 /* 0x1B6 */ s16 field_0x1b6;
33 /* 0x1B8 */ f32 cursor_size;
34};
35
39
41public:
42 /* 800288C4 */ int getDispType() const;
43 /* 80028BB4 */ bool isDrawOutSideTrim();
44 /* 80028C4C */ int getOutSideBlackLineNumber();
45 /* 80028C60 */ bool isOutSideBlackLine();
46 /* 80028C90 */ int getLineWidthSub(int);
47 /* 80029160 */ int getStayType() const;
48 /* 8002AE6C */ renderingAmap_c() {}
49
50 /* 800284D0 */ virtual void draw();
51 /* 8002ADB0 */ virtual ~renderingAmap_c() {}
52 /* 80028EE4 */ virtual GXColor* getLineColor(int, int);
53 /* 80028DD4 */ virtual int getLineWidth(int);
54 /* 80028A10 */ virtual void drawPath();
55 /* 80028A30 */ virtual void rendering(dDrawPath_c::line_class const*);
56 /* 80028B3C */ virtual void rendering(dDrawPath_c::poly_class const*);
57 /* 800289F0 */ virtual void rendering(dDrawPath_c::room_class const*);
58 /* 80028960 */ virtual void beforeDrawPath();
59 /* 800289D0 */ virtual void afterDrawPath();
60 /* 80028FB4 */ virtual const GXColor* getDecoLineColor(int, int);
61 /* 80028CF4 */ virtual s32 getDecorationLineWidth(int);
62 /* 80029058 */ virtual int getIconGroupNumber(u8) const;
63 /* 80029078 */ virtual bool hasMap() const;
64 /* 8002911C */ virtual bool isRendAllRoom() const;
65 /* 800290C0 */ virtual bool isRendDoor() const;
66 /* 80029104 */ virtual bool isCheckFloor() const;
67 /* 80029190 */ virtual bool isDrawIconSingle2(dTres_c::data_s const*, bool, bool, int) const;
68 /* 8002910C */ virtual bool isRendRestart() const;
69 /* 80029114 */ virtual bool isRendCursor() const;
70 /* 8002B000 */ virtual bool isRendIcon() const { return true; }
71 /* 800284BC */ virtual f32 getIconSize(u8) const;
72 /* 80028B04 */ virtual f32 getPlayerCursorSize();
73 /* 80028B10 */ virtual f32 getRestartCursorSize();
74 virtual void setAmapPaletteColor(int, u8, u8, u8, u8) = 0;
75 virtual bool isSpecialOutline() = 0;
76
77 static const int PALETTE_NUMBER = 50;
78
79private:
81 /* 0x38 */ s32 field_0x38;
82 /* 0x3C */ s32 field_0x3c;
83}; // Size: 0x40
84
85class dMap_c : public renderingAmap_c {
86public:
87 /* 8002974C */ void copyPalette();
88 /* 8002A064 */ void copyPalette(int, int, f32);
89 /* 80029F84 */ void setMapPaletteColorAlphaPer(int, f32);
90 /* 800297A8 */ void setMapPaletteColorAlphaPer(int, int, f32);
91 /* 80029818 */ void resCopy();
92 /* 80029874 */ dMap_c(int, int, int, int);
93 /* 80029A1C */ void _remove();
94 /* 80029A8C */ void getMapMinMaxXZ(int, f32*, f32*, f32*, f32*);
95 /* 80029C10 */ void getPack(int, f32*, f32*);
96 /* 80029D78 */ void calcMapCenterXZ(int, f32*, f32*);
97 /* 80029E1C */ void calcMapCmPerTexel(int, f32*);
98 /* 8002A1BC */ int getDispType() const;
99 /* 8002A32C */ void _move(f32, f32, int, f32);
100 /* 8002AB54 */ void _draw();
101
102 /* 8002AF20 */ virtual ~dMap_c() { _remove(); }
103 /* 800296EC */ virtual bool isDrawType(int);
104 /* 80028DF4 */ virtual const GXColor* getColor(int);
105 /* 800296F8 */ virtual bool isRendAllRoom() const;
106 /* 8002A254 */ virtual int getRoomNoSingle();
107 /* 8002A1DC */ virtual bool isDrawRoom(int, int) const;
108 /* 8002A294 */ virtual bool isDrawRoomIcon(int, int) const;
109 /* 80029038 */ virtual const Vec* getIconPosition(dTres_c::typeGroupData_c*) const;
110 /* 8002ABAC */ virtual dTres_c::typeGroupData_c* getFirstData(u8);
112 /* 8002A148 */ virtual void setAmapPaletteColor(int, u8, u8, u8, u8);
113 /* 80029744 */ virtual bool isSpecialOutline();
114
115 bool isDraw() const { return renderingDAmap_c::isDraw(); }
116
120 f32 getPackZ() { return mPackZ; }
121 f32 getTexelPerCm() { return 1.0f / field_0x58; }
124 f32 getPackX() { return mPackX; }
125
126private:
129 /* 0x48 */ ResTIMG* mResTIMG;
130 /* 0x4C */ u8* mImage_p;
131 /* 0x50 */ f32 mCenterX;
132 /* 0x54 */ f32 mCenterZ;
133 /* 0x58 */ f32 field_0x58;
134 /* 0x5C */ f32 mPackX;
135 /* 0x60 */ f32 mPackZ;
136 /* 0x64 */ f32 field_0x64;
137 /* 0x68 */ f32 mPackPlusZ;
138 /* 0x6C */ f32 mRightEdgePlus;
139 /* 0x70 */ f32 mTopEdgePlus;
140 /* 0x74 */ int field_0x74;
141 /* 0x78 */ u16 mTexSizeX;
142 /* 0x7A */ u16 mTexSizeY;
143 /* 0x7C */ int mStayRoomNo;
144 /* 0x80 */ int field_0x80;
145 /* 0x84 */ int field_0x84;
146 /* 0x88 */ int field_0x88;
147 /* 0x8C */ u8 field_0x8c;
148 /* 0x8D */ u8 field_0x8d;
149 /* 0x8E */ u8 field_0x8e;
150 /* 0x8F */ u8 field_0x8f;
151 /* 0x90 */ u8 field_0x90;
152}; // Size: 0x94
153
154#endif /* D_MAP_D_MAP_H */
Definition d_map.h:85
f32 getPackPlusZ()
Definition d_map.h:119
ResTIMG * mResTIMG
Definition d_map.h:129
virtual bool isSpecialOutline()
Definition d_map.cpp:618
f32 mPackZ
Definition d_map.h:135
virtual dTres_c::typeGroupData_c * getFirstData(u8)
Definition d_map.cpp:1291
f32 getRightEdgePlus()
Definition d_map.h:123
f32 getPackX()
Definition d_map.h:124
int field_0x84
Definition d_map.h:145
f32 field_0x58
Definition d_map.h:133
int field_0x74
Definition d_map.h:140
f32 mCenterZ
Definition d_map.h:132
void setMapPaletteColorAlphaPer(int, f32)
Definition d_map.cpp:944
f32 mTopEdgePlus
Definition d_map.h:139
void calcMapCenterXZ(int, f32 *, f32 *)
Definition d_map.cpp:840
dMap_prm_res_s * m_res
Definition d_map.h:128
u8 field_0x8e
Definition d_map.h:149
virtual void setAmapPaletteColor(int, u8, u8, u8, u8)
Definition d_map.cpp:1001
u16 getTexSizeY()
Definition d_map.h:122
int mStayRoomNo
Definition d_map.h:143
virtual bool isDrawType(int)
Definition d_map.cpp:603
void calcMapCmPerTexel(int, f32 *)
Definition d_map.cpp:867
virtual bool isRendAllRoom() const
Definition d_map.cpp:608
virtual const GXColor * getColor(int)
Definition d_map.cpp:279
virtual int getRoomNoSingle()
Definition d_map.cpp:1040
f32 mPackX
Definition d_map.h:134
u16 mTexSizeY
Definition d_map.h:142
virtual bool isDrawRoom(int, int) const
Definition d_map.cpp:1027
virtual bool isDrawRoomIcon(int, int) const
Definition d_map.cpp:1049
u8 * mImage_p
Definition d_map.h:130
void _draw()
Definition d_map.cpp:1283
u8 field_0x8c
Definition d_map.h:147
virtual dTres_c::typeGroupData_c * getNextData(dTres_c::typeGroupData_c *)
Definition d_map.cpp:1297
u16 mTexSizeX
Definition d_map.h:141
u8 field_0x8f
Definition d_map.h:150
void _remove()
Definition d_map.cpp:710
void copyPalette()
Definition d_map.cpp:623
u8 field_0x90
Definition d_map.h:151
f32 mPackPlusZ
Definition d_map.h:137
void _move(f32, f32, int, f32)
Definition d_map.cpp:1059
bool isDraw() const
Definition d_map.h:115
f32 field_0x64
Definition d_map.h:136
void getMapMinMaxXZ(int, f32 *, f32 *, f32 *, f32 *)
Definition d_map.cpp:729
dMap_prm_res_s * m_res_src
Definition d_map.h:127
f32 getTopEdgePlus()
Definition d_map.h:118
void resCopy()
Definition d_map.cpp:644
f32 getPackZ()
Definition d_map.h:120
ResTIMG * getResTIMGPointer()
Definition d_map.h:117
f32 getTexelPerCm()
Definition d_map.h:121
int field_0x80
Definition d_map.h:144
int field_0x88
Definition d_map.h:146
f32 mCenterX
Definition d_map.h:131
u8 field_0x8d
Definition d_map.h:148
void getPack(int, f32 *, f32 *)
Definition d_map.cpp:799
f32 mRightEdgePlus
Definition d_map.h:138
int getDispType() const
Definition d_map.cpp:1022
virtual const Vec * getIconPosition(dTres_c::typeGroupData_c *) const
Definition d_map.cpp:371
virtual ~dMap_c()
Definition d_map.h:102
Definition d_map.h:40
virtual void draw()
Definition d_map.cpp:34
renderingAmap_c()
Definition d_map.h:48
virtual f32 getPlayerCursorSize()
Definition d_map.cpp:162
virtual const GXColor * getDecoLineColor(int, int)
Definition d_map.cpp:350
virtual f32 getIconSize(u8) const
Definition d_map.cpp:16
virtual void rendering(dDrawPath_c::line_class const *)
Definition d_map.cpp:142
s32 m_outSideBlackLineCnt
Definition d_map.h:80
virtual void beforeDrawPath()
Definition d_map.cpp:110
virtual bool isRendCursor() const
Definition d_map.cpp:407
virtual bool isRendRestart() const
Definition d_map.cpp:401
virtual ~renderingAmap_c()
Definition d_map.h:51
bool isDrawOutSideTrim()
Definition d_map.cpp:180
virtual bool isRendAllRoom() const
Definition d_map.cpp:413
s32 field_0x3c
Definition d_map.h:82
virtual GXColor * getLineColor(int, int)
Definition d_map.cpp:323
virtual bool isCheckFloor() const
Definition d_map.cpp:395
virtual bool isRendIcon() const
Definition d_map.h:70
virtual bool isRendDoor() const
Definition d_map.cpp:388
virtual s32 getDecorationLineWidth(int)
Definition d_map.cpp:230
bool isOutSideBlackLine()
Definition d_map.cpp:200
virtual bool isDrawIconSingle2(dTres_c::data_s const *, bool, bool, int) const
Definition d_map.cpp:428
virtual void drawPath()
Definition d_map.cpp:136
virtual f32 getRestartCursorSize()
Definition d_map.cpp:167
int getDispType() const
Definition d_map.cpp:74
virtual int getIconGroupNumber(u8) const
Definition d_map.cpp:376
int getOutSideBlackLineNumber()
Definition d_map.cpp:194
int getStayType() const
Definition d_map.cpp:420
virtual int getLineWidth(int)
Definition d_map.cpp:274
virtual bool hasMap() const
Definition d_map.cpp:381
s32 field_0x38
Definition d_map.h:81
virtual void setAmapPaletteColor(int, u8, u8, u8, u8)=0
int getLineWidthSub(int)
Definition d_map.cpp:212
virtual void afterDrawPath()
Definition d_map.cpp:125
static const int PALETTE_NUMBER
Definition d_map.h:77
virtual bool isSpecialOutline()=0
Definition d_map_path_dmap.h:159
Image data header.
Definition d_menu_dmap_map.cpp:109
Definition d_a_hozelda.cpp:18
Definition d_a_ep.cpp:68
Definition d_menu_dmap_map.cpp:50
Definition d_menu_dmap_map.cpp:52
Definition d_menu_dmap_map.cpp:54
Definition d_map.h:36
static dMap_prm_res_s * m_res
Definition d_map.h:37
Definition d_map.h:6
u8 field_0x1a4
Definition d_map.h:20
u8 field_0x198
Definition d_map.h:8
s16 field_0x1aa
Definition d_map.h:26
s16 field_0x1ae
Definition d_map.h:28
f32 cursor_size
Definition d_map.h:33
s16 field_0x1b6
Definition d_map.h:32
dMpath_RGB5A3_palDt_s palette_data[51]
Definition d_map.h:7
u8 field_0x19f
Definition d_map.h:15
u8 field_0x1a1
Definition d_map.h:17
u8 field_0x1a7
Definition d_map.h:23
s16 field_0x1ac
Definition d_map.h:27
u8 field_0x19a
Definition d_map.h:10
u8 field_0x1a5
Definition d_map.h:21
u8 field_0x19e
Definition d_map.h:14
u8 field_0x1a2
Definition d_map.h:18
u8 field_0x1a8
Definition d_map.h:24
u8 field_0x1a0
Definition d_map.h:16
s16 field_0x1b2
Definition d_map.h:30
s16 field_0x1b0
Definition d_map.h:29
s16 field_0x1b4
Definition d_map.h:31
u8 field_0x199
Definition d_map.h:9
u8 field_0x19d
Definition d_map.h:13
u8 field_0x1a9
Definition d_map.h:25
u8 field_0x1a6
Definition d_map.h:22
u8 field_0x1a3
Definition d_map.h:19
u8 field_0x19c
Definition d_map.h:12
u8 field_0x19b
Definition d_map.h:11
Definition d_map_path.h:161
Definition d_menu_dmap_map.cpp:18
Definition d_menu_dmap_map.cpp:20
bool isDraw() const
Definition d_map_path_dmap.h:131
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8