OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions | Variables
Shops.cpp File Reference
#include "Shops.h"
#include <cstdlib>
#include <algorithm>
#include <string>
#include <array>
#include <vector>
#include "Engine/Engine.h"
#include "Engine/EngineIocContainer.h"
#include "Engine/AssetsManager.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Graphics/LocationFunctions.h"
#include "Engine/Localization.h"
#include "Engine/MapInfo.h"
#include "Engine/Objects/Items.h"
#include "Engine/Party.h"
#include "Engine/PriceCalculator.h"
#include "Engine/Random/Random.h"
#include "Engine/Tables/MerchantTable.h"
#include "Engine/Tables/ItemTable.h"
#include "Engine/Data/AwardEnums.h"
#include "GUI/GUIWindow.h"
#include "GUI/GUIMessageQueue.h"
#include "GUI/UI/UIHouses.h"
#include "GUI/UI/UIStatusBar.h"
#include "Io/Mouse.h"
#include "Media/Audio/AudioPlayer.h"
#include "Utility/IndexedArray.h"

Classes

struct  ITEM_VARIATION
 

Functions

bool isStealingModeActive ()
 
void addUniqueItemClasses (const ITEM_VARIATION &variation, std::vector< RandomItemType > &set)
 
DialogueId getSkillLearnDualogueForItemClass (RandomItemType itemClass)
 

Variables

static constexpr IndexedArray< ITEM_VARIATION, HOUSE_FIRST_WEAPON_SHOP, HOUSE_LAST_WEAPON_SHOPweaponShopVariationStandard
 
static constexpr IndexedArray< ITEM_VARIATION, HOUSE_FIRST_WEAPON_SHOP, HOUSE_LAST_WEAPON_SHOPweaponShopVariationSpecial
 
static constexpr IndexedArray< ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOParmorShopTopRowVariationStandard
 
static constexpr IndexedArray< ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOParmorShopBottomRowVariationStandard
 
static constexpr IndexedArray< ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOParmorShopTopRowVariationSpecial
 
static constexpr IndexedArray< ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOParmorShopBottomRowVariationSpecial
 
static constexpr IndexedArray< ItemTreasureLevel, HOUSE_FIRST_MAGIC_SHOP, HOUSE_LAST_MAGIC_SHOPmagicShopVariationStandard
 
static constexpr IndexedArray< ItemTreasureLevel, HOUSE_FIRST_MAGIC_SHOP, HOUSE_LAST_MAGIC_SHOPmagicShopVariationSpecial
 
static constexpr IndexedArray< ItemTreasureLevel, HOUSE_FIRST_ALCHEMY_SHOP, HOUSE_LAST_ALCHEMY_SHOPalchemyShopVariationStandard
 
static constexpr IndexedArray< ItemTreasureLevel, HOUSE_FIRST_ALCHEMY_SHOP, HOUSE_LAST_ALCHEMY_SHOPalchemyShopVariationSpecial
 
GraphicsImageshop_ui_background = nullptr
 
std::array< GraphicsImage *, 12 > shop_ui_items_in_store
 
std::array< int, 6 > weaponYPos
 

Function Documentation

◆ addUniqueItemClasses()

void addUniqueItemClasses ( const ITEM_VARIATION variation,
std::vector< RandomItemType > &  set 
)

◆ getSkillLearnDualogueForItemClass()

DialogueId getSkillLearnDualogueForItemClass ( RandomItemType  itemClass)

◆ isStealingModeActive()

bool isStealingModeActive ( )

Variable Documentation

◆ alchemyShopVariationSpecial

constexpr IndexedArray<ItemTreasureLevel, HOUSE_FIRST_ALCHEMY_SHOP, HOUSE_LAST_ALCHEMY_SHOP> alchemyShopVariationSpecial
staticconstexpr
Initial value:
= {{
}}
@ HOUSE_ALCHEMY_SHOP_DEYJA
@ HOUSE_ALCHEMY_SHOP_CASTLE_HARMONDALE
@ HOUSE_ALCHEMY_SHOP_ERATHIA
@ HOUSE_ALCHEMY_SHOP_STONE_CITY
@ HOUSE_ALCHEMY_SHOP_TULAREAN_FOREST
@ HOUSE_ALCHEMY_SHOP_CELESTE
@ HOUSE_ALCHEMY_SHOP_BRACADA_DESERT
@ HOUSE_ALCHEMY_SHOP_HARMONDALE
@ HOUSE_ALCHEMY_SHOP_EMERALD_ISLAND
@ HOUSE_ALCHEMY_SHOP_PIT

