OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
UIHouses.cpp File Reference
#include "UIHouses.h"
#include <cstdlib>
#include <vector>
#include <utility>
#include <string>
#include "Engine/AssetsManager.h"
#include "Engine/Engine.h"
#include "Engine/Data/AwardEnums.h"
#include "Engine/Data/HouseEnumFunctions.h"
#include "Engine/Graphics/Camera.h"
#include "Engine/Objects/Decoration.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Localization.h"
#include "Engine/MapInfo.h"
#include "Engine/Party.h"
#include "Engine/PriceCalculator.h"
#include "Engine/Tables/HouseTable.h"
#include "Engine/Tables/TransitionTable.h"
#include "GUI/GUIButton.h"
#include "GUI/GUIFont.h"
#include "GUI/GUIWindow.h"
#include "GUI/GUIMessageQueue.h"
#include "GUI/UI/UIDialogue.h"
#include "GUI/UI/UIGame.h"
#include "GUI/UI/UIStatusBar.h"
#include "GUI/UI/NPCTopics.h"
#include "GUI/UI/Houses/MagicGuild.h"
#include "GUI/UI/Houses/Bank.h"
#include "GUI/UI/Houses/Jail.h"
#include "GUI/UI/Houses/Tavern.h"
#include "GUI/UI/Houses/Temple.h"
#include "GUI/UI/Houses/Training.h"
#include "GUI/UI/Houses/Transport.h"
#include "GUI/UI/Houses/MercenaryGuild.h"
#include "GUI/UI/Houses/TownHall.h"
#include "GUI/UI/Houses/Shops.h"
#include "Io/Mouse.h"
#include "Io/KeyboardInputHandler.h"
#include "Media/Audio/AudioPlayer.h"
#include "Media/MediaPlayer.h"
#include "Utility/Math/TrigLut.h"

Functions

bool enterHouse (HouseId uHouseID)
 
void prepareHouse (HouseId house)
 
void NPCHireableDialogPrepare ()
 
void selectHouseNPCDialogueOption (DialogueId topic)
 
void updateHouseNPCTopics (int npc)
 
void selectProprietorDialogueOption (DialogueId option)
 
bool houseDialogPressEscape ()
 
void createHouseUI (HouseId houseId)
 
void BackToHouseMenu ()
 
void playHouseSound (HouseId houseID, HouseSoundType type)
 

Variables

GraphicsImage_591428_endcap = nullptr
 
std::vector< HouseNpcDeschouseNpcs
 
int currentHouseNpc
 
std::array< const HouseAnimDescr, 196 > pAnimatedRooms
 
const IndexedArray< int, HOUSE_TYPE_WEAPON_SHOP, HOUSE_TYPE_DARK_GUILDitemAmountInShop
 
static constexpr IndexedArray< const char *, HOUSE_TYPE_WEAPON_SHOP, HOUSE_TYPE_MIRRORED_PATH_GUILDshopBackgroundNames
 

Function Documentation

◆ BackToHouseMenu()

void BackToHouseMenu ( )

◆ createHouseUI()

void createHouseUI ( HouseId  houseId)

◆ enterHouse()

bool enterHouse ( HouseId  uHouseID)
Original binary offset:
0x44622E

◆ houseDialogPressEscape()

bool houseDialogPressEscape ( )

◆ NPCHireableDialogPrepare()

void NPCHireableDialogPrepare ( )

TODO(Nik-RE-dev): untested until houses NPC can join the party

Original binary offset:
0x4B40E6

◆ playHouseSound()

void playHouseSound ( HouseId  houseID,
HouseSoundType  type 
)
Original binary offset:
0x4B1E92

◆ prepareHouse()

void prepareHouse ( HouseId  house)
Original binary offset:
0x44606A

◆ selectHouseNPCDialogueOption()

void selectHouseNPCDialogueOption ( DialogueId  topic)

◆ selectProprietorDialogueOption()

void selectProprietorDialogueOption ( DialogueId  option)
Original binary offset:
0x4BCACC

◆ updateHouseNPCTopics()

void updateHouseNPCTopics ( int  npc)
Original binary offset:
0x4B4224

Variable Documentation

◆ _591428_endcap

GraphicsImage* _591428_endcap = nullptr

◆ currentHouseNpc

int currentHouseNpc

◆ houseNpcs

std::vector<HouseNpcDesc> houseNpcs

◆ itemAmountInShop

◆ pAnimatedRooms

std::array<const HouseAnimDescr, 196> pAnimatedRooms

◆ shopBackgroundNames

constexpr IndexedArray<const char *, HOUSE_TYPE_WEAPON_SHOP, HOUSE_TYPE_MIRRORED_PATH_GUILD> shopBackgroundNames
staticconstexpr
Initial value:
= {{
{HOUSE_TYPE_WEAPON_SHOP, "WEPNTABL"},
{HOUSE_TYPE_ARMOR_SHOP, "ARMORY"},
{HOUSE_TYPE_MAGIC_SHOP, "MAGSHELF"},
{HOUSE_TYPE_ALCHEMY_SHOP, "MAGSHELF"},
{HOUSE_TYPE_FIRE_GUILD, "MAGSHELF"},
{HOUSE_TYPE_AIR_GUILD, "MAGSHELF"},
{HOUSE_TYPE_WATER_GUILD, "MAGSHELF"},
{HOUSE_TYPE_EARTH_GUILD, "MAGSHELF"},
{HOUSE_TYPE_SPIRIT_GUILD, "MAGSHELF"},
{HOUSE_TYPE_MIND_GUILD, "MAGSHELF"},
{HOUSE_TYPE_BODY_GUILD, "MAGSHELF"},
{HOUSE_TYPE_LIGHT_GUILD, "MAGSHELF"},
{HOUSE_TYPE_DARK_GUILD, "MAGSHELF"},
{HOUSE_TYPE_SELF_GUILD, "MAGSHELF"},
}}
@ HOUSE_TYPE_MIRRORED_PATH_GUILD
@ HOUSE_TYPE_SELF_GUILD
@ HOUSE_TYPE_ELEMENTAL_GUILD