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:
10
map.h
10
map.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user