mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-30 08:57:00 +02:00
cc7be20b07
Because of really huge amount of modifications here I've probably missed some minor stuff. I doubt if it's still compatible with gcc - some changes should be reapplied.
30 lines
548 B
C++
30 lines
548 B
C++
#ifndef CABILITYHANDLER_H
|
|
#define CABILITYHANDLER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class CDefHandler;
|
|
|
|
class CAbility
|
|
{
|
|
public:
|
|
std::string name;
|
|
std::string basicText;
|
|
std::string advText;
|
|
std::string expText;
|
|
int idNumber;
|
|
bool isAllowed; //true if we can use this hero's ability (map information)
|
|
};
|
|
|
|
class CAbilityHandler
|
|
{
|
|
public:
|
|
std::vector<CAbility *> abilities;
|
|
CDefHandler * abils32, * abils44, * abils82;
|
|
std::vector<std::string> levels;
|
|
void loadAbilities();
|
|
};
|
|
|
|
#endif //CABILITYHANDLER_H
|