CSpellHandler.h 947 B

1234567891011121314151617181920212223242526272829303132333435
  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. };
  25. class DLL_EXPORT CSpellHandler
  26. {
  27. public:
  28. std::vector<CSpell> spells;
  29. void loadSpells();
  30. };
  31. #endif //CSPELLHANDLER_H