spellsmanager.h 810 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef SPELLSMANAGER_H
  2. #define SPELLSMANAGER_H
  3. /*#include <QObject>
  4. #include <QString>
  5. #include <QImage>
  6. #include <vector>
  7. #include "abstractfactory.h"
  8. #include "effects/effect.h"
  9. #include "spells/spell.h"
  10. class SpellManager : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. //explicit Race(QString race_name, QObject *parent = nullptr);
  15. std::shared_ptr<Spell> createSpell(QString spell_name);
  16. const std::vector<QString> &getAvailableUnitsList();
  17. const std::vector<std::shared_ptr<Unit>> &getAllUnitsList();
  18. private:
  19. QString race_id_;
  20. QString race_name_;
  21. QImage race_icon_;
  22. QString race_descr_;
  23. ObjectFactory<Unit, QString> spells_factory_;
  24. std::vector<QString> available_spells_list_;
  25. std::vector<std::shared_ptr<Unit>> all_spells_list_;
  26. }*/
  27. #endif // SPELLSMANAGER_H