2007-06-08 22:56:35 +03:00
|
|
|
#ifndef CABILITYHANDLER_H
|
|
|
|
#define CABILITYHANDLER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
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;
|
2007-06-08 22:56:35 +03:00
|
|
|
void loadAbilities();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif CABILITYHANDLER_H
|