view UIHouses.h @ 748:daecb0225226

Menu completed
author Nomad
date Fri, 22 Mar 2013 22:36:26 +0200
parents 585490c29945
children f39fbeb65b28
line wrap: on
line source

#pragma once

#include "stru159.h"

enum HOUSE_DIALOGUE_MENU: unsigned __int32
{
  HOUSE_DIALOGUE_NULL = 0,
  HOUSE_DIALOGUE_MAIN = 1,
  HOUSE_DIALOGUE_SHOP_BUY_STANDARD = 2,
  HOUSE_DIALOGUE_SHOP_SELL = 3,
  HOUSE_DIALOGUE_SHOP_IDENTIFY = 4,
  HOUSE_DIALOGUE_SHOP_REPAIR = 5,
  HOUSE_DIALOGUE_6 = 6,
  HOUSE_DIALOGUE_7 = 7,
  HOUSE_DIALOGUE_8 = 8,
  HOUSE_DIALOGUE_9 = 9,
  HOUSE_DIALOGUE_TEMPLE_HEAL = 10,
  HOUSE_DIALOGUE_TEMPLE_DONATE = 11,
  HOUSE_DIALOGUE_12 = 12,
  HOUSE_DIALOGUE_13 = 13,
  HOUSE_DIALOGUE_14 = 14,
  HOUSE_DIALOGUE_TAVERN_REST = 15,
  HOUSE_DIALOGUE_TAVERN_BUY_FOOD = 16,
  HOUSE_DIALOGUE_17 = 17,
  HOUSE_DIALOGUE_GULD_BUY_BOOKS = 18,
  //...
  HOUSE_DIALOGUE_GUILD_LEARN_SKILL = 72,
  //...
  HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT = 94,
  HOUSE_DIALOGUE_SHOP_BUY_SPECIAL = 95,
  HOUSE_DIALOGUE_LEARN_SKILLS = 96,
  //...
  HOUSE_DIALOGUE_TAVERN_ARCOMAGE_MAIN = 101,
  HOUSE_DIALOGUE_TAVERN_ARCOMAGE_102 = 102,
  HOUSE_DIALOGUE_TAVERN_ARCOMAGE_103 = 103,
  HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RESULT = 104,

  HOUSE_DIALOGUE_OTHER = -1
};

/*  349 */
enum HOUSE_ID
{
  HOUSE_SMITH_EMERALD_ISLE = 1,
  HOUSE_ARMOURER_EMERALD_ISLE = 15,
  HOUSE_MAGE_EMERALD_ISLE = 29,
  HOUSE_MAGE_HARMONDALE = 30,
  HOUSE_ALCHEMIST_EMERALD_ISLE = 42,
  HOUSE_ALCHEMIST_HARMONDALE = 43,
  HOUSE_STABLES_HARMONDALE = 54,
  HOUSE_TEMPLE_EMERALD_ISLE = 74,
  HOUSE_TEMPLE_HARMONDALE = 75,
  HOUSE_TRAINING_HALL_HARMONDALE = 90,
  HOUSE_TOWNHALL_HARMONDALE = 102,
  HOUSE_TAVERN_EMERALD_ISLE = 107,
  HOUSE_BANK_HARMONDALE = 128,
  HOUSE_FIRE_GUILD_INITIATE_EMERALD_ISLE = 139,
  HOUSE_AIR_GUILD_INITIATE_EMERALD_ISLE = 143,
  HOUSE_SPIRIT_GUILD_INITIATE_EMERALD_ISLE = 155,
  HOUSE_BODY_GUILD_INITIATE_EMERALD_ISLE = 163,
  HOUSE_BODY_GUILD_ERATHIA = 165,
  HOUSE_DARK_GUILD_PIT = 170,
  HOUSE_LORD_AND_JUDGE_EMERALD_ISLE = 186,
  HOUSE_JAIL = 187,
  HOUSE_JUDGE_HARMONDALE = 190,
  HOUSE_224_EMERALD_ISLE = 224,
  HOUSE_225_EMERALD_ISLE = 225,
  HOUSE_466_HARMONDALE = 466,
  HOUSE_467_HARMONDALE = 467,
  HOUSE_468_HARMONDALE = 468,
  HOUSE_472_HARMONDALE = 472,
  HOUSE_488_HARMONDALE = 488,
  HOUSE_489_HARMONDALE = 489,
  HOUSE_600 = 600,//???
  HOUSE_601 = 601//???
};

enum HouseSoundID: unsigned __int32
{
  HouseSound_Greeting = 1,
  HouseSound_NotEnoughMoney = 2,
  HouseSound_Greeting_2 = 3,      // good greeting when you're guild member
  HouseSound_Goodbye = 4          // farewells when bought something
};

int __cdecl TrainingDialog();
char *__cdecl JailDialog();
void  MagicShopDialog();
void  GuildDialog();
void  sub_4B6478();
bool __fastcall IsTravelAvailable(int a1);
void __cdecl TravelByTransport();
void TempleDialog();
void __cdecl TownHallDialog();
void __cdecl BankDialog();
void __cdecl TavernDialog();
void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound); // idb
void __cdecl WeaponShopDialog();
void __cdecl AlchemistDialog();
void __cdecl ArmorShopDialog();

extern int uHouse_ExitPic; // weak
extern int dword_591080; // weak
extern  const stru159 pAnimatedRooms[196];
extern int in_current_building_type; // 00F8B198
extern HOUSE_DIALOGUE_MENU dialog_menu_id; // 00F8B19C