25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

41 satır
777 B

4 yıl önce
4 yıl önce
4 yıl önce
  1. #include "Spell.hpp"
  2. Spell::Spell(std::string n, int t, int a, int c)
  3. {
  4. this->name = std::string(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. std::string Spell::getName()
  22. {
  23. return this->name;
  24. }
  25. std::vector<Spell> Spell::Book = {
  26. Spell("Napalm Beat", 1, 4, 1),
  27. Spell("Fire Ball", 1, 6, 2),
  28. Spell("Cold Bolt", 1, 8, 3),
  29. Spell("Stone curse", 1, 10, 4),
  30. Spell("Lightning Bolt", 1, 12, 5),
  31. Spell("Soul Strike", 1, 14, 6),
  32. Spell("Fire Wall", 1, 16, 7),
  33. Spell("Frost Diver", 1, 18, 8),
  34. Spell("Lighting Storm", 1, 20, 9),
  35. Spell("Asura's Strike", 1, 50, 10),
  36. };