選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

27 行
495 B

5年前
  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