123456789101112131415161718192021222324252627282930313233 |
- #ifndef SPELLSMANAGER_H
- #define SPELLSMANAGER_H
- /*#include <QObject>
- #include <QString>
- #include <QImage>
- #include <vector>
- #include "abstractfactory.h"
- #include "effects/effect.h"
- #include "spells/spell.h"
- class SpellManager : public QObject
- {
- Q_OBJECT
- public:
- //explicit Race(QString race_name, QObject *parent = nullptr);
- std::shared_ptr<Spell> createSpell(QString spell_name);
- const std::vector<QString> &getAvailableUnitsList();
- const std::vector<std::shared_ptr<Unit>> &getAllUnitsList();
- private:
- QString race_id_;
- QString race_name_;
- QImage race_icon_;
- QString race_descr_;
- ObjectFactory<Unit, QString> spells_factory_;
- std::vector<QString> available_spells_list_;
- std::vector<std::shared_ptr<Unit>> all_spells_list_;
- }*/
- #endif // SPELLSMANAGER_H
|