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.

42 lines
664 B

  1. #include "Spell.hpp"
  2. int Spell::TYPE_RESTORATION = 1;
  3. int Spell::TYPE_DESTRUCTION = 2;
  4. Spell::Spell(std::string spellName,
  5. Element *spellElement,
  6. int spellType,
  7. int spellPower,
  8. int spellCost)
  9. {
  10. this->name = spellName;
  11. this->element = spellElement;
  12. this->type = spellType;
  13. this->power = spellPower;
  14. this->cost = spellCost;
  15. }
  16. int Spell::getType()
  17. {
  18. return this->type;
  19. }
  20. int Spell::getPower()
  21. {
  22. return this->power;
  23. }
  24. int Spell::getCost()
  25. {
  26. return this->cost;
  27. }
  28. Element *Spell::getElement()
  29. {
  30. return this->element;
  31. }
  32. std::string Spell::getName()
  33. {
  34. return this->name;
  35. }