World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
UIHouses.h
См. документацию.
1 #pragma once
2 
3 #include "GUI/GUIWindow.h"
4 #include "Engine/Events2D.h"
5 
26  //...
28  //..
30  //...
47 };
48 
49 /* 349 */
50 enum HOUSE_ID {
86 
97  HOUSE_JAIL = 187,
108  HOUSE_600 = 600, //???
109  HOUSE_601 = 601 //???
110 };
111 
112 enum HouseSoundID : unsigned __int32 {
113  HouseSound_Greeting = 1, // General greeting
115  HouseSound_Greeting_2 = 3, // Polite Greeting when you're guild member
116  HouseSound_Goodbye = 4 // farewells when bought something
117 };
118 
120 void TrainingDialog(const char *s);
121 void JailDialog();
122 void MagicShopDialog();
123 void GuildDialog();
124 void sub_4B6478();
125 bool IsTravelAvailable(int a1);
126 void TravelByTransport();
127 void TempleDialog();
128 void TownHallDialog();
129 void BankDialog();
130 void TavernDialog();
131 void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound); // idb
132 void WeaponShopDialog();
133 void AlchemistDialog();
134 void ArmorShopDialog();
135 void SimpleHouseDialog();
136 void OnSelectShopDialogueOption(signed int uMessageParam);
137 void PrepareHouse(enum HOUSE_ID house); // idb
138 bool EnterHouse(enum HOUSE_ID uHouseID);
139 void BackToHouseMenu();
140 
145 
146 extern int uHouse_ExitPic;
147 extern int dword_591080;
148 extern BuildingType in_current_building_type; // 00F8B198
149 extern HOUSE_DIALOGUE_MENU dialog_menu_id; // 00F8B19C
150 
152 
153 extern class Image *_591428_endcap;
154 
155 class GUIWindow_House : public GUIWindow {
156  public:
157  GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const String &hint = String());
158  virtual ~GUIWindow_House() {}
159 
160  virtual void Update();
161  virtual void Release();
162 };
HOUSE_TRAINING_HALL_EMERALD_ISLE
@ HOUSE_TRAINING_HALL_EMERALD_ISLE
Definition: UIHouses.h:79
HOUSE_DIALOGUE_TEMPLE_HEAL
@ HOUSE_DIALOGUE_TEMPLE_HEAL
Definition: UIHouses.h:17
GuildDialog
void GuildDialog()
Definition: UIGuilds.cpp:27
s
GLdouble s
Definition: SDL_opengl.h:2063
HOUSE_224_EMERALD_ISLE
@ HOUSE_224_EMERALD_ISLE
Definition: UIHouses.h:99
HOUSE_TRAINING_HALL_91
@ HOUSE_TRAINING_HALL_91
Definition: UIHouses.h:81
HOUSE_STABLES_BRACADA_DESERT
@ HOUSE_STABLES_BRACADA_DESERT
Definition: UIHouses.h:61
EnterHouse
bool EnterHouse(enum HOUSE_ID uHouseID)
Definition: UIHouses.cpp:826
PlayHouseSound
void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound)
Definition: UIHouses.cpp:1036
HouseUI_CheckIfPlayerCanInteract
bool HouseUI_CheckIfPlayerCanInteract()
Definition: UIHouses.cpp:797
IsTravelAvailable
bool IsTravelAvailable(int a1)
Definition: UIHouses.cpp:1900
HOUSE_JUDGE_HARMONDALE
@ HOUSE_JUDGE_HARMONDALE
Definition: UIHouses.h:98
HOUSE_DIALOGUE_SHOP_BUY_SPECIAL
@ HOUSE_DIALOGUE_SHOP_BUY_SPECIAL
Definition: UIHouses.h:32
HOUSE_225_EMERALD_ISLE
@ HOUSE_225_EMERALD_ISLE
Definition: UIHouses.h:100
HOUSE_TRAINING_HALL_94
@ HOUSE_TRAINING_HALL_94
Definition: UIHouses.h:84
GUIWindow
Definition: GUIWindow.h:433
HOUSE_BOATS_TULAREAN_FOREST
@ HOUSE_BOATS_TULAREAN_FOREST
Definition: UIHouses.h:68
HOUSE_472_HARMONDALE
@ HOUSE_472_HARMONDALE
Definition: UIHouses.h:105
TravelByTransport
void TravelByTransport()
Definition: UIHouses.cpp:1673
HOUSE_ALCHEMIST_EMERALD_ISLE
@ HOUSE_ALCHEMIST_EMERALD_ISLE
Definition: UIHouses.h:55
HOUSE_DIALOGUE_TOWNHALL_MESSAGE
@ HOUSE_DIALOGUE_TOWNHALL_MESSAGE
Definition: UIHouses.h:36
HOUSE_DIALOGUE_14
@ HOUSE_DIALOGUE_14
Definition: UIHouses.h:21
SimpleHouseDialog
void SimpleHouseDialog()
Definition: UIHouses.cpp:3426
TavernDialog
void TavernDialog()
Definition: UIHouses.cpp:2200
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RESULT
@ HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RESULT
Definition: UIHouses.h:41
GUIWindow_House::Release
virtual void Release()
Definition: UIHouses.cpp:4396
HOUSE_DIALOGUE_GUILD_LEARN_SKILL
@ HOUSE_DIALOGUE_GUILD_LEARN_SKILL
Definition: UIHouses.h:29
HOUSE_DIALOGUE_TRAININGHALL_TRAIN
@ HOUSE_DIALOGUE_TRAININGHALL_TRAIN
Definition: UIHouses.h:24
HOUSE_STABLES_DEYJA
@ HOUSE_STABLES_DEYJA
Definition: UIHouses.h:60
HOUSE_DIALOGUE_LEARN_SKILLS
@ HOUSE_DIALOGUE_LEARN_SKILLS
Definition: UIHouses.h:33
HOUSE_BOATS_EMERALD_ISLE
@ HOUSE_BOATS_EMERALD_ISLE
Definition: UIHouses.h:66
HOUSE_STABLES_TULAREAN_FOREST
@ HOUSE_STABLES_TULAREAN_FOREST
Definition: UIHouses.h:59
BackToHouseMenu
void BackToHouseMenu()
Definition: UIHouses.cpp:3991
HOUSE_TOWNHALL_HARMONDALE
@ HOUSE_TOWNHALL_HARMONDALE
Definition: UIHouses.h:87
BankDialog
void BankDialog()
Definition: UIHouses.cpp:2074
HouseSound_Greeting
@ HouseSound_Greeting
Definition: UIHouses.h:113
_591428_endcap
class Image * _591428_endcap
Definition: UIHouses.cpp:52
HOUSE_600
@ HOUSE_600
Definition: UIHouses.h:108
HOUSE_TRAINING_HALL_93
@ HOUSE_TRAINING_HALL_93
Definition: UIHouses.h:83
HOUSE_STABLES_STEADWICK
@ HOUSE_STABLES_STEADWICK
Definition: UIHouses.h:58
HOUSE_TRAINING_HALL_HARMONDALE
@ HOUSE_TRAINING_HALL_HARMONDALE
Definition: UIHouses.h:80
HouseSound_Greeting_2
@ HouseSound_Greeting_2
Definition: UIHouses.h:115
HOUSE_BOATS_71
@ HOUSE_BOATS_71
Definition: UIHouses.h:74
HOUSE_SMITH_EMERALD_ISLE
@ HOUSE_SMITH_EMERALD_ISLE
Definition: UIHouses.h:51
HOUSE_AIR_GUILD_INITIATE_EMERALD_ISLE
@ HOUSE_AIR_GUILD_INITIATE_EMERALD_ISLE
Definition: UIHouses.h:91
PrepareHouse
void PrepareHouse(enum HOUSE_ID house)
Definition: UIHouses.cpp:978
HOUSE_468_HARMONDALE
@ HOUSE_468_HARMONDALE
Definition: UIHouses.h:104
HOUSE_MAGE_HARMONDALE
@ HOUSE_MAGE_HARMONDALE
Definition: UIHouses.h:54
HOUSE_BOATS_72
@ HOUSE_BOATS_72
Definition: UIHouses.h:75
HOUSE_TEMPLE_HARMONDALE
@ HOUSE_TEMPLE_HARMONDALE
Definition: UIHouses.h:78
JailDialog
void JailDialog()
Definition: UIHouses.cpp:3698
HOUSE_DIALOGUE_MENU
HOUSE_DIALOGUE_MENU
Definition: UIHouses.h:6
HOUSE_MAGE_EMERALD_ISLE
@ HOUSE_MAGE_EMERALD_ISLE
Definition: UIHouses.h:53
HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_1
@ HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_1
Definition: UIHouses.h:42
HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_3
@ HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_3
Definition: UIHouses.h:44
HOUSE_467_HARMONDALE
@ HOUSE_467_HARMONDALE
Definition: UIHouses.h:103
HOUSE_DIALOGUE_BANK_PUT_GOLD
@ HOUSE_DIALOGUE_BANK_PUT_GOLD
Definition: UIHouses.h:14
HOUSE_TEMPLE_EMERALD_ISLE
@ HOUSE_TEMPLE_EMERALD_ISLE
Definition: UIHouses.h:77
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
HOUSE_ARMOURER_EMERALD_ISLE
@ HOUSE_ARMOURER_EMERALD_ISLE
Definition: UIHouses.h:52
HOUSE_BOATS_EVENMORN_ISLAND
@ HOUSE_BOATS_EVENMORN_ISLAND
Definition: UIHouses.h:70
OnSelectShopDialogueOption
void OnSelectShopDialogueOption(signed int uMessageParam)
Definition: UIHouses.cpp:1047
HOUSE_ID
HOUSE_ID
Definition: UIHouses.h:50
Image
Definition: Image.h:19
HOUSE_DIALOGUE_MAIN
@ HOUSE_DIALOGUE_MAIN
Definition: UIHouses.h:8
HOUSE_BOATS_68
@ HOUSE_BOATS_68
Definition: UIHouses.h:71
HOUSE_DIALOGUE_GUILD_BUY_BOOKS
@ HOUSE_DIALOGUE_GUILD_BUY_BOOKS
Definition: UIHouses.h:25
HouseSoundID
HouseSoundID
Definition: UIHouses.h:112
HOUSE_TAVERN_EMERALD_ISLE
@ HOUSE_TAVERN_EMERALD_ISLE
Definition: UIHouses.h:88
HOUSE_SPIRIT_GUILD_INITIATE_EMERALD_ISLE
@ HOUSE_SPIRIT_GUILD_INITIATE_EMERALD_ISLE
Definition: UIHouses.h:92
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_2
@ HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_2
Definition: UIHouses.h:43
GUIWindow_House::~GUIWindow_House
virtual ~GUIWindow_House()
Definition: UIHouses.h:158
HOUSE_FIRE_GUILD_INITIATE_EMERALD_ISLE
@ HOUSE_FIRE_GUILD_INITIATE_EMERALD_ISLE
Definition: UIHouses.h:90
AlchemistDialog
void AlchemistDialog()
Definition: UIShops.cpp:785
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
WeaponShopDialog
void WeaponShopDialog()
Definition: UIShops.cpp:437
int32_t
signed __int32 int32_t
Definition: SDL_config.h:38
HOUSE_DIALOGUE_TAVERN_REST
@ HOUSE_DIALOGUE_TAVERN_REST
Definition: UIHouses.h:22
HOUSE_DIALOGUE_SHOP_6
@ HOUSE_DIALOGUE_SHOP_6
Definition: UIHouses.h:13
HOUSE_DIALOGUE_TOWNHALL_PAY_FINE
@ HOUSE_DIALOGUE_TOWNHALL_PAY_FINE
Definition: UIHouses.h:37
type
EGLenum type
Definition: SDL_egl.h:850
InitializaDialogueOptions_Tavern
void InitializaDialogueOptions_Tavern(BuildingType type)
Definition: UIHouses.cpp:398
HOUSE_DIALOGUE_OTHER
@ HOUSE_DIALOGUE_OTHER
Definition: UIHouses.h:46
HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_4
@ HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_4
Definition: UIHouses.h:45
HOUSE_TRAINING_HALL_92
@ HOUSE_TRAINING_HALL_92
Definition: UIHouses.h:82
Events2D.h
HOUSE_ALCHEMIST_HARMONDALE
@ HOUSE_ALCHEMIST_HARMONDALE
Definition: UIHouses.h:56
HOUSE_DIALOGUE_12
@ HOUSE_DIALOGUE_12
Definition: UIHouses.h:19
HOUSE_STABLES_61
@ HOUSE_STABLES_61
Definition: UIHouses.h:64
HOUSE_DIALOGUE_TAVERN_ARCOMAGE_MAIN
@ HOUSE_DIALOGUE_TAVERN_ARCOMAGE_MAIN
Definition: UIHouses.h:38
HOUSE_466_HARMONDALE
@ HOUSE_466_HARMONDALE
Definition: UIHouses.h:102
HOUSE_BOATS_TATALIA
@ HOUSE_BOATS_TATALIA
Definition: UIHouses.h:72
uHouse_ExitPic
int uHouse_ExitPic
Definition: UIHouses.cpp:45
HOUSE_488_HARMONDALE
@ HOUSE_488_HARMONDALE
Definition: UIHouses.h:106
GUIWindow_House::Update
virtual void Update()
Definition: UIHouses.cpp:4381
TownHallDialog
void TownHallDialog()
Definition: UIHouses.cpp:1915
HOUSE_DIALOGUE_36
@ HOUSE_DIALOGUE_36
Definition: UIHouses.h:27
HOUSE_BOATS_ERATHIA
@ HOUSE_BOATS_ERATHIA
Definition: UIHouses.h:67
HOUSE_601
@ HOUSE_601
Definition: UIHouses.h:109
HOUSE_BOATS_73
@ HOUSE_BOATS_73
Definition: UIHouses.h:76
HOUSE_DIALOGUE_SHOP_SELL
@ HOUSE_DIALOGUE_SHOP_SELL
Definition: UIHouses.h:10
MagicShopDialog
void MagicShopDialog()
Definition: UIShops.cpp:827
HOUSE_DIALOGUE_97
@ HOUSE_DIALOGUE_97
Definition: UIHouses.h:34
HOUSE_STABLES_HARMONDALE
@ HOUSE_STABLES_HARMONDALE
Definition: UIHouses.h:57
HOUSE_BODY_GUILD_INITIATE_EMERALD_ISLE
@ HOUSE_BODY_GUILD_INITIATE_EMERALD_ISLE
Definition: UIHouses.h:93
InitializaDialogueOptions_Shops
void InitializaDialogueOptions_Shops(BuildingType type)
Definition: UIHouses.cpp:417
HOUSE_DIALOGUE_98
@ HOUSE_DIALOGUE_98
Definition: UIHouses.h:35
in_current_building_type
BuildingType in_current_building_type
Definition: UIHouses.cpp:49
dialog_menu_id
HOUSE_DIALOGUE_MENU dialog_menu_id
Definition: UIHouses.cpp:50
HOUSE_LORD_AND_JUDGE_EMERALD_ISLE
@ HOUSE_LORD_AND_JUDGE_EMERALD_ISLE
Definition: UIHouses.h:96
HOUSE_BOATS_AVLEE
@ HOUSE_BOATS_AVLEE
Definition: UIHouses.h:73
dword_591080
int dword_591080
Definition: UIHouses.cpp:47
InitializeBuildingResidents
void InitializeBuildingResidents()
Definition: UIHouses.cpp:3715
HOUSE_DIALOGUE_NULL
@ HOUSE_DIALOGUE_NULL
Definition: UIHouses.h:7
HOUSE_489_HARMONDALE
@ HOUSE_489_HARMONDALE
Definition: UIHouses.h:107
GUIWindow_House::GUIWindow_House
GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const String &hint=String())
Definition: UIHouses.cpp:4349
InitializaDialogueOptions
void InitializaDialogueOptions(BuildingType type)
Definition: UIHouses.cpp:442
HOUSE_JAIL
@ HOUSE_JAIL
Definition: UIHouses.h:97
BuildingType
BuildingType
Definition: Events2D.h:4
HOUSE_DIALOGUE_13
@ HOUSE_DIALOGUE_13
Definition: UIHouses.h:20
HOUSE_STABLES_AVLEE
@ HOUSE_STABLES_AVLEE
Definition: UIHouses.h:63
HouseSound_NotEnoughMoney_TrainingSuccessful
@ HouseSound_NotEnoughMoney_TrainingSuccessful
Definition: UIHouses.h:114
sub_4B6478
void sub_4B6478()
Definition: UIHouses.cpp:3266
HOUSE_DIALOGUE_TEMPLE_DONATE
@ HOUSE_DIALOGUE_TEMPLE_DONATE
Definition: UIHouses.h:18
HOUSE_BANK_HARMONDALE
@ HOUSE_BANK_HARMONDALE
Definition: UIHouses.h:89
HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT
@ HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT
Definition: UIHouses.h:31
HOUSE_BOATS_BRACADA_DESERT
@ HOUSE_BOATS_BRACADA_DESERT
Definition: UIHouses.h:69
HOUSE_DIALOGUE_SHOP_BUY_STANDARD
@ HOUSE_DIALOGUE_SHOP_BUY_STANDARD
Definition: UIHouses.h:9
HOUSE_TRAINING_HALL_95
@ HOUSE_TRAINING_HALL_95
Definition: UIHouses.h:85
HOUSE_DIALOGUE_BANK_GET_GOLD
@ HOUSE_DIALOGUE_BANK_GET_GOLD
Definition: UIHouses.h:15
GUIWindow.h
HOUSE_DIALOGUE_SHOP_REPAIR
@ HOUSE_DIALOGUE_SHOP_REPAIR
Definition: UIHouses.h:12
ArmorShopDialog
void ArmorShopDialog()
Definition: UIShops.cpp:602
HOUSE_STABLES_TATALIA
@ HOUSE_STABLES_TATALIA
Definition: UIHouses.h:62
HOUSE_DIALOGUE_9
@ HOUSE_DIALOGUE_9
Definition: UIHouses.h:16
HOUSE_DIALOGUE_TAVERN_BUY_FOOD
@ HOUSE_DIALOGUE_TAVERN_BUY_FOOD
Definition: UIHouses.h:23
HOUSE_DIALOGUE_TAVERN_ARCOMAGE_VICTORY_CONDITIONS
@ HOUSE_DIALOGUE_TAVERN_ARCOMAGE_VICTORY_CONDITIONS
Definition: UIHouses.h:40
HOUSE_DIALOGUE_SHOP_IDENTIFY
@ HOUSE_DIALOGUE_SHOP_IDENTIFY
Definition: UIHouses.h:11
HOUSE_STABLES_62
@ HOUSE_STABLES_62
Definition: UIHouses.h:65
String
std::string String
Definition: Strings.h:10
HouseSound_Goodbye
@ HouseSound_Goodbye
Definition: UIHouses.h:116
TrainingDialog
void TrainingDialog(const char *s)
Definition: UIHouses.cpp:2933
HOUSE_DARK_GUILD_PIT
@ HOUSE_DARK_GUILD_PIT
Definition: UIHouses.h:95
GUIWindow_House
Definition: UIHouses.h:155
HOUSE_238_EMERALD_ISLE
@ HOUSE_238_EMERALD_ISLE
Definition: UIHouses.h:101
HOUSE_BODY_GUILD_ERATHIA
@ HOUSE_BODY_GUILD_ERATHIA
Definition: UIHouses.h:94
HouseDialogPressCloseBtn
int HouseDialogPressCloseBtn()
Definition: UIHouses.cpp:3911
TempleDialog
void TempleDialog()
Definition: UIHouses.cpp:2599
HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RULES
@ HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RULES
Definition: UIHouses.h:39