Mercurial > mm7
annotate mm7_unsorted_subs.h @ 2341:d6407efaa4ea
Moving registry access stuff to Registry.h/cpp
author | Grumpy7 |
---|---|
date | Sun, 06 Apr 2014 12:56:49 +0200 |
parents | dc822157c98d |
children | 5d263539bbec |
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_4070EF_prolly_detect_player(unsigned int uObjID, unsigned int uObj2ID); | |
18 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); | |
20 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 ChestUI_WritePointedObjectStatusString(); | |
23 void OnChestLeftClick(); | |
24 void GameUI_WritePointedObjectStatusString(); | |
25 void __fastcall GameUI_OnPlayerPortraitLeftClick(unsigned int uPlayerID); // idb | |
26 void OnGameViewportClick(); | |
27 bool PauseGameDrawing(); | |
28 void SetUserInterface(enum PartyAlignment alignment, bool bReplace); | |
29 void reset_some_strus_flt_2Cs(); | |
30 int __fastcall GetPortalScreenCoord(unsigned int uFaceID); | |
31 bool PortalFrustrum(int pNumVertices, struct BspRenderer_PortalViewportData *a2, struct BspRenderer_PortalViewportData *near_portal, int uFaceID); | |
32 int ODM_NearClip(unsigned int uVertexID); // idb | |
33 int ODM_FarClip(unsigned int uNumVertices); | |
34 bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID); | |
35 void _42777D_CastSpell_UseWand_ShootArrow(int a1, unsigned int uPlayerID, unsigned int a4, __int16 a5, int a6); | |
36 void InitializeTurnBasedAnimations(void *); | |
37 void CompactLayingItemsList(); | |
38 void sub_42FBDD(); | |
39 void CloseWindowBackground(); | |
40 void GameUI_MsgProc(); | |
41 void back_to_game(); | |
42 void GUI_MainMenuMessageProc(); | |
43 double get_shading_dist_mist(); | |
44 void area_of_effect__damage_evaluate(); | |
45 void __fastcall DamagePlayerFromMonster(unsigned int uObjID, int a2, struct Vec3_int_ *pPos, signed int a4); | |
46 void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb | |
47 double __fastcall sub_43AE12(signed int a1); | |
48 void ItemDamageFromActor(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity); | |
49 void CharacterUI_LoadPaperdollTextures(); | |
2288 | 50 int GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder); |
2152 | 51 bool IsDwarfPresentInParty(bool b); |
52 bool ShouldLoadTexturesForRaceAndGender(unsigned int _this); | |
53 void WetsuitOn(unsigned int uPlayerID); // idb | |
54 void WetsuitOff(unsigned int uPlayerID); | |
55 void __fastcall PrepareDrawLists_BLV(); | |
56 void FindBillboardsLightLevels_BLV(); | |
57 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); | |
58 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); | |
59 void PrepareBspRenderList_BLV(); | |
60 void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID); | |
61 void PrepareActorRenderList_BLV(); | |
62 void PrepareItemsRenderList_BLV(); | |
63 void AddBspNodeToRenderList(unsigned int node_id); | |
64 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb | |
2205 | 65 bool _44100D_should_alter_right_panel(); |
2152 | 66 __int16 __fastcall sub_441A4E(int a1); |
67 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb | |
68 void Initialize2DA(); | |
69 void LoadLevel_InitializeLevelStr(); | |
70 void OnMapLeave(); | |
71 void OnMapLoad(); | |
72 void Level_LoadEvtAndStr(const char *pLevelName); | |
73 const char *GetMapBookHintText();//sub_444564 | |
74 char *GetEventHintString(unsigned int uEventID); // idb | |
75 int GetTravelTime(); | |
76 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4); | |
77 unsigned int SkillToMastery(unsigned int skill_value); | |
78 unsigned int __fastcall GetSpellColor(signed int a1); | |
79 void __fastcall LoadGame(unsigned int uSlot); // idb | |
80 void SaveGame(bool IsAutoSAve, bool NotSaveWorld); | |
81 void __fastcall DoSavegame(unsigned int uSlot); // idb | |
82 bool Initialize_GamesLOD_NewLOD(); | |
83 void SaveNewGame(); | |
84 void PrepareToLoadBLV(unsigned int bLoading); | |
85 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2); | |
86 void _461103_load_level_sub(); | |
87 void MainMenu_Loop(); | |
88 char sub_4637E0_is_there_popup_onscreen(); | |
89 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(); | |
90 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen); | |
91 void Game_DeinitializeAndTerminate(int exitCode); // idb | |
92 void FinalInitialization(); | |
93 char Is_out15odm_underwater(); | |
94 void SetUnderwaterFog(); | |
95 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box); | |
96 bool __fastcall CheckMM7CD(char c); | |
97 void SecondaryInitialization(); | |
98 void CreateAsyncMouse(); | |
99 void CreateAsyncKeyboard(); | |
100 void MM6_Initialize(const wchar_t *pIniFilename); | |
101 void MM7Initialization(); | |
102 void SetCurrentMenuID(enum MENU_STATE); // idb | |
103 enum MENU_STATE GetCurrentMenuID(); | |
104 void CreateMsgScrollWindow(signed int mscroll_id); | |
105 void free_book_subwindow(); | |
106 void CreateScrollWindow(); | |
107 void OnPaperdollLeftClick(); | |
108 void OnPressSpace(); | |
109 char __fastcall DoInteractionWithTopmostZObject(int a1, int a2); | |
110 void OracleDialogue(); | |
111 void __fastcall ClickNPCTopic(signed int uMessageParam); | |
2239
699bd6ee5ad0
dword_F8B1B0 to dword_F8B1B0_MasteryBeingTaught, some final touches to _4B254D_SkillMasteryTeacher
Grumpy7
parents:
2237
diff
changeset
|
112 const char * _4B254D_SkillMasteryTeacher(int trainerInfo); |
2152 | 113 const char *ContractSelectText(int pEventCode); |
114 void SimpleHouseDialog(); | |
115 void CreateButtonInColumn(int a1, unsigned int a2); | |
116 void FillAviableSkillsToTeach(int _this); | |
117 void sub_4B3E1E(); | |
118 void DrawJoinGuildWindow(int pEventCode); | |
2240
1fc4223bddf6
dword_F8B1B0_MasteryBeingTaught removing redundant case bodies
Grumpy7
parents:
2239
diff
changeset
|
119 void _4B3FE5_training_dialogue(int a4); |
2152 | 120 void NPCHireableDialogPrepare(); |
121 void _4B4224_UpdateNPCTopics(int _this); | |
122 void __fastcall DrawTextAtStatusBar(const char *Str, int a5); | |
123 __int64 GetExperienceRequiredForLevel(int a1); | |
124 void CheckBountyRespawnAndAward(); | |
125 void Arena_SelectionFightLevel(); | |
126 void ArenaFight(); | |
127 void SpellBookGenerator(); | |
128 void UI_CreateEndConversationButton(); | |
129 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam); | |
130 int HouseDialogPressCloseBtn(); | |
131 void UIShop_Buy_Identify_Repair(); | |
132 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); | |
133 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa); | |
134 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
|
135 int __fastcall sub_47C3D7_get_fog_specular(int a1, int a2, float a3); |
2152 | 136 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); |
137 unsigned int WorldPosToGridCellX(int); // weak | |
138 unsigned int WorldPosToGridCellZ(int); // weak | |
139 int GridCellToWorldPosX(int); // weak | |
140 int GridCellToWorldPosZ(int); // weak | |
141 void sub_481ED9_MessWithODMRenderParams(); | |
142 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y); | |
143 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); | |
144 void sub_487DA9(); | |
145 double GetFogDensityByTime(struct OutdoorLocation *_this); | |
146 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6); | |
147 void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6); | |
148 signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4); | |
149 bool PlayerCreation_Choose4Skills(); | |
150 int PlayerCreation_GetUnspentAttributePointCount(); | |
151 void LoadPlayerPortraintsAndVoices(); | |
152 void ReloadPlayerPortraits(int player_id, int face_id); | |
153 void sub_491E3A(); | |
154 int CycleCharacter(bool backwards); | |
155 void __fastcall Rest(unsigned int uHoursToSleep); | |
156 void _493938_regenerate(); | |
157 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration); | |
158 void _494035_timed_effects__water_walking_damage__etc(); | |
159 unsigned int __fastcall _494820_training_time(unsigned int a1); | |
160 const char *GetReputationString(signed int a1); | |
161 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6); | |
162 void PlayerCreationUI_Draw(); | |
163 void PlayerCreationUI_Initialize(); | |
164 void DeleteCCharFont(); | |
165 bool PlayerCreationUI_Loop(); | |
166 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim); | |
167 struct SoundHeader *FindSound_BinSearch(unsigned int uStart, unsigned int uEnd, const char *pName); | |
168 struct SoundData *LoadSound(const char *pSoundName, struct SoundData *pOutBuff, unsigned int uID); | |
169 int __fastcall sub_4AAEA6_transform(struct RenderVertexSoft *a1); | |
170 int __fastcall sub_4AB66C(int, int); // weak | |
171 int GetSoundStrengthByDistanceFromParty(int x, int y, int z); | |
172 void PlayLevelMusic(); | |
173 unsigned int __fastcall sub_4B0E07(unsigned int uFaceID); // idb | |
2246 | 174 void sub_4B1447_party_fine(int shopId, int stealingResult, int fineToAdd); |
2232 | 175 void sub_4B1523_showSpellbookInfo(int spellItemId); |
2152 | 176 void ShowPopupShopItem(); |
177 void RestAndHeal(__int64 uNumMinutes); // idb | |
178 void GetHouseGoodbyeSpeech(); | |
179 unsigned int GetGravityStrength(); | |
180 void UpdateUserInput_and_MapSpecificStuff(); | |
181 void BLV_UpdateUserInputAndOther(); | |
182 void ODM_UpdateUserInputAndOther(); | |
183 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2); | |
184 int BLV_GetFloorLevel(int x, int y, int z, unsigned int uSectorID, unsigned int *pFaceID); | |
185 int ODM_GetFloorLevel(int X, signed int Y, int Z, int, int *pOnWater, int *bmodel_pid, int bWaterWalk); | |
186 int GetCeilingHeight(int Party_X, signed int Party_Y, int Party_ZHeight, int pFaceID); | |
187 void ODM_GetTerrainNormalAt(int pos_x, int pos_z, Vec3_int_ *out); | |
188 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID); | |
189 void _46E0B2_collide_against_decorations(); | |
190 void __fastcall _46E26D_collide_against_sprites(signed int a1, signed int a2); | |
191 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb | |
192 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0); | |
193 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
194 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this); | |
195 int _46EF01_collision_chech_player(int a1); // idb | |
196 int _46F04E_collide_against_portals(); | |
197 void BLV_UpdateDoors(); | |
198 void UpdateActors_BLV(); | |
199 void UpdateActors_ODM(); | |
200 void UpdateObjects(); | |
201 int collide_against_floor_approximate(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
202 void BLV_ProcessPartyActions(); | |
203 void ODM_ProcessPartyActions(); | |
204 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); | |
205 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); | |
206 int sub_475665(struct BLVFace *face, int a2, __int16 a3); | |
207 bool __fastcall sub_4759C9(struct BLVFace *face, int a2, int a3, __int16 a4); | |
208 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4); | |
209 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9); | |
210 void sub_4452BB(); | |
211 const char *GetProfessionActionText(int a1); | |
212 struct NPCData *__fastcall GetNPCData(signed int npcid); | |
213 struct NPCData * GetNewNPCData(signed int npcid, int* npc_indx); | |
214 int __fastcall GetGreetType(signed int SpeakingNPC_ID); | |
215 void DialogueEnding(); | |
216 void PrepareHouse(enum HOUSE_ID house); // idb | |
217 bool EnterHouse(enum HOUSE_ID uHouseID); | |
218 bool sub_4465DF_check_season(int a1); | |
219 int __fastcall IsActorAlive(unsigned int uType, unsigned int uParam, unsigned int uNumAlive); // idb | |
220 int NPC_EventProcessor(int npc_event_id, int entry_line = 0); | |
221 void __fastcall sub_448518_npc_set_item(int npc, unsigned int item, int a3); | |
222 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename); | |
223 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb | |
224 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on); | |
225 void __fastcall ToggleActorGroupFlag(unsigned int uGroupID, unsigned int uFlag, unsigned int bToggle); | |
226 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb | |
227 void OnTimer(int); | |
228 void __fastcall sub_448CF4_spawn_monsters(__int16 typeindex, __int16 level, int count, int x, int y, int z, int group, unsigned int uUniqueName); | |
229 void __fastcall EventCastSpell(int uSpellID, int uSkillLevel, int uSkill, int fromx, int fromy, int fromz, int tox, int toy, int toz);//sub_448DF8 | |
230 void Door_switch_animation(unsigned int uDoorID, int a2); // idb: sub_449A49 | |
231 bool _449B57_test_bit(unsigned __int8 *a1, __int16 a2); | |
232 void _449B7E_toggle_bit(unsigned char *pArray, __int16 a2, unsigned __int16 bToggle); // idb | |
233 void ShowStatusBarString(const char *pString, unsigned int uNumSeconds); | |
234 void ShowNothingHereStatus(); | |
235 int const_2(); | |
236 bool TeleportToNWCDungeon(); | |
237 void SpawnEncounter(struct MapInfo *pMapInfo, struct SpawnPointMM7 *spawn, int a3, int a4, int a5); | |
238 int __fastcall sub_44FA4C_spawn_light_elemental(int a1, int a2, int a3); | |
239 int __fastcall sub_450521_ProllyDropItemAt(int ecx0, signed int a2, int a3, int a4, int a5, unsigned __int16 a6); | |
240 int __fastcall _45063B_spawn_some_monster(struct MapInfo *a1, int a2); | |
241 void RespawnGlobalDecorations(); | |
242 bool __fastcall SpawnActor(unsigned int uMonsterID); | |
243 int GetAlertStatus(); | |
244 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count) | |
245 { | |
246 unsigned __int32* p = (unsigned __int32 *)ptr; | |
247 for ( int i=0; i < count; i++ ) | |
248 *p++ = value; | |
249 } | |
250 | |
251 | |
252 namespace zlib | |
253 { | |
254 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen); | |
255 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen); | |
256 }; |