2007-06-08 22:56:35 +03:00
|
|
|
#ifndef CABILITYHANDLER_H
|
|
|
|
#define CABILITYHANDLER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2008-01-15 20:50:52 +02:00
|
|
|
class CDefHandler;
|
|
|
|
|
2007-06-08 22:56:35 +03:00
|
|
|
class CAbility
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
2007-08-04 22:01:22 +03:00
|
|
|
std::string basicText;
|
|
|
|
std::string advText;
|
|
|
|
std::string expText;
|
2007-06-08 22:56:35 +03:00
|
|
|
int idNumber;
|
2007-06-09 23:23:44 +03:00
|
|
|
bool isAllowed; //true if we can use this hero's ability (map information)
|
2007-06-08 22:56:35 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
class CAbilityHandler
|
|
|
|
{
|
|
|
|
public:
|
2007-07-16 17:42:44 +03:00
|
|
|
std::vector<CAbility *> abilities;
|
2008-01-15 20:50:52 +02:00
|
|
|
CDefHandler * abils32, * abils44, * abils82;
|
|
|
|
std::vector<std::string> levels;
|
2007-06-08 22:56:35 +03:00
|
|
|
void loadAbilities();
|
|
|
|
};
|
|
|
|
|
2008-08-02 18:08:03 +03:00
|
|
|
#endif //CABILITYHANDLER_H
|