2008-12-26 03:46:53 +02:00
|
|
|
#ifndef __CABILITYHANDLER_H__
|
|
|
|
#define __CABILITYHANDLER_H__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class CDefHandler;
|
|
|
|
|
|
|
|
class CAbility
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
|
|
|
std::vector <std::string> infoTexts; //0 - basic; 2 - advanced
|
|
|
|
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__
|