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

32 行
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