Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lignes
557 B

il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
  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