annotate mm7_unsorted_subs.h @ 2258:01d7e9ec51e6

sub_410D99_get_map_index cleaned up
author Grumpy7
date Mon, 03 Mar 2014 23:49:23 +0100
parents 27f2a2c2fd8f
children 43a508455445
rev   line source
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
1 #pragma once
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
2
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
3
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
4
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
5 //-------------------------------------------------------------------------
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
6 // Function declarations
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
7 void constructors();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
8
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
9 void init_event_triggers();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
10 void check_event_triggers();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
11
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
12
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
13
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
14
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
15 void ShowIntroVideo_and_LoadingScreen();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
16 unsigned int GameOverMenu(void *ecx0);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
17 int __fastcall SpawnRandomTreasure(struct MapInfo *a1, struct SpawnPointMM7 *a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
18 void DamageMonsterFromParty(signed int a1, unsigned int uActorID_Monster, struct Vec3_int_ *pVelocity);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
19
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
20 void MakeActorAIList_ODM();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
21 int MakeActorAIList_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
22 void UpdateActorAI();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
23 bool __fastcall sub_4070EF_prolly_detect_player(unsigned int uObjID, unsigned int uObj2ID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
24 bool __fastcall sub_4075DB(int a1, int a2, int a3, struct BLVFace *face);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
25 bool __fastcall sub_4077F1(int a1, int a2, int a3, struct ODMFace *face, struct BSPVertexBuffer *a5);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
26 bool __fastcall sub_407A1C(int x, int z, int y, struct Vec3_int_ v); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
27 void InitializeActors();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
28 void InitializeSpriteObjects();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
29 int __fastcall sub_4088E9(int a1, int a2, int a3, int a4, int a5, int a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
30 unsigned int SearchAliveActors(unsigned int *pTotalActors);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
31 unsigned int SearchActorByMonsterID(unsigned int *pTotalActors, int uMonsterID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
32 unsigned int SearchActorByGroup(unsigned int *pTotalActors, unsigned int uGroup);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
33 unsigned int SearchActorByID(unsigned int *pTotalActors, unsigned int a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
34 void PrepareArcomage();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
35 void DoBlt_Copy(unsigned __int16 *pPixels); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
36 void __fastcall ZBuffer_Fill(int *pZBuffer, int uTextureId, int iZValue);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
37 void __fastcall ZBuffer_DoFill(int *pZBuffer, struct Texture *pTex, int uZValue);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
38 void __fastcall ZBuffer_DoFill2(int *pZBuffer, struct Texture *a2, int a3); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
39 void SetMoonPhaseNames();
2258
01d7e9ec51e6 sub_410D99_get_map_index cleaned up
Grumpy7
parents: 2256
diff changeset
40 int sub_410D99_get_map_index(int a1);
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
41 void __fastcall LoadThumbnailLloydTexture(unsigned int uSlot, unsigned int uPlayer);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
42 void SetAttributeNames();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
43 void uGameUIFontMain_initialize();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
44 void uGameUIFontShadow_initialize();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
45 void Inventory_ItemPopupAndAlchemy();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
46 void UI_OnMouseRightClick(struct Vec2_int_ *_this);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
47 void UI_OnMouseLeftClick(int *pXY); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
48 unsigned int UI_GetHealthManaAndOtherQualitiesStringColor(signed int current_pos, signed int base_pos);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
49 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
50 struct GUIButton *__fastcall GUI_HandleHotkey(unsigned __int8 uHotkey); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
51 int __fastcall GUI_ReplaceHotkey(unsigned __int8 uOldHotkey, unsigned __int8 uNewHotkey, char bFirstCall);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
52 void DrawBuff_remaining_time_string(int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
53 bool UI_OnKeyDown(unsigned int vkKey);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
54 void GameUI_DrawItemInfo(struct ItemGen* inspect_item); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
55 void MonsterPopup_Draw(unsigned int uActorID, struct GUIWindow *window);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
56 void LoadActualSkyFrame();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
57 void Sleep6Hours();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
58 void ChestUI_WritePointedObjectStatusString();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
59 void OnChestLeftClick();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
60 void GameUI_WritePointedObjectStatusString();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
61 void __fastcall GameUI_OnPlayerPortraitLeftClick(unsigned int uPlayerID); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
62 void OnGameViewportClick();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
63 bool PauseGameDrawing();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
64 void SetUserInterface(enum PartyAlignment alignment, bool bReplace);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
65 void reset_some_strus_flt_2Cs();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
66 int __fastcall GetPortalScreenCoord(unsigned int uFaceID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
67 bool PortalFrustrum(int pNumVertices, struct BspRenderer_PortalViewportData *a2, struct BspRenderer_PortalViewportData *near_portal, int uFaceID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
68 int ODM_NearClip(unsigned int uVertexID); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
69 int ODM_FarClip(unsigned int uNumVertices);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
70 bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
71 void _42777D_CastSpell_UseWand_ShootArrow(int a1, unsigned int uPlayerID, unsigned int a4, __int16 a5, int a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
72 void _42ECB5_PlayerAttacksActor();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
73 void InitializeTurnBasedAnimations(void *);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
74 bool __fastcall sub_42F7EB_DropItemAt(unsigned int uSpriteID, int x, int y, int z, int a4, int count, int a7, unsigned __int16 attributes, ItemGen *a9);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
75 void __fastcall sub_42F960_create_object(int x, int y, int z); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
76 void CompactLayingItemsList();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
77 void _42FA66_do_explosive_impact(int a1, int a2, int a3, int a4, __int16 a5, signed int a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
78 void sub_42FBDD();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
79 void CloseWindowBackground();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
80 void ProcessInputActions();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
81 void GameUI_MsgProc();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
82 void back_to_game();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
83 void GUI_MainMenuMessageProc();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
84 double get_shading_dist_mist();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
85 void area_of_effect__damage_evaluate();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
86 void __fastcall DamagePlayerFromMonster(unsigned int uObjID, int a2, struct Vec3_int_ *pPos, signed int a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
87 void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
88 double __fastcall sub_43AE12(signed int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
89 int __fastcall _43AFE3_calc_spell_damage(int a1, int a2, signed int a3, int a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
90 void ItemDamageFromActor(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
91 void ActorDamageFromMonster(signed int attacker_id, unsigned int actor_id, struct Vec3_int_ *pVelocity, signed int a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
92 void CharacterUI_LoadPaperdollTextures();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
93 int __fastcall GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
94 bool IsDwarfPresentInParty(bool b);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
95 bool ShouldLoadTexturesForRaceAndGender(unsigned int _this);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
96 void WetsuitOn(unsigned int uPlayerID); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
97 void WetsuitOff(unsigned int uPlayerID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
98 void __fastcall PrepareDrawLists_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
99 void FindBillboardsLightLevels_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
100 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
101 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
102 void PrepareBspRenderList_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
103 void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
104 void PrepareActorRenderList_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
105 void PrepareItemsRenderList_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
106 void AddBspNodeToRenderList(unsigned int node_id);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
107 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb
2205
db94443ea4e7 _44100D_should_alter_right_panel()
Ritor1
parents: 2193
diff changeset
108 bool _44100D_should_alter_right_panel();
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
109 __int16 __fastcall sub_441A4E(int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
110 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
111 void Initialize2DA();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
112 void LoadLevel_InitializeLevelStr();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
113 void OnMapLeave();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
114 void OnMapLoad();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
115 void Level_LoadEvtAndStr(const char *pLevelName);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
116 const char *GetMapBookHintText();//sub_444564
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
117 char *GetEventHintString(unsigned int uEventID); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
118 int GetTravelTime();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
119 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
120 unsigned int SkillToMastery(unsigned int skill_value);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
121 unsigned int __fastcall GetSpellColor(signed int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
122 void __fastcall LoadGame(unsigned int uSlot); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
123 void SaveGame(bool IsAutoSAve, bool NotSaveWorld);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
124 void __fastcall DoSavegame(unsigned int uSlot); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
125 bool Initialize_GamesLOD_NewLOD();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
126 void SaveNewGame();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
127 void PrepareToLoadBLV(unsigned int bLoading);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
128 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
129 void _461103_load_level_sub();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
130 void MainMenu_Loop();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
131 char sub_4637E0_is_there_popup_onscreen();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
132 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
133 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
134 void Game_DeinitializeAndTerminate(int exitCode); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
135 void FinalInitialization();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
136 char Is_out15odm_underwater();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
137 void SetUnderwaterFog();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
138 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
139 int __fastcall ReadWindowsRegistryInt(const char *pKey, int uDefValue); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
140 void __fastcall WriteWindowsRegistryString(const char *pKey, const char *pString);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
141 void __fastcall ReadWindowsRegistryString(const char *pKeyName, char *pOutString, int uBufLen, const char *pDefaultValue);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
142 void __fastcall WriteWindowsRegistryInt(const char *pKey, int val);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
143 bool __fastcall CheckMM7CD(char c);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
144 void SecondaryInitialization();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
145 void CreateAsyncMouse();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
146 void CreateAsyncKeyboard();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
147 void MM6_Initialize(const wchar_t *pIniFilename);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
148 void MM7Initialization();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
149 void SetCurrentMenuID(enum MENU_STATE); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
150 enum MENU_STATE GetCurrentMenuID();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
151 void CreateMsgScrollWindow(signed int mscroll_id);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
152 void free_book_subwindow();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
153 void CreateScrollWindow();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
154 void OnPaperdollLeftClick();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
155 void OnPressSpace();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
156 char __fastcall DoInteractionWithTopmostZObject(int a1, int a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
157 void OracleDialogue();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
158 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
159 const char * _4B254D_SkillMasteryTeacher(int trainerInfo);
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
160 const char *ContractSelectText(int pEventCode);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
161 void SimpleHouseDialog();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
162 void CreateButtonInColumn(int a1, unsigned int a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
163 void FillAviableSkillsToTeach(int _this);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
164 void sub_4B3E1E();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
165 void DrawJoinGuildWindow(int pEventCode);
2240
1fc4223bddf6 dword_F8B1B0_MasteryBeingTaught removing redundant case bodies
Grumpy7
parents: 2239
diff changeset
166 void _4B3FE5_training_dialogue(int a4);
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
167 void NPCHireableDialogPrepare();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
168 void _4B4224_UpdateNPCTopics(int _this);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
169 void __fastcall DrawTextAtStatusBar(const char *Str, int a5);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
170 __int64 GetExperienceRequiredForLevel(int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
171 void CheckBountyRespawnAndAward();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
172 void Arena_SelectionFightLevel();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
173 void ArenaFight();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
174 void SpellBookGenerator();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
175 void UI_CreateEndConversationButton();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
176 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
177 int HouseDialogPressCloseBtn();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
178 void UIShop_Buy_Identify_Repair();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
179 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
180 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
181 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
182 int __fastcall sub_47C3D7_get_fog_specular(int a1, int a2, float a3);
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
183 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
184 unsigned int WorldPosToGridCellX(int); // weak
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
185 unsigned int WorldPosToGridCellZ(int); // weak
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
186 int GridCellToWorldPosX(int); // weak
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
187 int GridCellToWorldPosZ(int); // weak
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
188 void sub_481ED9_MessWithODMRenderParams();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
189 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
190 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
191 void sub_487DA9();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
192 double GetFogDensityByTime(struct OutdoorLocation *_this);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
193 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
194 void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
195 signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
196 bool PlayerCreation_Choose4Skills();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
197 int PlayerCreation_GetUnspentAttributePointCount();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
198 void LoadPlayerPortraintsAndVoices();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
199 void ReloadPlayerPortraits(int player_id, int face_id);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
200 void sub_491E3A();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
201 int CycleCharacter(bool backwards);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
202 void __fastcall Rest(unsigned int uHoursToSleep);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
203 void _493938_regenerate();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
204 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
205 void _494035_timed_effects__water_walking_damage__etc();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
206 unsigned int __fastcall _494820_training_time(unsigned int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
207 const char *GetReputationString(signed int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
208 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
209 void PlayerCreationUI_Draw();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
210 void PlayerCreationUI_Initialize();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
211 void DeleteCCharFont();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
212 bool PlayerCreationUI_Loop();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
213 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
214 struct SoundHeader *FindSound_BinSearch(unsigned int uStart, unsigned int uEnd, const char *pName);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
215 struct SoundData *LoadSound(const char *pSoundName, struct SoundData *pOutBuff, unsigned int uID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
216 int __fastcall sub_4AAEA6_transform(struct RenderVertexSoft *a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
217 int __fastcall sub_4AB66C(int, int); // weak
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
218 int GetSoundStrengthByDistanceFromParty(int x, int y, int z);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
219 void PlayLevelMusic();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
220 unsigned int __fastcall sub_4B0E07(unsigned int uFaceID); // idb
2246
0be4f17b7986 shop stealing cleaned up a bit
Grumpy7
parents: 2240
diff changeset
221 void sub_4B1447_party_fine(int shopId, int stealingResult, int fineToAdd);
2232
829760bc6ca6 fixing accidental .proj file commit
Grumpy7
parents: 2231
diff changeset
222 void sub_4B1523_showSpellbookInfo(int spellItemId);
2152
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
223 void ShowPopupShopItem();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
224 void RestAndHeal(__int64 uNumMinutes); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
225 void GetHouseGoodbyeSpeech();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
226 unsigned int GetGravityStrength();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
227 void UpdateUserInput_and_MapSpecificStuff();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
228 void BLV_UpdateUserInputAndOther();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
229 void ODM_UpdateUserInputAndOther();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
230 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
231 int BLV_GetFloorLevel(int x, int y, int z, unsigned int uSectorID, unsigned int *pFaceID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
232 int ODM_GetFloorLevel(int X, signed int Y, int Z, int, int *pOnWater, int *bmodel_pid, int bWaterWalk);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
233 int GetCeilingHeight(int Party_X, signed int Party_Y, int Party_ZHeight, int pFaceID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
234 void ODM_GetTerrainNormalAt(int pos_x, int pos_z, Vec3_int_ *out);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
235 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
236 void _46E0B2_collide_against_decorations();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
237 void __fastcall _46E26D_collide_against_sprites(signed int a1, signed int a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
238 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
239 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
240 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
241 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
242 int _46EF01_collision_chech_player(int a1); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
243 int _46F04E_collide_against_portals();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
244 void BLV_UpdateDoors();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
245 void UpdateActors_BLV();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
246 void UpdateActors_ODM();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
247 void UpdateObjects();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
248 int collide_against_floor_approximate(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
249 void BLV_ProcessPartyActions();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
250 void ODM_ProcessPartyActions();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
251 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);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
252 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);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
253 int sub_475665(struct BLVFace *face, int a2, __int16 a3);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
254 bool __fastcall sub_4759C9(struct BLVFace *face, int a2, int a3, __int16 a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
255 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
256 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
257 void sub_4452BB();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
258 const char *GetProfessionActionText(int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
259 struct NPCData *__fastcall GetNPCData(signed int npcid);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
260 struct NPCData * GetNewNPCData(signed int npcid, int* npc_indx);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
261 int __fastcall GetGreetType(signed int SpeakingNPC_ID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
262 void DialogueEnding();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
263 void PrepareHouse(enum HOUSE_ID house); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
264 bool EnterHouse(enum HOUSE_ID uHouseID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
265 bool sub_4465DF_check_season(int a1);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
266 int __fastcall IsActorAlive(unsigned int uType, unsigned int uParam, unsigned int uNumAlive); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
267 int NPC_EventProcessor(int npc_event_id, int entry_line = 0);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
268 void __fastcall sub_448518_npc_set_item(int npc, unsigned int item, int a3);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
269 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
270 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
271 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
272 void __fastcall ToggleActorGroupFlag(unsigned int uGroupID, unsigned int uFlag, unsigned int bToggle);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
273 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
274 void OnTimer(int);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
275 void __fastcall sub_448CF4_spawn_monsters(__int16 typeindex, __int16 level, int count, int x, int y, int z, int group, unsigned int uUniqueName);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
276 void __fastcall EventCastSpell(int uSpellID, int uSkillLevel, int uSkill, int fromx, int fromy, int fromz, int tox, int toy, int toz);//sub_448DF8
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
277 void Door_switch_animation(unsigned int uDoorID, int a2); // idb: sub_449A49
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
278 bool _449B57_test_bit(unsigned __int8 *a1, __int16 a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
279 void _449B7E_toggle_bit(unsigned char *pArray, __int16 a2, unsigned __int16 bToggle); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
280 void ShowStatusBarString(const char *pString, unsigned int uNumSeconds);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
281 void ShowNothingHereStatus();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
282 int const_2();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
283 bool TeleportToNWCDungeon();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
284 void SpawnEncounter(struct MapInfo *pMapInfo, struct SpawnPointMM7 *spawn, int a3, int a4, int a5);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
285 int __fastcall sub_44FA4C_spawn_light_elemental(int a1, int a2, int a3);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
286 int __fastcall sub_450521_ProllyDropItemAt(int ecx0, signed int a2, int a3, int a4, int a5, unsigned __int16 a6);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
287 int __fastcall _45063B_spawn_some_monster(struct MapInfo *a1, int a2);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
288 void RespawnGlobalDecorations();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
289 bool __fastcall SpawnActor(unsigned int uMonsterID);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
290 int GetAlertStatus();
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
291 int integer_sqrt(int val);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
292 int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
293 inline int round_to_int(float x) { return (int)floor(x + 0.5f); }
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
294 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count)
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
295 {
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
296 unsigned __int32* p = (unsigned __int32 *)ptr;
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
297 for ( int i=0; i < count; i++ )
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
298 *p++ = value;
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
299 }
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
300
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
301
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
302 namespace zlib
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
303 {
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
304 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
305 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen);
d44b7775fc06 Removed DirectDraw2 compatibility.
Nomad
parents:
diff changeset
306 };