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.

29 lignes
365 B

il y a 4 ans
  1. #include "Spell.hpp"
  2. Spell::Spell(const char *n, int t, int a, int c)
  3. {
  4. this->name = n;
  5. this->type = t;
  6. this->amount = a;
  7. this->cost = c;
  8. }
  9. int Spell::getType()
  10. {
  11. return this->type;
  12. }
  13. int Spell::getAmount()
  14. {
  15. return this->amount;
  16. }
  17. int Spell::getCost()
  18. {
  19. return this->cost;
  20. }
  21. const char *Spell::getName()
  22. {
  23. return this->name;
  24. }