1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Buildings in town (tylko zamek, trzeba inaczej sortować, jeden budynek źle trafiony)

This commit is contained in:
Michał W. Urbańczyk
2008-01-15 21:38:01 +00:00
parent bce31ba91b
commit 4b772315bb
7 changed files with 132 additions and 7 deletions

View File

@@ -2,10 +2,14 @@
#include "global.h"
#include "SDL.h"
#include "CPlayerInterface.h"
#include "boost/tuple/tuple.hpp"
class CGTownInstance;
class CTownHandler;
struct Structure;
template <typename T> class AdventureMapButton;
class CBuildingRect : public MotionInterested, public ClickableL, public ClickableR, public TimeInterested
class CBuildingRect : public MotionInterested, public ClickableL, public ClickableR//, public TimeInterested
{
void activate();
void deactivate();
};
@@ -22,6 +26,8 @@ public:
AdventureMapButton<CCastleInterface> * exit;
std::vector<boost::tuples::tuple<int,CDefHandler*,Structure*,SDL_Surface*,SDL_Surface*> *> buildings; //building id, building def, structure struct, border, filling
CCastleInterface(const CGTownInstance * Town, bool Activate=true);
~CCastleInterface();
void show();