2007-06-08 17:58:04 +03:00
|
|
|
#ifndef CHEROHANDLER_H
|
|
|
|
#define CHEROHANDLER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2007-06-11 20:21:27 +03:00
|
|
|
#include "CCreatureHandler.h"
|
2007-06-16 16:33:58 +03:00
|
|
|
#include "nodrze.h"
|
2007-06-08 17:58:04 +03:00
|
|
|
|
|
|
|
class CHero
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
2007-06-16 16:33:58 +03:00
|
|
|
int ID;
|
2007-06-08 17:58:04 +03:00
|
|
|
int low1stack, high1stack, low2stack, high2stack, low3stack, high3stack; //amount of units; described below
|
|
|
|
std::string refType1stack, refType2stack, refType3stack; //reference names of units appearing in hero's army if he is recruited in tavern
|
2007-06-09 16:28:03 +03:00
|
|
|
std::string bonusName, shortBonus, longBonus; //for special abilities
|
2007-06-11 20:21:27 +03:00
|
|
|
std::string biography; //biography, of course
|
2007-06-09 21:14:41 +03:00
|
|
|
bool isAllowed; //true if we can play with this hero (depends on map)
|
2007-06-16 16:33:58 +03:00
|
|
|
bool operator<(CHero& drugi){if (ID < drugi.ID) return true; else return false;}
|
2007-06-08 17:58:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
class CHeroInstance
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CHero type;
|
2007-06-11 20:21:27 +03:00
|
|
|
int x, y, z; //position
|
|
|
|
CCreatureSet army; //army
|
2007-06-08 17:58:04 +03:00
|
|
|
//TODO: armia, artefakty, itd.
|
|
|
|
};
|
|
|
|
|
|
|
|
class CHeroHandler
|
|
|
|
{
|
|
|
|
public:
|
2007-06-16 16:33:58 +03:00
|
|
|
nodrze<CHero> heroes;
|
2007-06-08 17:58:04 +03:00
|
|
|
void loadHeroes();
|
2007-06-09 16:28:03 +03:00
|
|
|
void loadSpecialAbilities();
|
2007-06-11 20:21:27 +03:00
|
|
|
void loadBiographies();
|
2007-06-08 17:58:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //CHEROHANDLER_H
|