CAbilityHandler.h 548 B

1234567891011121314151617181920212223242526272829
  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::string basicText;
  11. std::string advText;
  12. std::string expText;
  13. int idNumber;
  14. bool isAllowed; //true if we can use this hero's ability (map information)
  15. };
  16. class CAbilityHandler
  17. {
  18. public:
  19. std::vector<CAbility *> abilities;
  20. CDefHandler * abils32, * abils44, * abils82;
  21. std::vector<std::string> levels;
  22. void loadAbilities();
  23. };
  24. #endif //CABILITYHANDLER_H