2011-12-14 00:23:17 +03:00
|
|
|
#pragma once
|
|
|
|
|
2014-07-13 20:53:37 +03:00
|
|
|
#include "../widgets/CGarrisonInt.h"
|
2014-07-15 10:14:49 +03:00
|
|
|
#include "../widgets/Images.h"
|
2011-02-06 19:26:27 +02:00
|
|
|
|
2014-08-03 14:16:19 +03:00
|
|
|
class CButton;
|
2011-04-07 20:54:08 +03:00
|
|
|
class CBuilding;
|
|
|
|
class CCastleBuildings;
|
|
|
|
class CCreaturePic;
|
|
|
|
class CGStatusBar;
|
|
|
|
class CGTownInstance;
|
|
|
|
class CLabel;
|
|
|
|
class CMinorResDataBar;
|
|
|
|
class CPicture;
|
2009-04-16 14:14:13 +03:00
|
|
|
class CResDataBar;
|
2011-04-07 20:54:08 +03:00
|
|
|
class CSpell;
|
|
|
|
class CTextBox;
|
2009-05-20 12:02:50 +03:00
|
|
|
class CTownList;
|
2012-09-02 13:33:41 +03:00
|
|
|
struct CStructure;
|
2011-12-17 21:59:59 +03:00
|
|
|
class CGHeroInstance;
|
|
|
|
class CGarrisonInt;
|
|
|
|
class CCreature;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2009-04-15 17:03:31 +03:00
|
|
|
/*
|
|
|
|
* CCastleInterface.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
2009-04-16 14:14:13 +03:00
|
|
|
*/
|
|
|
|
|
2011-12-14 00:23:17 +03:00
|
|
|
|
2011-02-22 13:52:36 +02:00
|
|
|
/// Building "button"
|
2010-11-15 17:15:00 +02:00
|
|
|
class CBuildingRect : public CShowableAnim
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2013-05-30 21:43:45 +03:00
|
|
|
std::string getSubtitle();
|
2009-04-16 14:14:13 +03:00
|
|
|
public:
|
2013-05-30 21:43:45 +03:00
|
|
|
/// returns building associated with this structure
|
|
|
|
const CBuilding * getBuilding();
|
|
|
|
|
2011-03-22 15:19:07 +02:00
|
|
|
CCastleBuildings * parent;
|
2011-04-07 20:54:08 +03:00
|
|
|
const CGTownInstance * town;
|
2012-09-02 13:33:41 +03:00
|
|
|
const CStructure* str;
|
2009-04-16 14:14:13 +03:00
|
|
|
SDL_Surface* border;
|
|
|
|
SDL_Surface* area;
|
2011-03-22 15:19:07 +02:00
|
|
|
|
2011-12-14 00:23:17 +03:00
|
|
|
ui32 stateCounter;//For building construction - current stage in animation
|
2011-03-22 15:19:07 +02:00
|
|
|
|
2012-09-02 13:33:41 +03:00
|
|
|
CBuildingRect(CCastleBuildings * Par, const CGTownInstance *Town, const CStructure *Str); //c-tor
|
2009-05-07 20:20:41 +03:00
|
|
|
~CBuildingRect(); //d-tor
|
2009-04-16 14:14:13 +03:00
|
|
|
bool operator<(const CBuildingRect & p2) const;
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover(bool on) override;
|
|
|
|
void clickLeft(tribool down, bool previousState) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
|
|
|
void mouseMoved (const SDL_MouseMotionEvent & sEvent) override;
|
|
|
|
void show(SDL_Surface * to) override;
|
|
|
|
void showAll(SDL_Surface * to) override;
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
2010-06-26 13:01:26 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
/// Dwelling info box - right-click screen for dwellings
|
2012-06-15 20:08:19 +03:00
|
|
|
class CDwellingInfoBox : public CWindowObject
|
2011-04-07 20:54:08 +03:00
|
|
|
{
|
|
|
|
CLabel *title;
|
|
|
|
CCreaturePic *animation;
|
|
|
|
CLabel *available;
|
|
|
|
CLabel *costPerTroop;
|
|
|
|
|
2012-05-13 18:04:21 +03:00
|
|
|
std::vector<CAnimImage *> resPicture;
|
2011-04-07 20:54:08 +03:00
|
|
|
std::vector<CLabel *> resAmount;
|
|
|
|
public:
|
|
|
|
CDwellingInfoBox(int centerX, int centerY, const CGTownInstance *Town, int level);
|
|
|
|
};
|
|
|
|
|
2011-04-30 21:16:58 +03:00
|
|
|
class HeroSlots;
|
|
|
|
/// Hero icon slot
|
2009-08-11 19:05:33 +03:00
|
|
|
class CHeroGSlot : public CIntObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
|
|
|
public:
|
2011-04-30 21:16:58 +03:00
|
|
|
HeroSlots *owner;
|
2009-04-16 14:14:13 +03:00
|
|
|
const CGHeroInstance *hero;
|
|
|
|
int upg; //0 - up garrison, 1 - down garrison
|
|
|
|
|
2012-05-13 18:04:21 +03:00
|
|
|
CAnimImage *image;
|
2013-06-26 14:18:27 +03:00
|
|
|
CAnimImage *selection; //selection border. nullptr if not selected
|
2012-05-13 18:04:21 +03:00
|
|
|
|
2009-09-09 09:04:42 +03:00
|
|
|
void setHighlight(bool on);
|
2012-05-13 18:04:21 +03:00
|
|
|
void set(const CGHeroInstance *newHero);
|
2009-09-09 09:04:42 +03:00
|
|
|
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover (bool on) override;
|
|
|
|
void clickLeft(tribool down, bool previousState) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
|
|
|
void deactivate() override;
|
2011-04-30 21:16:58 +03:00
|
|
|
CHeroGSlot(int x, int y, int updown, const CGHeroInstance *h, HeroSlots * Owner); //c-tor
|
2009-05-07 20:20:41 +03:00
|
|
|
~CHeroGSlot(); //d-tor
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
|
|
|
|
2011-04-30 21:16:58 +03:00
|
|
|
/// Two hero slots that can interact with each other
|
|
|
|
class HeroSlots : public CIntObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool showEmpty;
|
|
|
|
const CGTownInstance * town;
|
|
|
|
|
|
|
|
CGarrisonInt *garr;
|
|
|
|
CHeroGSlot * garrisonedHero;
|
|
|
|
CHeroGSlot * visitingHero;
|
|
|
|
|
2011-12-22 16:05:19 +03:00
|
|
|
HeroSlots(const CGTownInstance * town, Point garrPos, Point visitPos, CGarrisonInt *Garrison, bool ShowEmpty);
|
2011-04-30 21:16:58 +03:00
|
|
|
|
|
|
|
void splitClicked(); //for hero meeting only (splitting stacks is handled by garrison int)
|
|
|
|
void update();
|
2012-07-21 23:16:54 +03:00
|
|
|
void swapArmies(); //exchange garrisoned and visiting heroes or move hero to\from garrison
|
2011-04-30 21:16:58 +03:00
|
|
|
};
|
|
|
|
|
2011-03-22 15:19:07 +02:00
|
|
|
/// Class for town screen management (town background and structures)
|
|
|
|
class CCastleBuildings : public CIntObject
|
|
|
|
{
|
|
|
|
CPicture *background;
|
2012-09-05 15:49:23 +03:00
|
|
|
//List of buildings and structures that can represent them
|
2013-02-11 22:11:34 +03:00
|
|
|
std::map< BuildingID, std::vector<const CStructure*> > groups;
|
2012-09-05 15:49:23 +03:00
|
|
|
// actual IntObject's visible on screen
|
|
|
|
std::vector< CBuildingRect * > buildings;
|
2011-03-22 15:19:07 +02:00
|
|
|
|
|
|
|
const CGTownInstance * town;
|
|
|
|
|
|
|
|
const CGHeroInstance* getHero();//Select hero for buildings usage
|
|
|
|
|
2013-02-11 02:24:57 +03:00
|
|
|
void enterBlacksmith(ArtifactID artifactID);//support for blacksmith + ballista yard
|
2013-02-11 22:11:34 +03:00
|
|
|
void enterBuilding(BuildingID building);//for buildings with simple description + pic left-click messages
|
2011-03-22 15:19:07 +02:00
|
|
|
void enterCastleGate();
|
2013-02-11 22:11:34 +03:00
|
|
|
void enterFountain(BuildingID building);//Rampart's fountains
|
2011-03-22 15:19:07 +02:00
|
|
|
void enterMagesGuild();
|
|
|
|
void enterTownHall();
|
|
|
|
|
|
|
|
void openMagesGuild();
|
|
|
|
void openTownHall();
|
|
|
|
|
2012-09-05 15:49:23 +03:00
|
|
|
void recreate();
|
2011-03-22 15:19:07 +02:00
|
|
|
public:
|
|
|
|
CBuildingRect * selectedBuilding;
|
|
|
|
|
|
|
|
CCastleBuildings(const CGTownInstance* town);
|
|
|
|
~CCastleBuildings();
|
|
|
|
|
|
|
|
void enterDwelling(int level);
|
|
|
|
|
2013-02-11 22:11:34 +03:00
|
|
|
void buildingClicked(BuildingID building);
|
|
|
|
void addBuilding(BuildingID building);
|
|
|
|
void removeBuilding(BuildingID building);//FIXME: not tested!!!
|
2011-03-22 15:19:07 +02:00
|
|
|
|
2015-10-12 15:47:10 +02:00
|
|
|
void show(SDL_Surface * to) override;
|
|
|
|
void showAll(SDL_Surface * to) override;
|
2011-03-22 15:19:07 +02:00
|
|
|
};
|
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
/// Creature info window
|
|
|
|
class CCreaInfo : public CIntObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2011-04-07 20:54:08 +03:00
|
|
|
const CGTownInstance * town;
|
|
|
|
const CCreature *creature;
|
|
|
|
int level;
|
2011-07-18 18:21:16 +03:00
|
|
|
bool showAvailable;
|
2011-04-07 20:54:08 +03:00
|
|
|
|
|
|
|
CAnimImage *picture;
|
|
|
|
CLabel * label;
|
2011-03-22 15:19:07 +02:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
int AddToString(std::string from, std::string & to, int numb);
|
2011-07-18 18:21:16 +03:00
|
|
|
std::string genGrowthText();
|
2011-04-07 20:54:08 +03:00
|
|
|
|
2009-04-16 14:14:13 +03:00
|
|
|
public:
|
2011-12-22 16:05:19 +03:00
|
|
|
CCreaInfo(Point position, const CGTownInstance *Town, int Level, bool compact=false, bool showAvailable=false);
|
2011-04-07 20:54:08 +03:00
|
|
|
|
2011-07-18 18:21:16 +03:00
|
|
|
void update();
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover(bool on) override;
|
|
|
|
void clickLeft(tribool down, bool previousState) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
2011-04-07 20:54:08 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/// Town hall and fort icons for town screen
|
|
|
|
class CTownInfo : public CIntObject
|
|
|
|
{
|
|
|
|
const CGTownInstance *town;
|
|
|
|
const CBuilding *building;
|
|
|
|
CAnimImage *picture;
|
|
|
|
public:
|
|
|
|
//if (townHall) hall-capital else fort - castle
|
|
|
|
CTownInfo(int posX, int posY, const CGTownInstance* town, bool townHall);
|
|
|
|
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover(bool on) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
2011-04-07 20:54:08 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/// Class which manages the castle window
|
2012-06-02 18:16:54 +03:00
|
|
|
class CCastleInterface : public CWindowObject, public CWindowWithGarrison
|
2011-04-07 20:54:08 +03:00
|
|
|
{
|
|
|
|
CLabel *title;
|
|
|
|
CLabel *income;
|
|
|
|
CAnimImage *icon;
|
|
|
|
|
|
|
|
CPicture * panel;
|
2009-04-16 14:14:13 +03:00
|
|
|
CResDataBar *resdatabar;
|
2011-04-07 20:54:08 +03:00
|
|
|
CGStatusBar * statusbar;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
CTownInfo *hall, *fort;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2014-08-03 14:16:19 +03:00
|
|
|
CButton *exit;
|
|
|
|
CButton *split;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2009-12-23 03:46:15 +02:00
|
|
|
std::vector<CCreaInfo*> creainfo;//small icons of creatures (bottom-left corner);
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
2012-06-22 14:40:16 +03:00
|
|
|
CTownList * townlist;
|
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
//TODO: remove - currently used only in dialog messages
|
|
|
|
CDefEssential* bicons; //150x70 buildings imgs
|
|
|
|
|
|
|
|
//TODO: move to private
|
|
|
|
const CGTownInstance * town;
|
2011-04-30 21:16:58 +03:00
|
|
|
HeroSlots *heroes;
|
2011-04-07 20:54:08 +03:00
|
|
|
CCastleBuildings *builds;
|
|
|
|
|
2012-06-22 14:40:16 +03:00
|
|
|
//from - previously selected castle (if any)
|
2012-06-13 16:04:06 +03:00
|
|
|
CCastleInterface(const CGTownInstance * Town, const CGTownInstance * from = nullptr); //c-tor
|
2011-04-07 20:54:08 +03:00
|
|
|
~CCastleInterface();
|
2009-07-20 11:18:33 +03:00
|
|
|
|
2010-06-26 13:01:26 +03:00
|
|
|
void castleTeleport(int where);
|
2009-04-16 14:14:13 +03:00
|
|
|
void townChange();
|
2015-10-12 15:47:10 +02:00
|
|
|
void keyPressed(const SDL_KeyboardEvent & key) override;
|
2009-04-16 14:14:13 +03:00
|
|
|
void close();
|
2013-02-11 22:11:34 +03:00
|
|
|
void addBuilding(BuildingID bid);
|
|
|
|
void removeBuilding(BuildingID bid);
|
2009-12-23 03:46:15 +02:00
|
|
|
void recreateIcons();
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
2011-02-22 13:52:36 +02:00
|
|
|
|
|
|
|
/// Hall window where you can build things
|
2012-06-02 18:16:54 +03:00
|
|
|
class CHallInterface : public CWindowObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2011-03-22 15:19:07 +02:00
|
|
|
/// Building box from town hall (building icon + subtitle)
|
2009-08-11 19:05:33 +03:00
|
|
|
class CBuildingBox : public CIntObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2011-04-07 20:54:08 +03:00
|
|
|
const CGTownInstance * town;
|
|
|
|
const CBuilding * building;
|
|
|
|
|
2011-12-14 00:23:17 +03:00
|
|
|
ui32 state;//Buildings::EBuildStructure enum
|
2011-04-07 20:54:08 +03:00
|
|
|
|
|
|
|
CAnimImage * picture;
|
|
|
|
CAnimImage * panel;
|
|
|
|
CAnimImage * icon;
|
|
|
|
CLabel * label;
|
|
|
|
|
2009-04-16 14:14:13 +03:00
|
|
|
public:
|
2011-04-07 20:54:08 +03:00
|
|
|
CBuildingBox(int x, int y, const CGTownInstance * Town, const CBuilding * Building);
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover(bool on) override;
|
|
|
|
void clickLeft(tribool down, bool previousState) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
2011-04-07 20:54:08 +03:00
|
|
|
const CGTownInstance * town;
|
|
|
|
|
|
|
|
std::vector< std::vector<CBuildingBox*> >boxes;
|
|
|
|
CLabel *title;
|
|
|
|
CGStatusBar *statusBar;
|
|
|
|
CMinorResDataBar * resdatabar;
|
2014-08-03 14:16:19 +03:00
|
|
|
CButton *exit;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
|
|
|
CHallInterface(const CGTownInstance * Town); //c-tor
|
|
|
|
};
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
/// Window where you can decide to buy a building or not
|
2012-06-02 18:16:54 +03:00
|
|
|
class CBuildWindow: public CWindowObject
|
2011-04-07 20:54:08 +03:00
|
|
|
{
|
|
|
|
const CGTownInstance *town;
|
|
|
|
const CBuilding *building;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2014-08-03 14:16:19 +03:00
|
|
|
CButton *buy;
|
|
|
|
CButton *cancel;
|
2011-04-07 20:54:08 +03:00
|
|
|
|
|
|
|
std::string getTextForState(int state);
|
|
|
|
void buyFunc();
|
|
|
|
|
|
|
|
public:
|
2012-06-13 16:04:06 +03:00
|
|
|
CBuildWindow(const CGTownInstance *Town, const CBuilding * building, int State, bool rightClick); //c-tor
|
2011-04-07 20:54:08 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
//Small class to display
|
|
|
|
class LabeledValue : public CIntObject
|
|
|
|
{
|
|
|
|
std::string hoverText;
|
|
|
|
CLabel *name;
|
|
|
|
CLabel *value;
|
|
|
|
void init(std::string name, std::string descr, int min, int max);
|
|
|
|
|
|
|
|
public:
|
2011-12-22 16:05:19 +03:00
|
|
|
LabeledValue(Rect size, std::string name, std::string descr, int min, int max);
|
|
|
|
LabeledValue(Rect size, std::string name, std::string descr, int val);
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover(bool on) override;
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
|
|
|
|
2011-02-22 13:52:36 +02:00
|
|
|
/// The fort screen where you can afford units
|
2012-06-02 18:16:54 +03:00
|
|
|
class CFortScreen : public CWindowObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2011-04-07 20:54:08 +03:00
|
|
|
class RecruitArea : public CIntObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2011-04-07 20:54:08 +03:00
|
|
|
const CGTownInstance *town;
|
2010-07-26 01:47:59 +03:00
|
|
|
int level;
|
2011-04-07 20:54:08 +03:00
|
|
|
|
|
|
|
std::string hoverText;
|
|
|
|
CLabel * creatureName;
|
|
|
|
CLabel * dwellingName;
|
|
|
|
CLabel * availableCount;
|
|
|
|
|
|
|
|
std::vector<LabeledValue*> values;
|
|
|
|
CPicture *icons;
|
|
|
|
CAnimImage * buildingPic;
|
|
|
|
CCreaturePic *creatureAnim;
|
|
|
|
|
2014-01-11 21:12:09 +03:00
|
|
|
const CCreature * getMyCreature();
|
|
|
|
const CBuilding * getMyBuilding();
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
2014-01-11 21:12:09 +03:00
|
|
|
RecruitArea(int posX, int posY, const CGTownInstance *town, int level);
|
2011-04-07 20:54:08 +03:00
|
|
|
|
|
|
|
void creaturesChanged();
|
2015-10-12 15:47:10 +02:00
|
|
|
void hover(bool on) override;
|
|
|
|
void clickLeft(tribool down, bool previousState) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
2011-04-07 20:54:08 +03:00
|
|
|
CLabel *title;
|
|
|
|
std::vector<RecruitArea*> recAreas;
|
2009-05-20 12:02:50 +03:00
|
|
|
CMinorResDataBar * resdatabar;
|
2011-04-07 20:54:08 +03:00
|
|
|
CGStatusBar *statusBar;
|
2014-08-03 14:16:19 +03:00
|
|
|
CButton *exit;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2012-06-02 18:16:54 +03:00
|
|
|
std::string getBgName(const CGTownInstance *town);
|
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
|
|
|
CFortScreen(const CGTownInstance * town); //c-tor
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
void creaturesChanged();
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
|
|
|
|
2011-02-22 13:52:36 +02:00
|
|
|
/// The mage guild screen where you can see which spells you have
|
2012-06-02 18:16:54 +03:00
|
|
|
class CMageGuildScreen : public CWindowObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2009-08-11 19:05:33 +03:00
|
|
|
class Scroll : public CIntObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2010-12-17 20:47:07 +02:00
|
|
|
const CSpell *spell;
|
2011-04-07 20:54:08 +03:00
|
|
|
CAnimImage *image;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
2011-12-22 16:05:19 +03:00
|
|
|
Scroll(Point position, const CSpell *Spell);
|
2015-10-12 15:47:10 +02:00
|
|
|
void clickLeft(tribool down, bool previousState) override;
|
|
|
|
void clickRight(tribool down, bool previousState) override;
|
|
|
|
void hover(bool on) override;
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
2011-04-07 20:54:08 +03:00
|
|
|
CPicture *window;
|
2014-08-03 14:16:19 +03:00
|
|
|
CButton *exit;
|
2010-11-15 17:15:00 +02:00
|
|
|
std::vector<Scroll *> spells;
|
2009-05-20 12:02:50 +03:00
|
|
|
CMinorResDataBar * resdatabar;
|
2011-04-07 20:54:08 +03:00
|
|
|
CGStatusBar *statusBar;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
2014-04-24 22:36:10 +03:00
|
|
|
CMageGuildScreen(CCastleInterface * owner,std::string image);
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
|
|
|
|
2011-03-22 15:19:07 +02:00
|
|
|
/// The blacksmith window where you can buy available in town war machine
|
2012-06-02 18:16:54 +03:00
|
|
|
class CBlacksmithDialog : public CWindowObject
|
2009-04-16 14:14:13 +03:00
|
|
|
{
|
2014-08-03 14:16:19 +03:00
|
|
|
CButton *buy, *cancel;
|
2011-02-06 19:26:27 +02:00
|
|
|
CPicture *animBG;
|
2010-11-15 17:15:00 +02:00
|
|
|
CCreatureAnim * anim;
|
2011-04-07 20:54:08 +03:00
|
|
|
CLabel * title;
|
|
|
|
CLabel * costText;
|
|
|
|
CLabel * costValue;
|
|
|
|
CGStatusBar *statusBar;
|
2009-04-16 14:14:13 +03:00
|
|
|
|
2011-04-07 20:54:08 +03:00
|
|
|
public:
|
2013-02-14 02:55:42 +03:00
|
|
|
CBlacksmithDialog(bool possible, CreatureID creMachineID, ArtifactID aid, ObjectInstanceID hid);
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|