CSpellHandler.h 1016 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef CSPELLHANDLER_H
  2. #define CSPELLHANDLER_H
  3. #include <string>
  4. #include <vector>
  5. class CSpell
  6. {
  7. public:
  8. ui32 id;
  9. std::string name;
  10. std::string abbName; //abbreviated name
  11. si32 level;
  12. bool earth;
  13. bool water;
  14. bool fire;
  15. bool air;
  16. si32 power; //spell's power
  17. std::vector<si32> costs; //per skill level: 0 - none, 1 - basic, etc
  18. std::vector<si32> powers; //[er skill level: 0 - none, 1 - basic, etc
  19. std::vector<si32> probabilities; //% chance to gain for castles
  20. std::vector<si32> AIVals; //AI values: per skill level: 0 - none, 1 - basic, etc
  21. std::vector<std::string> descriptions; //descriptions of spell for skill levels: 0 - none, 1 - basic, etc
  22. std::string attributes; //reference only attributes
  23. bool combatSpell; //is this spell combat (true) or adventure (false)
  24. bool creatureAbility; //if true, only creatures can use this spell
  25. };
  26. class DLL_EXPORT CSpellHandler
  27. {
  28. public:
  29. std::vector<CSpell> spells;
  30. void loadSpells();
  31. };
  32. #endif //CSPELLHANDLER_H