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.

23 line
359 B

5 年之前
  1. #ifndef SPELL_WARZ_SPELL_CPP
  2. #define SPELL_WARZ_SPELL_CPP 1
  3. class Spell
  4. {
  5. protected:
  6. const char *name;
  7. int type;
  8. int amount;
  9. int cost;
  10. public:
  11. int TYPE_RESTORATION = 0;
  12. int TYPE_DESTRUCTION = 1;
  13. Spell(const char *, int, int, int);
  14. int getType();
  15. int getAmount();
  16. int getCost();
  17. const char *getName();
  18. };
  19. #endif