Mercurial > mm7
comparison mm7_data.h @ 1650:b0a2b8525483
Merge
author | Grumpy7 |
---|---|
date | Wed, 18 Sep 2013 06:32:15 +0200 |
parents | 511cd6dd1048 466c5e15f524 |
children | a7eebb6ee7a2 51a74615d956 |
comparison
equal
deleted
inserted
replaced
1649:d25389b91029 | 1650:b0a2b8525483 |
---|---|
1 #pragma once | 1 #pragma once |
2 #include <string> | 2 #include <string> |
3 #include "VectorTypes.h" | 3 #include "VectorTypes.h" |
4 #include "OSAPI.h" | 4 #include "OSAPI.h" |
5 #include <array> | 5 #include <array> |
6 | |
6 typedef char _UNKNOWN; | 7 typedef char _UNKNOWN; |
7 | |
8 | |
9 | |
10 typedef unsigned int uint; | 8 typedef unsigned int uint; |
11 | 9 |
12 | 10 |
13 | |
14 #define COERCE_UNSIGNED_INT64(a) (__debugbreak(), a) | |
15 | 11 |
16 | 12 |
17 | 13 |
18 | 14 |
19 | 15 |
661 extern std::array<char, 54> party_has_equipment; | 657 extern std::array<char, 54> party_has_equipment; |
662 extern std::array<char, 17> byte_5111F6; | 658 extern std::array<char, 17> byte_5111F6; |
663 extern std::array<unsigned int, 16> papredoll_dbrds; | 659 extern std::array<unsigned int, 16> papredoll_dbrds; |
664 | 660 |
665 extern int bRingsShownInCharScreen; // weak | 661 extern int bRingsShownInCharScreen; // weak |
666 extern int _unused000; // weak | |
667 | 662 |
668 extern std::array<std::array<unsigned __int16, 137>, 117> pOdmMinimap; | 663 extern std::array<std::array<unsigned __int16, 137>, 117> pOdmMinimap; |
669 extern unsigned int uNumBlueFacesInBLVMinimap; | 664 extern unsigned int uNumBlueFacesInBLVMinimap; |
670 extern std::array<unsigned __int16, 50> pBlueFacesInBLVMinimapIDs; | 665 extern std::array<unsigned __int16, 50> pBlueFacesInBLVMinimapIDs; |
671 extern std::array<int, 14> pTextureIDs_PartyBuffIcons; | 666 extern std::array<int, 14> pTextureIDs_PartyBuffIcons; |
1144 int __fastcall GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder); | 1139 int __fastcall GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder); |
1145 bool IsDwarfPresentInParty(bool b); | 1140 bool IsDwarfPresentInParty(bool b); |
1146 bool ShouldLoadTexturesForRaceAndGender(unsigned int _this); | 1141 bool ShouldLoadTexturesForRaceAndGender(unsigned int _this); |
1147 void WetsuitOn(unsigned int uPlayerID); // idb | 1142 void WetsuitOn(unsigned int uPlayerID); // idb |
1148 void WetsuitOff(unsigned int uPlayerID); | 1143 void WetsuitOff(unsigned int uPlayerID); |
1149 void __fastcall PrepareDrawLists_BLV(struct IndoorLocation_drawstru *_this); | 1144 void __fastcall PrepareDrawLists_BLV(); |
1150 void FindBillboardsLightLevels_BLV(); | 1145 void FindBillboardsLightLevels_BLV(); |
1151 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); | 1146 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); |
1152 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); | 1147 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); |
1153 void PrepareBspRenderList_BLV(); | 1148 void PrepareBspRenderList_BLV(); |
1154 void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID); | 1149 void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID); |
1155 void PrepareActorRenderList_BLV(); | 1150 void PrepareActorRenderList_BLV(); |
1156 void PrepareItemsRenderList_BLV(); | 1151 void PrepareItemsRenderList_BLV(); |
1157 void AddBspNodeToRenderList(unsigned int node_id); | 1152 void AddBspNodeToRenderList(unsigned int node_id); |
1158 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb | 1153 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb |
1159 void __fastcall sub_440BED(struct IndoorLocation_drawstru *_this); | |
1160 bool sub_44100D(); | 1154 bool sub_44100D(); |
1161 __int16 __fastcall sub_441A4E(int a1); | 1155 __int16 __fastcall sub_441A4E(int a1); |
1162 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb | 1156 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb |
1163 void Initialize2DA(); | 1157 void Initialize2DA(); |
1164 void LoadLevel_InitializeLevelStr(); | 1158 void LoadLevel_InitializeLevelStr(); |
1179 void TryLoadLevelFromLOD(); | 1173 void TryLoadLevelFromLOD(); |
1180 void sub_46080D(); | 1174 void sub_46080D(); |
1181 bool Initialize_GamesLOD_NewLOD(); | 1175 bool Initialize_GamesLOD_NewLOD(); |
1182 void SaveNewGame(); | 1176 void SaveNewGame(); |
1183 void PrepareToLoadBLV(unsigned int bLoading); | 1177 void PrepareToLoadBLV(unsigned int bLoading); |
1184 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct OutdoorCamera *a2); | 1178 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2); |
1185 void _461103_load_level_sub(); | 1179 void _461103_load_level_sub(); |
1186 void MainMenu_Loop(); | 1180 void MainMenu_Loop(); |
1187 char sub_4637E0_is_there_popup_onscreen(); | 1181 char sub_4637E0_is_there_popup_onscreen(); |
1188 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(); | 1182 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(); |
1189 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen); | 1183 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen); |
1213 int GetPartyReputation(); | 1207 int GetPartyReputation(); |
1214 void OracleDialogue(); | 1208 void OracleDialogue(); |
1215 void __fastcall ClickNPCTopic(signed int uMessageParam); | 1209 void __fastcall ClickNPCTopic(signed int uMessageParam); |
1216 char * _4B254D_SkillMasteryTeacher(int _this); | 1210 char * _4B254D_SkillMasteryTeacher(int _this); |
1217 const char *ContractSelectText(int pEventCode); | 1211 const char *ContractSelectText(int pEventCode); |
1218 void SimpleHouseAndBoatsDialog(); | 1212 void SimpleHouseDialog(); |
1219 void CreateButtonInColumn(int a1, unsigned int a2); | 1213 void CreateButtonInColumn(int a1, unsigned int a2); |
1220 void FillAviableSkillsToTeach(int _this); | 1214 void FillAviableSkillsToTeach(int _this); |
1221 void sub_4B3E1E(); | 1215 void sub_4B3E1E(); |
1222 void DrawJoinGuildWindow(int pEventCode); | 1216 void DrawJoinGuildWindow(int pEventCode); |
1223 void __fastcall _4B3FE5_training_dialogue(int a4); | 1217 void __fastcall _4B3FE5_training_dialogue(int a4); |
1234 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam); | 1228 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam); |
1235 int sub_4BD8B5(); | 1229 int sub_4BD8B5(); |
1236 bool __fastcall MerchandiseTest(ItemGen *item, int _2da_idx); | 1230 bool __fastcall MerchandiseTest(ItemGen *item, int _2da_idx); |
1237 void UIShop_Buy_Identify_Repair(); | 1231 void UIShop_Buy_Identify_Repair(); |
1238 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); | 1232 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); |
1239 void ODM_LoadAndInitialize(const char *pLevelFilename, struct OutdoorCamera *thisa); | 1233 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa); |
1240 unsigned int GetLevelFogColor(); | 1234 unsigned int GetLevelFogColor(); |
1241 int __fastcall sub_47C3D7_get_fog_related_stuff(int a1, int a2, float a3); | 1235 int __fastcall sub_47C3D7_get_fog_related_stuff(int a1, int a2, float a3); |
1242 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); | 1236 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); |
1243 unsigned int WorldPosToGridCellX(int); // weak | 1237 unsigned int WorldPosToGridCellX(int); // weak |
1244 unsigned int WorldPosToGridCellZ(int); // weak | 1238 unsigned int WorldPosToGridCellZ(int); // weak |
1245 int GridCellToWorldPosX(int); // weak | 1239 int GridCellToWorldPosX(int); // weak |
1246 int GridCellToWorldPosZ(int); // weak | 1240 int GridCellToWorldPosZ(int); // weak |
1247 void sub_481ED9_MessWithOutdoorCamera(); | 1241 void sub_481ED9_MessWithODMRenderParams(); |
1248 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y); | 1242 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y); |
1249 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); | 1243 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); |
1250 void sub_487DA9(); | 1244 void sub_487DA9(); |
1251 double GetFogDensityByTime(struct OutdoorLocation *_this); | 1245 double GetFogDensityByTime(struct OutdoorLocation *_this); |
1252 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6); | 1246 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6); |
1371 { | 1365 { |
1372 auto p = (unsigned __int32 *)ptr; | 1366 auto p = (unsigned __int32 *)ptr; |
1373 for ( int i=0; i < count; i++ ) | 1367 for ( int i=0; i < count; i++ ) |
1374 *p++ = value; | 1368 *p++ = value; |
1375 } | 1369 } |
1376 inline void __fastcall j_memset32(int a2, void *a1, unsigned int a3) {memset32(a1, a2, a3);} | 1370 //inline void __fastcall j_memset32(int a2, void *a1, unsigned int a3) {memset32(a1, a2, a3);} |
1377 | 1371 |
1378 | 1372 |
1379 #define ErrD3D(hr) do {extern void ErrHR(HRESULT, const char *, const char *, const char *, int); ErrHR(hr, "Direct3D", __FUNCTION__, __FILE__, __LINE__);} while(0) | 1373 #define ErrD3D(hr) do {extern void ErrHR(HRESULT, const char *, const char *, const char *, int); ErrHR(hr, "Direct3D", __FUNCTION__, __FILE__, __LINE__);} while(0) |
1380 | 1374 |
1381 | 1375 |