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

* reading disposed/predefined heroes (probably works)

* new discoveries in h3m specification

VCMI handles correctly all known maps again :)
This commit is contained in:
Michał W. Urbańczyk
2008-02-25 18:35:10 +00:00
parent ee2a63f26e
commit 33fd0d22a6
4 changed files with 261 additions and 27 deletions

10
map.h
View File

@@ -7,6 +7,7 @@
#include "hch\CSemiDefHandler.h"
#include "hch\CDefHandler.h"
class CGDefInfo;
class CHeroObjInfo;
enum ESortBy{name,playerAm,size,format, viccon,loscon};
struct Sresource
{
@@ -150,6 +151,13 @@ struct Rumor
std::string name, text;
};
struct DisposedHero
{
int ID;
int portrait; //0xFF - default
std::string name;
bool players[8]; //who can hire this hero
};
class CMapEvent
{
@@ -176,6 +184,8 @@ struct Mapa
TerrainTile** terrain;
TerrainTile** undergroungTerrain; // used only if there is underground level
std::vector<Rumor> rumors;
std::vector<DisposedHero> disposedHeroes;
std::vector<CHeroObjInfo*> predefinedHeroes;
std::vector<CGDefInfo *> defy; // list of .def files
PlayerInfo players[8]; // info about players
std::vector<int> teams; // teams[i] = team of player no i