25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
731 B

5 년 전
  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. }
  25. std::vector<Spell *> Spell::Book = {
  26. new Spell("Spanish Inquisition", 1, 111111, 0),
  27. new Spell("Mana Bolt", 1, 5, 1),
  28. new Spell("Flame Bolt", 1, 8, 2),
  29. new Spell("Mana Flare", 1, 10, 3),
  30. new Spell("Ice Spear", 1, 13, 4),
  31. new Spell("Mana Misile", 1, 15, 5),
  32. new Spell("Thunder Strike", 1, 18, 6),
  33. new Spell("Mana Blast", 1, 20, 7),
  34. };