CHeroHandler.h 645 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef CHEROHANDLER_H
  2. #define CHEROHANDLER_H
  3. #include <string>
  4. #include <vector>
  5. class CHero
  6. {
  7. public:
  8. std::string name;
  9. int low1stack, high1stack, low2stack, high2stack, low3stack, high3stack; //amount of units; described below
  10. std::string refType1stack, refType2stack, refType3stack; //reference names of units appearing in hero's army if he is recruited in tavern
  11. };
  12. class CHeroInstance
  13. {
  14. public:
  15. CHero type;
  16. int x, y; //position
  17. bool under; //is underground?
  18. //TODO: armia, artefakty, itd.
  19. };
  20. class CHeroHandler
  21. {
  22. public:
  23. std::vector<CHero> heroes;
  24. void loadHeroes();
  25. };
  26. #endif //CHEROHANDLER_H