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.

27 lines
431 B

  1. #ifndef SPELL_WARZ_SPELL_CPP
  2. #define SPELL_WARZ_SPELL_CPP 1
  3. #include <vector>
  4. #include <string>
  5. class Spell
  6. {
  7. protected:
  8. std::string name;
  9. int type;
  10. int amount;
  11. int cost;
  12. public:
  13. int TYPE_RESTORATION = 0;
  14. int TYPE_DESTRUCTION = 1;
  15. static std::vector<Spell> Book;
  16. Spell(std::string, int, int, int);
  17. int getType();
  18. int getAmount();
  19. int getCost();
  20. std::string getName();
  21. };
  22. #endif