comparison mm7_unsorted_subs.h @ 2358:23192f5b41d4

Merge
author Ritor1
date Thu, 10 Apr 2014 17:35:26 +0600
parents a574a80e7012
children eb136041adf1
comparison
equal deleted inserted replaced
2357:44c91cec72ad 2358:23192f5b41d4
12 12
13 13
14 //void ShowMM7IntroVideo_and_LoadingScreen(); 14 //void ShowMM7IntroVideo_and_LoadingScreen();
15 unsigned int GameOverMenu(void *ecx0); 15 unsigned int GameOverMenu(void *ecx0);
16 16
17 bool __fastcall sub_4070EF_prolly_detect_player(unsigned int uObjID, unsigned int uObj2ID);
18 bool __fastcall sub_4075DB(int a1, int a2, int a3, struct BLVFace *face); 17 bool __fastcall sub_4075DB(int a1, int a2, int a3, struct BLVFace *face);
19 bool __fastcall sub_4077F1(int a1, int a2, int a3, struct ODMFace *face, struct BSPVertexBuffer *a5); 18 bool __fastcall sub_4077F1(int a1, int a2, int a3, struct ODMFace *face, struct BSPVertexBuffer *a5);
20 bool __fastcall sub_407A1C(int x, int z, int y, struct Vec3_int_ v); // idb 19 bool __fastcall sub_407A1C(int x, int z, int y, struct Vec3_int_ v); // idb
21 int __fastcall sub_4088E9(int a1, int a2, int a3, int a4, int a5, int a6);
22 void GameUI_WritePointedObjectStatusString();
23 void __fastcall GameUI_OnPlayerPortraitLeftClick(unsigned int uPlayerID); // idb
24 void reset_some_strus_flt_2Cs(); 20 void reset_some_strus_flt_2Cs();
25 void InitializeTurnBasedAnimations(void *); 21 void InitializeTurnBasedAnimations(void *);
26 double get_shading_dist_mist(); 22 double get_shading_dist_mist();
27 void area_of_effect__damage_evaluate(); 23 void area_of_effect__damage_evaluate();
28 void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb 24 void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb
29 double __fastcall sub_43AE12(signed int a1); 25 double __fastcall sub_43AE12(signed int a1);
30 void ItemDamageFromActor(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity); 26 void ItemDamageFromActor(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity);
31 void CharacterUI_LoadPaperdollTextures();
32 void WetsuitOn(unsigned int uPlayerID); // idb
33 void WetsuitOff(unsigned int uPlayerID);
34 void __fastcall PrepareDrawLists_BLV();
35 void FindBillboardsLightLevels_BLV(); 27 void FindBillboardsLightLevels_BLV();
36 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); 28 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel);
37 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); 29 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z);
38 bool _44100D_should_alter_right_panel(); 30 bool _44100D_should_alter_right_panel();
39 __int16 __fastcall sub_441A4E(int a1); 31 __int16 __fastcall sub_441A4E(int a1);
40 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb
41 void Initialize2DA();
42 void LoadLevel_InitializeLevelStr(); 32 void LoadLevel_InitializeLevelStr();
43 void OnMapLeave(); 33 void OnMapLeave();
44 void OnMapLoad(); 34 void OnMapLoad();
45 void Level_LoadEvtAndStr(const char *pLevelName); 35 void Level_LoadEvtAndStr(const char *pLevelName);
46 const char *GetMapBookHintText();//sub_444564
47 int GetTravelTime();
48 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4); 36 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4);
49 unsigned int SkillToMastery(unsigned int skill_value);
50 unsigned int __fastcall GetSpellColor(signed int a1);
51 void PrepareToLoadBLV(unsigned int bLoading);
52 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2); 37 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2);
53 void _461103_load_level_sub(); 38 void _461103_load_level_sub();
54 void MainMenu_Loop(); 39 void MainMenu_Loop();
55 char sub_4637E0_is_there_popup_onscreen();
56 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(); 40 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows();
57 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen); 41 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen);
58 void Game_DeinitializeAndTerminate(int exitCode); // idb 42 void Game_DeinitializeAndTerminate(int exitCode); // idb
59 void FinalInitialization(); 43 void FinalInitialization();
60 char Is_out15odm_underwater();
61 void SetUnderwaterFog();
62 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box); 44 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box);
63 bool __fastcall CheckMM7CD(char c); 45 bool __fastcall CheckMM7CD(char c);
64 void SecondaryInitialization(); 46 void SecondaryInitialization();
65 void CreateAsyncMouse(); 47 void CreateAsyncMouse();
66 void CreateAsyncKeyboard(); 48 void CreateAsyncKeyboard();
68 void MM7Initialization(); 50 void MM7Initialization();
69 void SetCurrentMenuID(enum MENU_STATE); // idb 51 void SetCurrentMenuID(enum MENU_STATE); // idb
70 enum MENU_STATE GetCurrentMenuID(); 52 enum MENU_STATE GetCurrentMenuID();
71 void OracleDialogue(); 53 void OracleDialogue();
72 const char * _4B254D_SkillMasteryTeacher(int trainerInfo); 54 const char * _4B254D_SkillMasteryTeacher(int trainerInfo);
73 void SimpleHouseDialog();
74 void CreateButtonInColumn(int a1, unsigned int a2);
75 void sub_4B3E1E(); 55 void sub_4B3E1E();
76 void DrawJoinGuildWindow(int pEventCode);
77 void _4B3FE5_training_dialogue(int a4); 56 void _4B3FE5_training_dialogue(int a4);
78 void __fastcall DrawTextAtStatusBar(const char *Str, int a5); 57 void __fastcall DrawTextAtStatusBar(const char *Str, int a5);
79 __int64 GetExperienceRequiredForLevel(int a1); 58 __int64 GetExperienceRequiredForLevel(int a1);
80 void CheckBountyRespawnAndAward(); 59 void CheckBountyRespawnAndAward();
81 void Arena_SelectionFightLevel(); 60 void Arena_SelectionFightLevel();
82 void ArenaFight(); 61 void ArenaFight();
83 void SpellBookGenerator();
84 void UI_CreateEndConversationButton();
85 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam);
86 int HouseDialogPressCloseBtn(); 62 int HouseDialogPressCloseBtn();
87 void UIShop_Buy_Identify_Repair();
88 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); 63 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused);
89 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa); 64 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa);
90 unsigned int GetLevelFogColor(); 65 unsigned int GetLevelFogColor();
91 int __fastcall sub_47C3D7_get_fog_specular(int a1, int a2, float a3); 66 int __fastcall sub_47C3D7_get_fog_specular(int a1, int a2, float a3);
92 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); 67 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5);
97 void sub_481ED9_MessWithODMRenderParams(); 72 void sub_481ED9_MessWithODMRenderParams();
98 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y); 73 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y);
99 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); 74 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4);
100 void sub_487DA9(); 75 void sub_487DA9();
101 double GetFogDensityByTime(struct OutdoorLocation *_this); 76 double GetFogDensityByTime(struct OutdoorLocation *_this);
102 bool PlayerCreation_Choose4Skills();
103 void LoadPlayerPortraintsAndVoices();
104 void ReloadPlayerPortraits(int player_id, int face_id);
105 void sub_491E3A(); 77 void sub_491E3A();
106 void _493938_regenerate(); 78 void _493938_regenerate();
107 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration); 79 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration);
108 void _494035_timed_effects__water_walking_damage__etc(); 80 void _494035_timed_effects__water_walking_damage__etc();
109 unsigned int __fastcall _494820_training_time(unsigned int a1); 81 unsigned int __fastcall _494820_training_time(unsigned int a1);
110 const char *GetReputationString(signed int a1); 82 const char *GetReputationString(signed int a1);
111 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6); 83 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6);
112 void PlayerCreationUI_Draw();
113 void PlayerCreationUI_Initialize();
114 void DeleteCCharFont();
115 bool PlayerCreationUI_Loop();
116 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim); 84 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim);
117 void sub_4B1447_party_fine(int shopId, int stealingResult, int fineToAdd); 85 void sub_4B1447_party_fine(int shopId, int stealingResult, int fineToAdd);
118 void sub_4B1523_showSpellbookInfo(int spellItemId);
119 void ShowPopupShopItem();
120 void GetHouseGoodbyeSpeech();
121 unsigned int GetGravityStrength(); 86 unsigned int GetGravityStrength();
122 void UpdateUserInput_and_MapSpecificStuff(); 87 void UpdateUserInput_and_MapSpecificStuff();
123 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2); 88 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2);
124 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID); 89 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID);
125 void _46E0B2_collide_against_decorations(); 90 void _46E0B2_collide_against_decorations();
126 void __fastcall _46E26D_collide_against_sprites(signed int a1, signed int a2);
127 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb 91 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb
128 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0); 92 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0);
129 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb 93 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb
130 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this); 94 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this);
131 int _46EF01_collision_chech_player(int a1); // idb 95 int _46EF01_collision_chech_player(int a1); // idb
137 int sub_475665(struct BLVFace *face, int a2, __int16 a3); 101 int sub_475665(struct BLVFace *face, int a2, __int16 a3);
138 bool __fastcall sub_4759C9(struct BLVFace *face, int a2, int a3, __int16 a4); 102 bool __fastcall sub_4759C9(struct BLVFace *face, int a2, int a3, __int16 a4);
139 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4); 103 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4);
140 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9); 104 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9);
141 void sub_4452BB(); 105 void sub_4452BB();
142 void DialogueEnding();
143 void PrepareHouse(enum HOUSE_ID house); // idb
144 bool EnterHouse(enum HOUSE_ID uHouseID);
145 bool sub_4465DF_check_season(int a1); 106 bool sub_4465DF_check_season(int a1);
146 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename); 107 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename);
147 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb 108 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb
148 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on); 109 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on);
149 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb 110 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb
167 unsigned __int32* p = (unsigned __int32 *)ptr; 128 unsigned __int32* p = (unsigned __int32 *)ptr;
168 for ( int i=0; i < count; i++ ) 129 for ( int i=0; i < count; i++ )
169 *p++ = value; 130 *p++ = value;
170 } 131 }
171 132
172
173 namespace zlib
174 {
175 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen);
176 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen);
177 };