World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Определения типов | |
using | EngineIoc = Engine_::IocContainer |
Функции | |
void | ShopDialogMain (GUIWindow dialogwin) |
void | ShopDialogDisplayEquip (GUIWindow dialogwin, BuildingType building=BuildingType_WeaponShop) |
void | ShopDialogSellEquip (GUIWindow dialogwin, BuildingType building) |
void | ShopDialogIdentify (GUIWindow dialogwin, BuildingType building) |
void | ShopDialogRepair (GUIWindow dialogwin, BuildingType building) |
void | ShopDialogLearn (GUIWindow dialogwin) |
void | WeaponShopWares (GUIWindow dialogwin, bool special) |
void | WeaponShopDialog () |
void | ArmorShopWares (GUIWindow dialogwin, bool special) |
void | ArmorShopDialog () |
void | AlchemyMagicShopWares (GUIWindow dialogwin, BuildingType building, bool special) |
void | AlchemistDialog () |
void | MagicShopDialog () |
void | UIShop_Buy_Identify_Repair () |
void | ShowPopupShopItem () |
void | sub_4B1523_showSpellbookInfo (int spellItemId) |
void | GetHouseGoodbyeSpeech () |
void | sub_4B1447_party_fine (int shopId, int stealingResult, int fineToAdd) |
Переменные | |
Image * | shop_ui_background = nullptr |
std::array< Image *, 12 > | shop_ui_items_in_store |
using EngineIoc = Engine_::IocContainer |
См. определение в файле UIShops.cpp строка 31
См. определение в файле UIShops.cpp строка 37
Перекрестные ссылки GUIFont::CalcTextHeight(), Color16(), GUIWindow::DrawTitleText(), GUIWindow::GetControl(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), localization, GUIWindow::pCurrentPosActiveItem, pDialogueWindow, pFontArrus, pShopOptions, GUIWindow::pStartingPosActiveItem, GUIWindow::uFrameWidth, GUIButton::uHeight, GUIButton::uW и GUIButton::uY.
Используется в AlchemistDialog(), ArmorShopDialog(), MagicShopDialog() и WeaponShopDialog().
void ShopDialogDisplayEquip | ( | GUIWindow | dialogwin, |
BuildingType | building = BuildingType_WeaponShop |
||
) |
См. определение в файле UIShops.cpp строка 81
Перекрестные ссылки BuildingType_AlchemistShop, GUIFont::CalcTextHeight(), CharacterUI_InventoryTab_Draw(), Color16(), draw_leather(), GUIWindow::DrawTitleText(), GUIWindow::GetControl(), Localization::GetString(), localization, GUIWindow::pCurrentPosActiveItem, pDialogueWindow, pFontArrus, pPlayers, pShopOptions, GUIWindow::pStartingPosActiveItem, uActiveCharacter, GUIWindow::uFrameWidth, GUIButton::uHeight, GUIButton::uW и GUIButton::uY.
Используется в AlchemistDialog(), ArmorShopDialog(), MagicShopDialog() и WeaponShopDialog().
void ShopDialogSellEquip | ( | GUIWindow | dialogwin, |
BuildingType | building | ||
) |
См. определение в файле UIShops.cpp строка 132
Перекрестные ссылки BuildDialogueString(), GUIFont::CalcTextHeight(), CharacterUI_InventoryTab_Draw(), Color16(), draw_leather(), GUIWindow::DrawTitleText(), GameUI_StatusBar_DrawImmediate(), Mouse::GetCursorPos(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), localization, GUIWindow::mouse, pFontArrus, pMerchantsSellPhrases, pPlayers, GUIWindow::ptr_1C, uActiveCharacter, GUIWindow::uFrameWidth, window_SpeakInHouse, Point::x и Point::y.
Используется в AlchemistDialog(), ArmorShopDialog(), MagicShopDialog() и WeaponShopDialog().
void ShopDialogIdentify | ( | GUIWindow | dialogwin, |
BuildingType | building | ||
) |
См. определение в файле UIShops.cpp строка 165
Перекрестные ссылки BuildDialogueString(), GUIFont::CalcTextHeight(), CharacterUI_InventoryTab_Draw(), Color16(), draw_leather(), GUIWindow::DrawTitleText(), GameUI_StatusBar_DrawImmediate(), Mouse::GetCursorPos(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), ItemGen::IsIdentified(), localization, pFontArrus, pMerchantsIdentifyPhrases, pPlayers, GUIWindow::ptr_1C, Engine_::IocContainer::ResolveMouse(), uActiveCharacter, GUIWindow::uFrameWidth, window_SpeakInHouse, Point::x и Point::y.
Используется в AlchemistDialog(), ArmorShopDialog(), MagicShopDialog() и WeaponShopDialog().
void ShopDialogRepair | ( | GUIWindow | dialogwin, |
BuildingType | building | ||
) |
См. определение в файле UIShops.cpp строка 201
Перекрестные ссылки BuildDialogueString(), GUIFont::CalcTextHeight(), CharacterUI_InventoryTab_Draw(), Color16(), draw_leather(), GUIWindow::DrawTitleText(), GameUI_StatusBar_DrawImmediate(), Mouse::GetCursorPos(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), ITEM_BROKEN, localization, GUIWindow::mouse, pFontArrus, pMerchantsRepairPhrases, pPlayers, GUIWindow::ptr_1C, uActiveCharacter, GUIWindow::uFrameWidth, window_SpeakInHouse, Point::x и Point::y.
Используется в ArmorShopDialog(), MagicShopDialog() и WeaponShopDialog().
См. определение в файле UIShops.cpp строка 233
Перекрестные ссылки byte_4ED970_skill_learn_ability_by_class_table, GUIFont::CalcTextHeight(), Color16(), GUIWindow::DrawTitleText(), _2devent::flt_24, Localization::FormatString(), Localization::GetClassName(), GUIWindow::GetControl(), Localization::GetSkillName(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), localization, GUIButton::msg_param, p2DEvents, GUIWindow::pCurrentPosActiveItem, pDialogueWindow, pFontArrus, pPlayers, GUIWindow::pStartingPosActiveItem, GUIWindow::ptr_1C, uActiveCharacter, GUIWindow::uFrameWidth, GUIButton::uHeight, GUIButton::uW, GUIButton::uY и window_SpeakInHouse.
Используется в AlchemistDialog(), ArmorShopDialog(), MagicShopDialog() и WeaponShopDialog().
См. определение в файле UIShops.cpp строка 327
Перекрестные ссылки BuildDialogueString(), BuildingType_WeaponShop, GUIFont::CalcTextHeight(), Color16(), GUIWindow::DrawShops_next_generation_time_string(), GUIWindow::DrawTitleText(), GameUI_StatusBar_DrawImmediate(), Mouse::GetCursorPos(), Party::GetPlayingTime(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), localization, OS_IfCtrlPressed(), Party::PartyTimes, pFontArrus, pMerchantsBuyPhrases, pParty, pPlayers, GUIWindow::ptr_1C, render, Engine_::IocContainer::ResolveMouse(), shop_ui_background, shop_ui_items_in_store, PartyTimeStruct::Shops_next_generation_time, Party::SpecialItemsInShops, Party::StandartItemsInShops, uActiveCharacter, GUIWindow::uFrameWidth, ItemGen::uItemID, weapons_Ypos, window_SpeakInHouse, Point::x и Point::y.
Используется в WeaponShopDialog().
void WeaponShopDialog | ( | ) |
См. определение в файле UIShops.cpp строка 437
Перекрестные ссылки __debugbreak(), BuildingType_WeaponShop, dialog_menu_id, HOUSE_DIALOGUE_LEARN_SKILLS, HOUSE_DIALOGUE_MAIN, HOUSE_DIALOGUE_SHOP_BUY_SPECIAL, HOUSE_DIALOGUE_SHOP_BUY_STANDARD, HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT, HOUSE_DIALOGUE_SHOP_IDENTIFY, HOUSE_DIALOGUE_SHOP_REPAIR, HOUSE_DIALOGUE_SHOP_SELL, ShopDialogDisplayEquip(), ShopDialogIdentify(), ShopDialogLearn(), ShopDialogMain(), ShopDialogRepair(), ShopDialogSellEquip(), GUIWindow::uFrameWidth, GUIWindow::uFrameX, GUIWindow::uFrameZ, WeaponShopWares() и window_SpeakInHouse.
Используется в GUIWindow::HouseDialogManager().
См. определение в файле UIShops.cpp строка 483
Перекрестные ссылки BuildDialogueString(), BuildingType_ArmorShop, GUIFont::CalcTextHeight(), Color16(), GUIWindow::DrawShops_next_generation_time_string(), GUIWindow::DrawTitleText(), GameUI_StatusBar_DrawImmediate(), Mouse::GetCursorPos(), Party::GetPlayingTime(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), localization, OS_IfCtrlPressed(), GUIWindow::par1C, Party::PartyTimes, pFontArrus, pMerchantsBuyPhrases, pParty, pPlayers, GUIWindow::ptr_1C, render, Engine_::IocContainer::ResolveMouse(), shop_ui_background, shop_ui_items_in_store, PartyTimeStruct::Shops_next_generation_time, Party::SpecialItemsInShops, Party::StandartItemsInShops, uActiveCharacter, GUIWindow::uFrameWidth, ItemGen::uItemID, window_SpeakInHouse, Point::x и Point::y.
Используется в ArmorShopDialog().
void ArmorShopDialog | ( | ) |
См. определение в файле UIShops.cpp строка 602
Перекрестные ссылки __debugbreak(), ArmorShopWares(), BuildingType_ArmorShop, dialog_menu_id, HOUSE_DIALOGUE_LEARN_SKILLS, HOUSE_DIALOGUE_MAIN, HOUSE_DIALOGUE_SHOP_BUY_SPECIAL, HOUSE_DIALOGUE_SHOP_BUY_STANDARD, HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT, HOUSE_DIALOGUE_SHOP_IDENTIFY, HOUSE_DIALOGUE_SHOP_REPAIR, HOUSE_DIALOGUE_SHOP_SELL, ShopDialogDisplayEquip(), ShopDialogIdentify(), ShopDialogLearn(), ShopDialogMain(), ShopDialogRepair(), ShopDialogSellEquip(), GUIWindow::uFrameWidth, GUIWindow::uFrameX, GUIWindow::uFrameZ и window_SpeakInHouse.
Используется в GUIWindow::HouseDialogManager().
void AlchemyMagicShopWares | ( | GUIWindow | dialogwin, |
BuildingType | building, | ||
bool | special | ||
) |
См. определение в файле UIShops.cpp строка 648
Перекрестные ссылки BuildDialogueString(), GUIFont::CalcTextHeight(), Color16(), GUIWindow::DrawShops_next_generation_time_string(), GUIWindow::DrawTitleText(), GameUI_StatusBar_DrawImmediate(), Mouse::GetCursorPos(), Party::GetPlayingTime(), Localization::GetString(), HouseUI_CheckIfPlayerCanInteract(), localization, OS_IfCtrlPressed(), GUIWindow::par1C, Party::PartyTimes, pFontArrus, pMerchantsBuyPhrases, pParty, pPlayers, GUIWindow::ptr_1C, render, Engine_::IocContainer::ResolveMouse(), shop_ui_background, shop_ui_items_in_store, PartyTimeStruct::Shops_next_generation_time, Party::SpecialItemsInShops, Party::StandartItemsInShops, uActiveCharacter, GUIWindow::uFrameWidth, ItemGen::uItemID, window_SpeakInHouse, Point::x и Point::y.
Используется в AlchemistDialog() и MagicShopDialog().
void AlchemistDialog | ( | ) |
См. определение в файле UIShops.cpp строка 785
Перекрестные ссылки __debugbreak(), AlchemyMagicShopWares(), BuildingType_AlchemistShop, dialog_menu_id, HOUSE_DIALOGUE_LEARN_SKILLS, HOUSE_DIALOGUE_MAIN, HOUSE_DIALOGUE_SHOP_BUY_SPECIAL, HOUSE_DIALOGUE_SHOP_BUY_STANDARD, HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT, HOUSE_DIALOGUE_SHOP_IDENTIFY, HOUSE_DIALOGUE_SHOP_SELL, ShopDialogDisplayEquip(), ShopDialogIdentify(), ShopDialogLearn(), ShopDialogMain(), ShopDialogSellEquip(), GUIWindow::uFrameWidth, GUIWindow::uFrameX, GUIWindow::uFrameZ и window_SpeakInHouse.
Используется в GUIWindow::HouseDialogManager().
void MagicShopDialog | ( | ) |
См. определение в файле UIShops.cpp строка 827
Перекрестные ссылки __debugbreak(), AlchemyMagicShopWares(), BuildingType_MagicShop, dialog_menu_id, HOUSE_DIALOGUE_LEARN_SKILLS, HOUSE_DIALOGUE_MAIN, HOUSE_DIALOGUE_SHOP_BUY_SPECIAL, HOUSE_DIALOGUE_SHOP_BUY_STANDARD, HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT, HOUSE_DIALOGUE_SHOP_IDENTIFY, HOUSE_DIALOGUE_SHOP_REPAIR, HOUSE_DIALOGUE_SHOP_SELL, ShopDialogDisplayEquip(), ShopDialogIdentify(), ShopDialogLearn(), ShopDialogMain(), ShopDialogRepair(), ShopDialogSellEquip(), GUIWindow::uFrameWidth, GUIWindow::uFrameX, GUIWindow::uFrameZ и window_SpeakInHouse.
Используется в GUIWindow::HouseDialogManager().
void UIShop_Buy_Identify_Repair | ( | ) |
См. определение в файле UIShops.cpp строка 874
Перекрестные ссылки __debugbreak(), MapInfo::_steal_perm, ViewingParams::bRedrawGameUI, BuildingType_AlchemistShop, BuildingType_ArmorShop, BuildingType_MagicShop, BuildingType_Training, BuildingType_WeaponShop, byte_4ED970_skill_learn_ability_by_class_table, current_character_screen_window, current_screen_type, dialog_menu_id, dword_F8B1E4, _2devent::flt_24, _2devent::fPriceMultiplier, GameUI_StatusBar_OnEvent(), Mouse::GetCursorPos(), Party::GetGold(), MapStats::GetMapInfo(), Party::GetPartyReputation(), Localization::GetString(), ItemGen::GetValue(), HOUSE_DIALOGUE_GUILD_BUY_BOOKS, HOUSE_DIALOGUE_SHOP_BUY_SPECIAL, HOUSE_DIALOGUE_SHOP_BUY_STANDARD, HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT, HOUSE_DIALOGUE_SHOP_IDENTIFY, HOUSE_DIALOGUE_SHOP_REPAIR, HOUSE_DIALOGUE_SHOP_SELL, HouseUI_CheckIfPlayerCanInteract(), in_current_building_type, ITEM_BROKEN, ITEM_IDENTIFIED, localization, ItemGen::MerchandiseTest(), OS_IfCtrlPressed(), p2DEvents, GUIWindow::par1C, pAudioPlayer, pCurrentMapName, MapStats::pInfos, PlayHouseSound(), AudioPlayer::PlaySound(), pMapStats, pParty, pPlayers, GUIWindow::ptr_1C, render, ItemGen::Reset(), Engine_::IocContainer::ResolveMouse(), SCREEN_E, ItemGen::SetIdentified(), shop_ui_items_in_store, SOUND_error, Party::SpecialItemsInShops, SPEECH_73, SPEECH_74, SPEECH_75, SPEECH_79, SPEECH_NoRoom, Party::SpellBooksInGuilds, Party::StandartItemsInShops, sub_4B1447_party_fine(), Party::TakeGold(), uActiveCharacter, ItemGen::uAttributes, ItemGen::uItemID, viewparams, weapons_Ypos, WINDOW_CharacterWindow_Inventory, window_SpeakInHouse, Point::x и Point::y.
Используется в Application::Game::EventLoop().
void ShowPopupShopItem | ( | ) |
См. определение в файле UIShops.cpp строка 1344
Перекрестные ссылки BuildingType_16, BuildingType_AlchemistShop, BuildingType_ArmorShop, BuildingType_MagicShop, BuildingType_WeaponShop, dialog_menu_id, GameUI_DrawItemInfo(), Mouse::GetCursorPos(), HOUSE_DIALOGUE_GUILD_BUY_BOOKS, HOUSE_DIALOGUE_SHOP_BUY_SPECIAL, HOUSE_DIALOGUE_SHOP_BUY_STANDARD, HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT, HOUSE_DIALOGUE_SHOP_REPAIR, HOUSE_DIALOGUE_SHOP_SELL, in_current_building_type, GUIWindow::par1C, pParty, pPlayers, GUIWindow::ptr_1C, Engine_::IocContainer::ResolveMouse(), shop_ui_items_in_store, Party::SpecialItemsInShops, Party::SpellBooksInGuilds, Party::StandartItemsInShops, sub_4B1523_showSpellbookInfo(), uActiveCharacter, ItemGen::uItemID, weapons_Ypos, window_SpeakInHouse, Point::x и Point::y.
Используется в UI_OnMouseRightClick().
void sub_4B1523_showSpellbookInfo | ( | int | spellItemId | ) |
См. определение в файле UIShops.cpp строка 1577
Перекрестные ссылки GUIFont::CalcTextHeight(), Color16(), GUIWindow::DrawMessageBox(), GUIWindow::DrawText(), GUIWindow::DrawTitleText(), game_viewport_width, Mouse::GetCursorPos(), GUIFont::GetHeight(), GUIFont::GetLineWidth(), Localization::GetSkillName(), Localization::GetString(), localization, SpellInfo::pBasicSkillDesc, SpellInfo::pDescription, SpellInfo::pExpertSkillDesc, pFontArrus, pFontComic, pFontSmallnum, SpellInfo::pGrandmasterSkillDesc, SpellStats::pInfos, SpellInfo::pMasterSkillDesc, SpellInfo::pName, pSpellDatas, pSpellStats, Engine_::IocContainer::ResolveMouse(), StringPrintf(), GUIWindow::uFrameHeight, GUIWindow::uFrameW, GUIWindow::uFrameWidth, GUIWindow::uFrameX, GUIWindow::uFrameY, GUIWindow::uFrameZ и Point::y.
Используется в ShowPopupShopItem().
void GetHouseGoodbyeSpeech | ( | ) |
См. определение в файле UIShops.cpp строка 1654
Перекрестные ссылки _A750D8_player_speech_timer, PartyTimeStruct::_shop_ban_times, BuildingType_Bank, BuildingType_MagicShop, BuildingType_Temple, dword_F8B1E4, Party::GetGold(), Party::GetPlayingTime(), HouseSound_Goodbye, HouseSound_Greeting_2, in_current_building_type, Party::PartyTimes, PlayerSpeechID, PlayHouseSound(), pParty, pPlayers, GUIWindow::ptr_1C, SPEECH_80, uSpeakingCharacter и window_SpeakInHouse.
Используется в Application::Game::EventLoop() и TavernDialog().
void sub_4B1447_party_fine | ( | int | shopId, |
int | stealingResult, | ||
int | fineToAdd | ||
) |
См. определение в файле UIShops.cpp строка 1709
Перекрестные ссылки _449B57_test_bit(), _449B7E_toggle_bit(), PartyTimeStruct::_shop_ban_times, OutdoorLocation::ddm, IndoorLocation::dlv, GameTime::FromDays(), Party::GetPlayingTime(), Party::InTheShopFlags, LEVEL_Outdoor, Party::PartyTimes, pIndoor, pOutdoor, pParty, pPlayers, uCurrentlyLoadedLevelType, Party::uFine и DDM_DLV_Header::uReputation.
Используется в UIShop_Buy_Identify_Repair().
Image* shop_ui_background = nullptr |
См. определение в файле UIShops.cpp строка 33
Используется в AlchemyMagicShopWares(), ArmorShopWares(), GuildDialog(), HouseDialogPressCloseBtn() и WeaponShopWares().
std::array<Image *, 12> shop_ui_items_in_store |
См. определение в файле UIShops.cpp строка 35
Используется в AlchemyMagicShopWares(), ArmorShopWares(), GuildDialog(), ShowPopupShopItem(), SpellBookGenerator(), UIShop_Buy_Identify_Repair() и WeaponShopWares().