CCreatureHandler.h 1004 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CCREATUREHANDLER_H
  2. #define CCREATUREHANDLER_H
  3. #include <string>
  4. #include <vector>
  5. class CCreature
  6. {
  7. public:
  8. std::string namePl, nameSing; //name in singular and plural form
  9. int wood, mercury, ore, sulfur, crystal, gems, gold, fightValue, AIValue, growth, hordeGrowth, hitPoints, speed, attack, defence, shots, spells;
  10. int low1, low2, high1, high2; //TODO - co to w ogóle jest???
  11. std::string abilityText; //description of abilities
  12. std::string abilityRefs; //references to abilities, in textformat
  13. int idNumber;
  14. //TODO - zdolnoœci - na typie wyliczeniowym czy czymœ
  15. };
  16. class CCreatureSet //seven combined creatures
  17. {
  18. CCreature * slot1, slot2, slot3, slot4, slot5, slot6, slot7; //types of creatures on each slot
  19. unsigned int s1, s2, s3, s4, s5, s6, s7; //amounts of units in slots
  20. bool formation; //false - wide, true - tight
  21. };
  22. class CCreatureHandler
  23. {
  24. public:
  25. std::vector<CCreature> creatures;
  26. void loadCreatures();
  27. };
  28. #endif //CCREATUREHANDLER_H