2007-06-08 19:56:35 +00:00
|
|
|
#ifndef CABILITYHANDLER_H
|
|
|
|
#define CABILITYHANDLER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2008-01-15 18:50:52 +00:00
|
|
|
class CDefHandler;
|
|
|
|
|
2007-06-08 19:56:35 +00:00
|
|
|
class CAbility
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
2008-08-13 00:44:31 +00:00
|
|
|
std::vector <std::string> infoTexts; //0 - basic; 2 - advanced
|
2007-06-08 19:56:35 +00:00
|
|
|
int idNumber;
|
2007-06-09 20:23:44 +00:00
|
|
|
bool isAllowed; //true if we can use this hero's ability (map information)
|
2007-06-08 19:56:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CAbilityHandler
|
|
|
|
{
|
|
|
|
public:
|
2007-07-16 14:42:44 +00:00
|
|
|
std::vector<CAbility *> abilities;
|
2008-01-15 18:50:52 +00:00
|
|
|
CDefHandler * abils32, * abils44, * abils82;
|
|
|
|
std::vector<std::string> levels;
|
2007-06-08 19:56:35 +00:00
|
|
|
void loadAbilities();
|
|
|
|
};
|
|
|
|
|
2008-07-16 18:26:15 +00:00
|
|
|
#endif //CABILITYHANDLER_H
|