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

* fixed initialization of map of players

* functions in callback for getting info about towns
* added info about towns to CGameState
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2007-09-18 13:30:26 +00:00
parent b0e72f334e
commit 6d0bcef157
12 changed files with 186 additions and 56 deletions

View File

@@ -1,18 +1,16 @@
#ifndef CADVENTUREMAPINTERFACE_H
#define CADVENTUREMAPINTERFACE_H
#include <typeinfo>
#include "SDL.h"
#include "hch\CDefHandler.h"
#include "SDL_Extensions.h"
#include "CGameInterface.h"
#include "CGameInfo.h"
#include "SDL_Extensions.h"
#include <boost/logic/tribool.hpp>
#include "global.h"
#include "CPathfinder.h"
#include "mapHandler.h"
#include "SDL.h"
#include "CGameInterface.h"
#include <boost/logic/tribool.hpp>
#include <map>
class CDefHandler;
class CCallback;
class CTownInstance;
class CPath;
class AdventureMapButton
: public ClickableL, public ClickableR, public Hoverable, public KeyInterested, public CButtonBase
@@ -81,6 +79,8 @@ class CTownList
: public CList
{
public:
std::vector<const CTownInstance*> items;
int posporx,pospory;
CTownList();
void genList();
@@ -165,6 +165,7 @@ class CResDataBar
public:
SDL_Surface * bg;
std::vector<std::pair<int,int> > txtpos;
std::string datetext;
void clickRight (tribool down);
void activate();