Mercurial > mm7
changeset 2343:5d263539bbec
Moving functions from unsorted_subs.h pt5
author | Grumpy7 |
---|---|
date | Sun, 06 Apr 2014 21:12:24 +0200 |
parents | d7f4dac06dc0 |
children | 13e15d77b0f8 |
files | AudioPlayer.h CastSpellInfo.h Chest.cpp Chest.h Events.h GUIWindow.h Game.cpp Game.h Indoor.h Items.h Keyboard.h NPC.h Outdoor.h PaletteManager.cpp PaletteManager.h Party.h Player.h Render.h SaveLoad.h Spells.h SpriteObject.h UI/Books/UIMapBook.cpp UI/UIHouses.cpp UI/UIMainMenu.cpp UI/UiGame.cpp Viewport.h mm7_3.cpp mm7_4.cpp mm7_unsorted_subs.h |
diffstat | 29 files changed, 122 insertions(+), 100 deletions(-) [+] |
line wrap: on
line diff
--- a/AudioPlayer.h Sun Apr 06 12:57:04 2014 +0200 +++ b/AudioPlayer.h Sun Apr 06 21:12:24 2014 +0200 @@ -356,3 +356,9 @@ #pragma pack(pop) extern std::array<stru339_spell_sound, 4> stru_A750F8; extern std::array<stru339_spell_sound, 4> AA1058_PartyQuickSpellSound; + +struct SoundHeader *FindSound_BinSearch(unsigned int uStart, unsigned int uEnd, const char *pName); +struct SoundData *LoadSound(const char *pSoundName, struct SoundData *pOutBuff, unsigned int uID); +int __fastcall sub_4AB66C(int, int); // weak +int GetSoundStrengthByDistanceFromParty(int x, int y, int z); +void PlayLevelMusic();
--- a/CastSpellInfo.h Sun Apr 06 12:57:04 2014 +0200 +++ b/CastSpellInfo.h Sun Apr 06 21:12:24 2014 +0200 @@ -32,3 +32,5 @@ int sound_id; }; #pragma pack(pop) + +void _42777D_CastSpell_UseWand_ShootArrow(int a1, unsigned int uPlayerID, unsigned int a4, __int16 a5, int a6); \ No newline at end of file
--- a/Chest.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/Chest.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -195,7 +195,7 @@ } //----- (0042038D) -------------------------------------------------------- -void ChestUI_WritePointedObjectStatusString() +void Chest::ChestUI_WritePointedObjectStatusString() { int v1; // ecx@2 POINT cursor; // [sp+8h] [bp-8h]@1 @@ -768,7 +768,7 @@ } // 506128: using guessed type int areWeLoadingTexture; //----- (00420E01) -------------------------------------------------------- -void OnChestLeftClick() +void Chest::OnChestLeftClick() { int v2; // eax@2 int v3; // ebx@4
--- a/Chest.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Chest.h Sun Apr 06 21:12:24 2014 +0200 @@ -60,6 +60,8 @@ static bool Open(signed int uChestID); static void DrawChestUI(signed int uChestID); static void ToggleFlag(signed int uChestID, unsigned __int16 uFlag, unsigned int bToggle); + static void ChestUI_WritePointedObjectStatusString(); + static void OnChestLeftClick(); unsigned __int16 uChestBitmapID; //0 unsigned __int16 uFlags; //2
--- a/Events.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Events.h Sun Apr 06 21:12:24 2014 +0200 @@ -1,5 +1,5 @@ #pragma once - +#include <array> @@ -334,6 +334,7 @@ void Initialize_GlobalEVT(); void LoadLevel_InitializeLevelEvt(); void EventProcessor(int uEventID, int a2, int a3, int entry_line = 0); +char *GetEventHintString(unsigned int uEventID); // idb
--- a/GUIWindow.h Sun Apr 06 12:57:04 2014 +0200 +++ b/GUIWindow.h Sun Apr 06 21:12:24 2014 +0200 @@ -608,6 +608,11 @@ void DrawBuff_remaining_time_string(int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font); void GameUI_DrawItemInfo(struct ItemGen* inspect_item); // idb void MonsterPopup_Draw(unsigned int uActorID, struct GUIWindow *window); +void SetUserInterface(enum PartyAlignment alignment, bool bReplace); +void CreateMsgScrollWindow(signed int mscroll_id); +void free_book_subwindow(); +void CreateScrollWindow(); +void OnPaperdollLeftClick(); void __fastcall ZBuffer_Fill(int *pZBuffer, int uTextureId, int iZValue);
--- a/Game.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/Game.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -49,6 +49,7 @@ #include "mm7.h" #include "Sprites.h" #include "Registry.h" +#include "Chest.h" @@ -4055,7 +4056,7 @@ pPlayers[uActiveCharacter]->OnInventoryLeftClick(); continue; } - OnChestLeftClick(); + Chest::OnChestLeftClick(); continue; case UIMSG_InventoryLeftClick: pPlayers[uActiveCharacter]->OnInventoryLeftClick();
--- a/Game.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Game.h Sun Apr 06 21:12:24 2014 +0200 @@ -176,4 +176,10 @@ -extern Game *pGame; \ No newline at end of file +extern Game *pGame; + +void sub_42FBDD(); +void CloseWindowBackground(); +void GameUI_MsgProc(); +void back_to_game(); +void GUI_MainMenuMessageProc(); \ No newline at end of file
--- a/Indoor.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Indoor.h Sun Apr 06 21:12:24 2014 +0200 @@ -535,3 +535,20 @@ + +int __fastcall GetPortalScreenCoord(unsigned int uFaceID); +bool PortalFrustrum(int pNumVertices, struct BspRenderer_PortalViewportData *a2, struct BspRenderer_PortalViewportData *near_portal, int uFaceID); +void PrepareBspRenderList_BLV(); +void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID); +void PrepareActorRenderList_BLV(); +void PrepareItemsRenderList_BLV(); +void AddBspNodeToRenderList(unsigned int node_id); +void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb +char __fastcall DoInteractionWithTopmostZObject(int a1, int a2); +int __fastcall sub_4AAEA6_transform(struct RenderVertexSoft *a1); +unsigned int __fastcall sub_4B0E07(unsigned int uFaceID); // idb +void BLV_UpdateUserInputAndOther(); +int BLV_GetFloorLevel(int x, int y, int z, unsigned int uSectorID, unsigned int *pFaceID); +void BLV_UpdateDoors(); +void UpdateActors_BLV(); +void BLV_ProcessPartyActions();
--- a/Items.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Items.h Sun Apr 06 21:12:24 2014 +0200 @@ -514,4 +514,8 @@ int field_14_exprie_month; int field_18_expire_year; }; -#pragma pack(pop) \ No newline at end of file +#pragma pack(pop) + + +int GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder); +void FillAviableSkillsToTeach(int _this); \ No newline at end of file
--- a/Keyboard.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Keyboard.h Sun Apr 06 21:12:24 2014 +0200 @@ -96,5 +96,6 @@ +void OnPressSpace(); extern struct KeyboardActionMapping *pKeyActionMap; \ No newline at end of file
--- a/NPC.h Sun Apr 06 12:57:04 2014 +0200 +++ b/NPC.h Sun Apr 06 21:12:24 2014 +0200 @@ -206,3 +206,7 @@ bool CheckHiredNPCSpeciality(unsigned int uProfession); int UseNPCSkill(NPCProf profession); +void __fastcall ClickNPCTopic(signed int uMessageParam); +const char *ContractSelectText(int pEventCode); +void NPCHireableDialogPrepare(); +void _4B4224_UpdateNPCTopics(int _this);
--- a/Outdoor.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Outdoor.h Sun Apr 06 21:12:24 2014 +0200 @@ -247,6 +247,12 @@ extern struct OutdoorLocation *pOutdoor; +void ODM_UpdateUserInputAndOther(); +int ODM_GetFloorLevel(int X, signed int Y, int Z, int, int *pOnWater, int *bmodel_pid, int bWaterWalk); +int GetCeilingHeight(int Party_X, signed int Party_Y, int Party_ZHeight, int pFaceID); +void ODM_GetTerrainNormalAt(int pos_x, int pos_z, Vec3_int_ *out); +void UpdateActors_ODM(); +void ODM_ProcessPartyActions();
--- a/PaletteManager.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/PaletteManager.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -5,6 +5,7 @@ #include "Game.h" #include "LOD.h" #include "Log.h" +#include "OurMath.h" #include "mm7_data.h" @@ -953,4 +954,28 @@ result = (unsigned __int16 *)pPaletteManager->pPalette1[a1]; return result; } -// 4D864C: using guessed type char byte_4D864C; \ No newline at end of file +// 4D864C: using guessed type char byte_4D864C; + + +//----- (0048A959) -------------------------------------------------------- +signed int ReplaceHSV(unsigned int uColor, float h_replace, float s_replace, float v_replace) +{ + float r = ((uColor & 0x00FF0000) >> 16) / 255.0f, + g = ((uColor & 0x0000FF00) >> 8) / 255.0f, + b = (uColor & 0x000000FF) / 255.0f; + + float h, s, v; + RGB2HSV(&h, &s, r, g, b, &v); + + if ( h_replace != -1.0 ) + h = h_replace; + if ( s_replace != -1.0 ) + s = s_replace; + if ( v_replace != -1.0 ) + v = v_replace; + HSV2RGB(&r, &g, &b, h, s, v); + + return (((uint)round_to_int(r * 255.0f) & 0xFF) << 16) | + (((uint)round_to_int(g * 255.0f) & 0xFF) << 8) | + (((uint)round_to_int(b * 255.0f) & 0xFF)); +} \ No newline at end of file
--- a/PaletteManager.h Sun Apr 06 12:57:04 2014 +0200 +++ b/PaletteManager.h Sun Apr 06 21:12:24 2014 +0200 @@ -47,4 +47,7 @@ +bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6); +void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6); +signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4); extern PaletteManager *pPaletteManager; \ No newline at end of file
--- a/Party.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Party.h Sun Apr 06 21:12:24 2014 +0200 @@ -325,3 +325,5 @@ extern struct ActionQueue *pPartyActionQueue; bool TestPartyQuestBit(PARTY_QUEST_BITS bit); +void __fastcall Rest(unsigned int uHoursToSleep); +void RestAndHeal(__int64 uNumMinutes); // idb
--- a/Player.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Player.h Sun Apr 06 21:12:24 2014 +0200 @@ -846,4 +846,10 @@ }; #pragma pack(pop) +void __fastcall DamagePlayerFromMonster(unsigned int uObjID, int a2, struct Vec3_int_ *pPos, signed int a4); +bool IsDwarfPresentInParty(bool b); +bool ShouldLoadTexturesForRaceAndGender(unsigned int _this); +int PlayerCreation_GetUnspentAttributePointCount(); +int CycleCharacter(bool backwards); + extern NZIArray<struct Player *, 5> pPlayers; \ No newline at end of file
--- a/Render.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Render.h Sun Apr 06 21:12:24 2014 +0200 @@ -514,6 +514,8 @@ }; #pragma pack(pop) +bool PauseGameDrawing(); + extern struct IDirectDrawClipper *pDDrawClipper; extern struct Render *pRenderer; // idb extern struct pUnkTerrain *Unks; @@ -569,4 +571,8 @@ extern RenderVertexSoft array_50AC10[50]; extern RenderVertexSoft array_73D150[20]; -extern RenderVertexD3D3 d3d_vertex_buffer[50]; \ No newline at end of file +extern RenderVertexD3D3 d3d_vertex_buffer[50]; + + +int ODM_NearClip(unsigned int uVertexID); // idb +int ODM_FarClip(unsigned int uNumVertices); \ No newline at end of file
--- a/SaveLoad.h Sun Apr 06 12:57:04 2014 +0200 +++ b/SaveLoad.h Sun Apr 06 21:12:24 2014 +0200 @@ -44,6 +44,11 @@ #pragma pack(pop) +void __fastcall LoadGame(unsigned int uSlot); // idb +void SaveGame(bool IsAutoSAve, bool NotSaveWorld); +void __fastcall DoSavegame(unsigned int uSlot); // idb +bool Initialize_GamesLOD_NewLOD(); +void SaveNewGame(); extern unsigned int uNumSavegameFiles; extern std::array<unsigned int, 45> pSavegameUsedSlots;
--- a/Spells.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Spells.h Sun Apr 06 21:12:24 2014 +0200 @@ -286,3 +286,5 @@ extern std::array<unsigned int, 25> wand_spell_ids; int _43AFE3_calc_spell_damage(int spellId, int spellLevel, signed int skillMastery, int currentHp); + +bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID); \ No newline at end of file
--- a/SpriteObject.h Sun Apr 06 12:57:04 2014 +0200 +++ b/SpriteObject.h Sun Apr 06 21:12:24 2014 +0200 @@ -53,6 +53,7 @@ #pragma pack(pop) +void CompactLayingItemsList(); extern size_t uNumSpriteObjects; extern std::array<SpriteObject, MAX_SPRITE_OBJECTS> pSpriteObjects; \ No newline at end of file
--- a/UI/Books/UIMapBook.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/UI/Books/UIMapBook.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -1,4 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS +#include "..\..\Events.h" #include "..\..\mm7_unsorted_subs.h" #include "..\..\MM7.h" #include "..\..\Render.h"
--- a/UI/UIHouses.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/UI/UIHouses.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -1,5 +1,6 @@ #define _CRT_SECURE_NO_WARNINGS #include "..\mm7_unsorted_subs.h" +#include "..\SaveLoad.h" #include "..\Texture.h" #include "..\mm7_data.h" #include "..\ErrorHandling.h" @@ -23,6 +24,7 @@ #include "..\MapInfo.h" #include "..\Log.h" #include "..\Game.h" +#include "..\CastSpellInfo.h" #include "..\stru159.h" int uHouse_ExitPic; // weak
--- a/UI/UIMainMenu.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/UI/UIMainMenu.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -14,6 +14,7 @@ #include "..\mm7_data.h" #include "..\mm7_unsorted_subs.h" +#include "..\Game.h" //----- (0041B578) --------------------------------------------------------
--- a/UI/UiGame.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/UI/UiGame.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -1,4 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS +#include "..\Events.h" #include "..\mm7_unsorted_subs.h" #include "..\Texture.h" #include "..\MM7.h" @@ -32,6 +33,7 @@ #include "..\BSPModel.h" #include "..\OurMath.h" #include "..\Level/Decoration.h" +#include "..\Chest.h" int uTextureID_GameUI_CharSelectionFrame; // 50C98C @@ -1342,7 +1344,7 @@ //окно(область) ящика------------------------------------------- if ( pCurrentScreen == SCREEN_CHEST ) { - ChestUI_WritePointedObjectStatusString(); + Chest::ChestUI_WritePointedObjectStatusString(); if ( pMouse->uPointingObjectID == 0 ) { if ( uLastPointedObjectID != 0 )
--- a/Viewport.h Sun Apr 06 12:57:04 2014 +0200 +++ b/Viewport.h Sun Apr 06 21:12:24 2014 +0200 @@ -31,6 +31,7 @@ }; #pragma pack(pop) +void OnGameViewportClick(); extern struct Viewport *pViewport;
--- a/mm7_3.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/mm7_3.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -32,6 +32,7 @@ #include "Level/Decoration.h" #include "mm7_unsorted_subs.h" #include "mm7_data.h" +#include "SaveLoad.h" #include "MM7.h"
--- a/mm7_4.cpp Sun Apr 06 12:57:04 2014 +0200 +++ b/mm7_4.cpp Sun Apr 06 21:12:24 2014 +0200 @@ -142,28 +142,6 @@ array_77EC08[i].field_108 = 0; } -//----- (0048A959) -------------------------------------------------------- -signed int ReplaceHSV(unsigned int uColor, float h_replace, float s_replace, float v_replace) -{ - float r = ((uColor & 0x00FF0000) >> 16) / 255.0f, - g = ((uColor & 0x0000FF00) >> 8) / 255.0f, - b = (uColor & 0x000000FF) / 255.0f; - - float h, s, v; - RGB2HSV(&h, &s, r, g, b, &v); - - if ( h_replace != -1.0 ) - h = h_replace; - if ( s_replace != -1.0 ) - s = s_replace; - if ( v_replace != -1.0 ) - v = v_replace; - HSV2RGB(&r, &g, &b, h, s, v); - - return (((uint)round_to_int(r * 255.0f) & 0xFF) << 16) | - (((uint)round_to_int(g * 255.0f) & 0xFF) << 8) | - (((uint)round_to_int(b * 255.0f) & 0xFF)); -} //----- (00491E3A) --------------------------------------------------------
--- a/mm7_unsorted_subs.h Sun Apr 06 12:57:04 2014 +0200 +++ b/mm7_unsorted_subs.h Sun Apr 06 21:12:24 2014 +0200 @@ -19,49 +19,22 @@ bool __fastcall sub_4077F1(int a1, int a2, int a3, struct ODMFace *face, struct BSPVertexBuffer *a5); bool __fastcall sub_407A1C(int x, int z, int y, struct Vec3_int_ v); // idb int __fastcall sub_4088E9(int a1, int a2, int a3, int a4, int a5, int a6); -void ChestUI_WritePointedObjectStatusString(); -void OnChestLeftClick(); void GameUI_WritePointedObjectStatusString(); void __fastcall GameUI_OnPlayerPortraitLeftClick(unsigned int uPlayerID); // idb -void OnGameViewportClick(); -bool PauseGameDrawing(); -void SetUserInterface(enum PartyAlignment alignment, bool bReplace); void reset_some_strus_flt_2Cs(); -int __fastcall GetPortalScreenCoord(unsigned int uFaceID); -bool PortalFrustrum(int pNumVertices, struct BspRenderer_PortalViewportData *a2, struct BspRenderer_PortalViewportData *near_portal, int uFaceID); -int ODM_NearClip(unsigned int uVertexID); // idb -int ODM_FarClip(unsigned int uNumVertices); -bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID); -void _42777D_CastSpell_UseWand_ShootArrow(int a1, unsigned int uPlayerID, unsigned int a4, __int16 a5, int a6); void InitializeTurnBasedAnimations(void *); -void CompactLayingItemsList(); -void sub_42FBDD(); -void CloseWindowBackground(); -void GameUI_MsgProc(); -void back_to_game(); -void GUI_MainMenuMessageProc(); double get_shading_dist_mist(); void area_of_effect__damage_evaluate(); -void __fastcall DamagePlayerFromMonster(unsigned int uObjID, int a2, struct Vec3_int_ *pPos, signed int a4); void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb double __fastcall sub_43AE12(signed int a1); void ItemDamageFromActor(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity); void CharacterUI_LoadPaperdollTextures(); -int GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder); -bool IsDwarfPresentInParty(bool b); -bool ShouldLoadTexturesForRaceAndGender(unsigned int _this); void WetsuitOn(unsigned int uPlayerID); // idb void WetsuitOff(unsigned int uPlayerID); void __fastcall PrepareDrawLists_BLV(); void FindBillboardsLightLevels_BLV(); int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); -void PrepareBspRenderList_BLV(); -void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID); -void PrepareActorRenderList_BLV(); -void PrepareItemsRenderList_BLV(); -void AddBspNodeToRenderList(unsigned int node_id); -void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb bool _44100D_should_alter_right_panel(); __int16 __fastcall sub_441A4E(int a1); void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb @@ -71,16 +44,10 @@ void OnMapLoad(); void Level_LoadEvtAndStr(const char *pLevelName); const char *GetMapBookHintText();//sub_444564 -char *GetEventHintString(unsigned int uEventID); // idb int GetTravelTime(); void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4); unsigned int SkillToMastery(unsigned int skill_value); unsigned int __fastcall GetSpellColor(signed int a1); -void __fastcall LoadGame(unsigned int uSlot); // idb -void SaveGame(bool IsAutoSAve, bool NotSaveWorld); -void __fastcall DoSavegame(unsigned int uSlot); // idb -bool Initialize_GamesLOD_NewLOD(); -void SaveNewGame(); void PrepareToLoadBLV(unsigned int bLoading); void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2); void _461103_load_level_sub(); @@ -101,24 +68,13 @@ void MM7Initialization(); void SetCurrentMenuID(enum MENU_STATE); // idb enum MENU_STATE GetCurrentMenuID(); -void CreateMsgScrollWindow(signed int mscroll_id); -void free_book_subwindow(); -void CreateScrollWindow(); -void OnPaperdollLeftClick(); -void OnPressSpace(); -char __fastcall DoInteractionWithTopmostZObject(int a1, int a2); void OracleDialogue(); -void __fastcall ClickNPCTopic(signed int uMessageParam); const char * _4B254D_SkillMasteryTeacher(int trainerInfo); -const char *ContractSelectText(int pEventCode); void SimpleHouseDialog(); void CreateButtonInColumn(int a1, unsigned int a2); -void FillAviableSkillsToTeach(int _this); void sub_4B3E1E(); void DrawJoinGuildWindow(int pEventCode); void _4B3FE5_training_dialogue(int a4); -void NPCHireableDialogPrepare(); -void _4B4224_UpdateNPCTopics(int _this); void __fastcall DrawTextAtStatusBar(const char *Str, int a5); __int64 GetExperienceRequiredForLevel(int a1); void CheckBountyRespawnAndAward(); @@ -143,16 +99,10 @@ int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); void sub_487DA9(); double GetFogDensityByTime(struct OutdoorLocation *_this); -bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6); -void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6); -signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4); bool PlayerCreation_Choose4Skills(); -int PlayerCreation_GetUnspentAttributePointCount(); void LoadPlayerPortraintsAndVoices(); void ReloadPlayerPortraits(int player_id, int face_id); void sub_491E3A(); -int CycleCharacter(bool backwards); -void __fastcall Rest(unsigned int uHoursToSleep); void _493938_regenerate(); void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration); void _494035_timed_effects__water_walking_damage__etc(); @@ -164,27 +114,13 @@ void DeleteCCharFont(); bool PlayerCreationUI_Loop(); unsigned int __fastcall GetMaxMipLevels(unsigned int uDim); -struct SoundHeader *FindSound_BinSearch(unsigned int uStart, unsigned int uEnd, const char *pName); -struct SoundData *LoadSound(const char *pSoundName, struct SoundData *pOutBuff, unsigned int uID); -int __fastcall sub_4AAEA6_transform(struct RenderVertexSoft *a1); -int __fastcall sub_4AB66C(int, int); // weak -int GetSoundStrengthByDistanceFromParty(int x, int y, int z); -void PlayLevelMusic(); -unsigned int __fastcall sub_4B0E07(unsigned int uFaceID); // idb void sub_4B1447_party_fine(int shopId, int stealingResult, int fineToAdd); void sub_4B1523_showSpellbookInfo(int spellItemId); void ShowPopupShopItem(); -void RestAndHeal(__int64 uNumMinutes); // idb void GetHouseGoodbyeSpeech(); unsigned int GetGravityStrength(); void UpdateUserInput_and_MapSpecificStuff(); -void BLV_UpdateUserInputAndOther(); -void ODM_UpdateUserInputAndOther(); bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2); -int BLV_GetFloorLevel(int x, int y, int z, unsigned int uSectorID, unsigned int *pFaceID); -int ODM_GetFloorLevel(int X, signed int Y, int Z, int, int *pOnWater, int *bmodel_pid, int bWaterWalk); -int GetCeilingHeight(int Party_X, signed int Party_Y, int Party_ZHeight, int pFaceID); -void ODM_GetTerrainNormalAt(int pos_x, int pos_z, Vec3_int_ *out); unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID); void _46E0B2_collide_against_decorations(); void __fastcall _46E26D_collide_against_sprites(signed int a1, signed int a2); @@ -194,13 +130,8 @@ void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this); int _46EF01_collision_chech_player(int a1); // idb int _46F04E_collide_against_portals(); -void BLV_UpdateDoors(); -void UpdateActors_BLV(); -void UpdateActors_ODM(); void UpdateObjects(); int collide_against_floor_approximate(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb -void BLV_ProcessPartyActions(); -void ODM_ProcessPartyActions(); 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); 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); int sub_475665(struct BLVFace *face, int a2, __int16 a3);