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
495 B

5 years ago
5 years ago
5 years ago
  1. #ifndef SPELL_WARZ_SPELL_CPP
  2. #define SPELL_WARZ_SPELL_CPP 1
  3. class Spell
  4. {
  5. protected:
  6. char name[64];
  7. int type;
  8. int power;
  9. int cost;
  10. public:
  11. static const int NAME_LENGTH = 15;
  12. static const int TYPE_RESTORATION = 1;
  13. static const int TYPE_DESTRUCTION = 2;
  14. Spell(const char *spellName,
  15. const int spellType,
  16. int spellPower,
  17. int spellCost);
  18. const char *getName();
  19. int getType();
  20. int getPower();
  21. int getCost();
  22. };
  23. #endif