Mercurial > mm7
annotate mm7_unsorted_subs.h @ 2348:4100fb5c4913
Created header files for UI cpp files
author | Grumpy7 |
---|---|
date | Wed, 09 Apr 2014 21:22:06 +0200 |
parents | 13e15d77b0f8 |
children | 7ebc07cd6c53 |
rev | line source |
---|---|
2152 | 1 #pragma once |
2336 | 2 #include <stdint.h> |
3 #include <math.h> | |
2152 | 4 |
5 | |
6 //------------------------------------------------------------------------- | |
7 // Function declarations | |
8 void init_event_triggers(); | |
9 void check_event_triggers(); | |
10 | |
11 | |
12 | |
13 | |
2290 | 14 //void ShowMM7IntroVideo_and_LoadingScreen(); |
2152 | 15 unsigned int GameOverMenu(void *ecx0); |
16 | |
17 bool __fastcall sub_4075DB(int a1, int a2, int a3, struct BLVFace *face); | |
18 bool __fastcall sub_4077F1(int a1, int a2, int a3, struct ODMFace *face, struct BSPVertexBuffer *a5); | |
19 bool __fastcall sub_407A1C(int x, int z, int y, struct Vec3_int_ v); // idb | |
20 void reset_some_strus_flt_2Cs(); | |
21 void InitializeTurnBasedAnimations(void *); | |
22 double get_shading_dist_mist(); | |
23 void area_of_effect__damage_evaluate(); | |
24 void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb | |
25 double __fastcall sub_43AE12(signed int a1); | |
26 void ItemDamageFromActor(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity); | |
27 void FindBillboardsLightLevels_BLV(); | |
28 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); | |
29 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); | |
2205 | 30 bool _44100D_should_alter_right_panel(); |
2152 | 31 __int16 __fastcall sub_441A4E(int a1); |
32 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb | |
33 void Initialize2DA(); | |
34 void LoadLevel_InitializeLevelStr(); | |
35 void OnMapLeave(); | |
36 void OnMapLoad(); | |
37 void Level_LoadEvtAndStr(const char *pLevelName); | |
38 const char *GetMapBookHintText();//sub_444564 | |
39 int GetTravelTime(); | |
40 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4); | |
41 unsigned int SkillToMastery(unsigned int skill_value); | |
42 unsigned int __fastcall GetSpellColor(signed int a1); | |
43 void PrepareToLoadBLV(unsigned int bLoading); | |
44 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2); | |
45 void _461103_load_level_sub(); | |
46 void MainMenu_Loop(); | |
47 char sub_4637E0_is_there_popup_onscreen(); | |
48 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(); | |
49 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen); | |
50 void Game_DeinitializeAndTerminate(int exitCode); // idb | |
51 void FinalInitialization(); | |
52 char Is_out15odm_underwater(); | |
53 void SetUnderwaterFog(); | |
54 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box); | |
55 bool __fastcall CheckMM7CD(char c); | |
56 void SecondaryInitialization(); | |
57 void CreateAsyncMouse(); | |
58 void CreateAsyncKeyboard(); | |
59 void MM6_Initialize(const wchar_t *pIniFilename); | |
60 void MM7Initialization(); | |
61 void SetCurrentMenuID(enum MENU_STATE); // idb | |
62 enum MENU_STATE GetCurrentMenuID(); | |
63 void OracleDialogue(); | |
2239
699bd6ee5ad0
dword_F8B1B0 to dword_F8B1B0_MasteryBeingTaught, some final touches to _4B254D_SkillMasteryTeacher
Grumpy7
parents:
2237
diff
changeset
|
64 const char * _4B254D_SkillMasteryTeacher(int trainerInfo); |
2152 | 65 void SimpleHouseDialog(); |
66 void CreateButtonInColumn(int a1, unsigned int a2); | |
67 void sub_4B3E1E(); | |
68 void DrawJoinGuildWindow(int pEventCode); | |
2240
1fc4223bddf6
dword_F8B1B0_MasteryBeingTaught removing redundant case bodies
Grumpy7
parents:
2239
diff
changeset
|
69 void _4B3FE5_training_dialogue(int a4); |
2152 | 70 void __fastcall DrawTextAtStatusBar(const char *Str, int a5); |
71 __int64 GetExperienceRequiredForLevel(int a1); | |
72 void CheckBountyRespawnAndAward(); | |
73 void Arena_SelectionFightLevel(); | |
74 void ArenaFight(); | |
75 void SpellBookGenerator(); | |
76 void UI_CreateEndConversationButton(); | |
77 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam); | |
78 int HouseDialogPressCloseBtn(); | |
79 void UIShop_Buy_Identify_Repair(); | |
80 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); | |
81 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa); | |
82 unsigned int GetLevelFogColor(); | |
2193
4842f58715ea
sub_47C3D7_get_fog_related_stuff to sub_47C3D7_get_fog_specular cleanup, IsTerrainSlopeTooHigh restoring commented out min,min/max,max implementation, some small changes in OnMapLoad, sub_4465DF_check_season attempted to pick the best readabilty/maintainability tradeoff
Grumpy7
parents:
2155
diff
changeset
|
83 int __fastcall sub_47C3D7_get_fog_specular(int a1, int a2, float a3); |
2152 | 84 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); |
85 unsigned int WorldPosToGridCellX(int); // weak | |
86 unsigned int WorldPosToGridCellZ(int); // weak | |
87 int GridCellToWorldPosX(int); // weak | |
88 int GridCellToWorldPosZ(int); // weak | |
89 void sub_481ED9_MessWithODMRenderParams(); | |
90 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y); | |
91 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); | |
92 void sub_487DA9(); | |
93 double GetFogDensityByTime(struct OutdoorLocation *_this); | |
94 bool PlayerCreation_Choose4Skills(); | |
95 void LoadPlayerPortraintsAndVoices(); | |
96 void ReloadPlayerPortraits(int player_id, int face_id); | |
97 void sub_491E3A(); | |
98 void _493938_regenerate(); | |
99 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration); | |
100 void _494035_timed_effects__water_walking_damage__etc(); | |
101 unsigned int __fastcall _494820_training_time(unsigned int a1); | |
102 const char *GetReputationString(signed int a1); | |
103 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6); | |
104 void PlayerCreationUI_Draw(); | |
105 void PlayerCreationUI_Initialize(); | |
106 void DeleteCCharFont(); | |
107 bool PlayerCreationUI_Loop(); | |
108 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim); | |
2246 | 109 void sub_4B1447_party_fine(int shopId, int stealingResult, int fineToAdd); |
2232 | 110 void sub_4B1523_showSpellbookInfo(int spellItemId); |
2152 | 111 void ShowPopupShopItem(); |
112 void GetHouseGoodbyeSpeech(); | |
113 unsigned int GetGravityStrength(); | |
114 void UpdateUserInput_and_MapSpecificStuff(); | |
115 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2); | |
116 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID); | |
117 void _46E0B2_collide_against_decorations(); | |
118 void __fastcall _46E26D_collide_against_sprites(signed int a1, signed int a2); | |
119 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb | |
120 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0); | |
121 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
122 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this); | |
123 int _46EF01_collision_chech_player(int a1); // idb | |
124 int _46F04E_collide_against_portals(); | |
125 void UpdateObjects(); | |
126 int collide_against_floor_approximate(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
127 bool sub_47531C(int a1, int *a2, int pos_x, int pos_y, int pos_z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10); | |
128 bool sub_4754BF(int a1, int *a2, int X, int Y, int Z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10, int a11); | |
129 int sub_475665(struct BLVFace *face, int a2, __int16 a3); | |
130 bool __fastcall sub_4759C9(struct BLVFace *face, int a2, int a3, __int16 a4); | |
131 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4); | |
132 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9); | |
133 void sub_4452BB(); | |
134 void DialogueEnding(); | |
135 void PrepareHouse(enum HOUSE_ID house); // idb | |
136 bool EnterHouse(enum HOUSE_ID uHouseID); | |
137 bool sub_4465DF_check_season(int a1); | |
138 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename); | |
139 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb | |
140 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on); | |
141 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb | |
142 void OnTimer(int); | |
143 void __fastcall sub_448CF4_spawn_monsters(__int16 typeindex, __int16 level, int count, int x, int y, int z, int group, unsigned int uUniqueName); | |
144 bool _449B57_test_bit(unsigned __int8 *a1, __int16 a2); | |
145 void _449B7E_toggle_bit(unsigned char *pArray, __int16 a2, unsigned __int16 bToggle); // idb | |
146 void ShowStatusBarString(const char *pString, unsigned int uNumSeconds); | |
147 void ShowNothingHereStatus(); | |
148 int const_2(); | |
149 bool TeleportToNWCDungeon(); | |
150 void SpawnEncounter(struct MapInfo *pMapInfo, struct SpawnPointMM7 *spawn, int a3, int a4, int a5); | |
151 int __fastcall sub_44FA4C_spawn_light_elemental(int a1, int a2, int a3); | |
152 int __fastcall sub_450521_ProllyDropItemAt(int ecx0, signed int a2, int a3, int a4, int a5, unsigned __int16 a6); | |
153 int __fastcall _45063B_spawn_some_monster(struct MapInfo *a1, int a2); | |
154 void RespawnGlobalDecorations(); | |
155 bool __fastcall SpawnActor(unsigned int uMonsterID); | |
156 int GetAlertStatus(); | |
157 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count) | |
158 { | |
159 unsigned __int32* p = (unsigned __int32 *)ptr; | |
160 for ( int i=0; i < count; i++ ) | |
161 *p++ = value; | |
162 } | |
163 | |
164 | |
165 namespace zlib | |
166 { | |
167 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen); | |
168 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen); | |
169 }; |