◆ alchemyShopVariationStandard

constexpr IndexedArray<ItemTreasureLevel, HOUSE_FIRST_ALCHEMY_SHOP, HOUSE_LAST_ALCHEMY_SHOP> alchemyShopVariationStandard
staticconstexpr

◆ armorShopBottomRowVariationSpecial

constexpr IndexedArray<ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOP> armorShopBottomRowVariationSpecial
staticconstexpr
Initial value:
= {{
}}
@ HOUSE_ARMOR_SHOP_EMERALD_ISLAND
@ HOUSE_ARMOR_SHOP_TATALIA_2
@ HOUSE_ARMOR_SHOP_CASTLE_HARMONDALE
@ HOUSE_ARMOR_SHOP_STONE_CITY
@ HOUSE_ARMOR_SHOP_PIT
@ HOUSE_ARMOR_SHOP_AVLEE
@ HOUSE_ARMOR_SHOP_HARMONDALE
@ HOUSE_ARMOR_SHOP_ERATHIA
@ HOUSE_ARMOR_SHOP_CELESTE
@ HOUSE_ARMOR_SHOP_MOUNT_NIGHON
@ HOUSE_ARMOR_SHOP_TULAREAN_FOREST
@ HOUSE_ARMOR_SHOP_TATALIA_1

◆ armorShopBottomRowVariationStandard

constexpr IndexedArray<ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOP> armorShopBottomRowVariationStandard
staticconstexpr
Initial value:
= {{
}}

◆ armorShopTopRowVariationSpecial

constexpr IndexedArray<ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOP> armorShopTopRowVariationSpecial
staticconstexpr
Initial value:
= {{
}}

◆ armorShopTopRowVariationStandard

constexpr IndexedArray<ITEM_VARIATION, HOUSE_FIRST_ARMOR_SHOP, HOUSE_LAST_ARMOR_SHOP> armorShopTopRowVariationStandard
staticconstexpr
Initial value:
= {{
}}

◆ magicShopVariationSpecial

constexpr IndexedArray<ItemTreasureLevel, HOUSE_FIRST_MAGIC_SHOP, HOUSE_LAST_MAGIC_SHOP> magicShopVariationSpecial
staticconstexpr

◆ magicShopVariationStandard

constexpr IndexedArray<ItemTreasureLevel, HOUSE_FIRST_MAGIC_SHOP, HOUSE_LAST_MAGIC_SHOP> magicShopVariationStandard
staticconstexpr

◆ shop_ui_background

GraphicsImage* shop_ui_background = nullptr

◆ shop_ui_items_in_store

std::array<GraphicsImage *, 12> shop_ui_items_in_store

◆ weaponShopVariationSpecial

constexpr IndexedArray<ITEM_VARIATION, HOUSE_FIRST_WEAPON_SHOP, HOUSE_LAST_WEAPON_SHOP> weaponShopVariationSpecial
staticconstexpr
Initial value:
= {{
}}
@ HOUSE_WEAPON_SHOP_TULAREAN_FOREST
@ HOUSE_WEAPON_SHOP_ERATHIA
@ HOUSE_WEAPON_SHOP_AVLEE
@ HOUSE_WEAPON_SHOP_CASTLE_HARMONDALE
@ HOUSE_WEAPON_SHOP_TATALIA_2
@ HOUSE_WEAPON_SHOP_TATALIA_1
@ HOUSE_WEAPON_SHOP_EMERALD_ISLAND
@ HOUSE_WEAPON_SHOP_HARMONDALE
@ HOUSE_WEAPON_SHOP_MOUNT_NIGHON
@ HOUSE_WEAPON_SHOP_STONE_CITY
@ HOUSE_WEAPON_SHOP_PIT
@ HOUSE_WEAPON_SHOP_CELESTE

◆ weaponShopVariationStandard

constexpr IndexedArray<ITEM_VARIATION, HOUSE_FIRST_WEAPON_SHOP, HOUSE_LAST_WEAPON_SHOP> weaponShopVariationStandard
staticconstexpr
Initial value:
= {{
}}

◆ weaponYPos

std::array<int, 6> weaponYPos