You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
557 B

  1. #ifndef SPELL_WARZ_SPELL_CPP
  2. #define SPELL_WARZ_SPELL_CPP 1
  3. #include <string>
  4. #include "Element.hpp"
  5. class Spell
  6. {
  7. protected:
  8. std::string name;
  9. Element *element;
  10. int type;
  11. int power;
  12. int cost;
  13. public:
  14. static int TYPE_RESTORATION;
  15. static int TYPE_DESTRUCTION;
  16. Spell(std::string spellName,
  17. Element *spellElement,
  18. int spellType,
  19. int spellPower,
  20. int spellCost);
  21. int getType();
  22. int getPower();
  23. int getCost();
  24. Element *getElement();
  25. std::string getName();
  26. };
  27. #endif