CSpellHandler.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef CSPELLHANDLER_H
  2. #define CSPELLHANDLER_H
  3. #include <string>
  4. #include <vector>
  5. class CSpell
  6. {
  7. public:
  8. bool isAllowed; //true if we can use this spell (depends on map)
  9. std::string name;
  10. std::string abbName; //abbreviated name
  11. int level;
  12. bool earth;
  13. bool water;
  14. bool fire;
  15. bool air;
  16. int costNone;
  17. int costBas;
  18. int costAdv;
  19. int costExp;
  20. int power; //spell's power
  21. int powerNone; //effect without magic ability
  22. int powerBas; //efect with basic magic ability
  23. int powerAdv; //efect with advanced magic ability
  24. int powerExp; //efect with expert magic ability
  25. int castle, rampart, tower, inferno, necropolis, dungeon, stronghold, fortress, conflux; //% chance to gain
  26. int none2, bas2, adv2, exp2; //AI values
  27. std::string noneTip, basTip, advTip, expTip; //descriptions of spell
  28. std::string attributes; //reference only attributes
  29. bool combatSpell; //is this spell combat (true) or adventure (false)
  30. };
  31. class CSpellHandler
  32. {
  33. public:
  34. std::vector<CSpell> spells;
  35. void loadSpells();
  36. };
  37. #endif //CSPELLHANDLER_H