CAbilityHandler.h 542 B

123456789101112131415161718192021222324252627
  1. #ifndef CABILITYHANDLER_H
  2. #define CABILITYHANDLER_H
  3. #include <string>
  4. #include <vector>
  5. class CDefHandler;
  6. class CAbility
  7. {
  8. public:
  9. std::string name;
  10. std::vector <std::string> infoTexts; //0 - basic; 2 - advanced
  11. int idNumber;
  12. bool isAllowed; //true if we can use this hero's ability (map information)
  13. };
  14. class CAbilityHandler
  15. {
  16. public:
  17. std::vector<CAbility *> abilities;
  18. CDefHandler * abils32, * abils44, * abils82;
  19. std::vector<std::string> levels;
  20. void loadAbilities();
  21. };
  22. #endif //CABILITYHANDLER_H