Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

27 linhas
495 B

há 5 anos
há 5 anos
há 5 anos
  1. #ifndef SPELL_WARZ_SPELL_CPP
  2. #define SPELL_WARZ_SPELL_CPP 1
  3. class Spell
  4. {
  5. protected:
  6. char name[64];
  7. int type;
  8. int power;
  9. int cost;
  10. public:
  11. static const int NAME_LENGTH = 15;
  12. static const int TYPE_RESTORATION = 1;
  13. static const int TYPE_DESTRUCTION = 2;
  14. Spell(const char *spellName,
  15. const int spellType,
  16. int spellPower,
  17. int spellCost);
  18. const char *getName();
  19. int getType();
  20. int getPower();
  21. int getCost();
  22. };
  23. #endif