|
@@ -30,40 +30,27 @@ public:
|
|
|
//---------------------------------------------//
|
|
|
//----------------GUI section------------------//
|
|
|
//---------------------------------------------//
|
|
|
-
|
|
|
- QString getUnitId() const;
|
|
|
- QString getUnitName() const;
|
|
|
- QString getUnitDescr() const;
|
|
|
- QString getUnitBaseClassId() const;
|
|
|
- std::vector<QString> getUnitTraits() const;
|
|
|
- QImage getUnitIcon() const;
|
|
|
+ QString getEffectName() const;
|
|
|
+ QString getEffectDescr() const;
|
|
|
+ QImage getEffectIcon() const;
|
|
|
|
|
|
//---------------------------------------------//
|
|
|
//-----------Parameters load section-----------//
|
|
|
//---------------------------------------------//
|
|
|
|
|
|
private:
|
|
|
- void loadUnitName(QString unit_folder);
|
|
|
- void loadUnitDescr(QString unit_folder);
|
|
|
- void loadUnitBaseClass(QString unit_folder);
|
|
|
- void loadUnitTraits(QString unit_folder);
|
|
|
- void loadUnitIcon(QString unit_folder);
|
|
|
- void loadUnitPrevSpecs(QString unit_folder);
|
|
|
- void loadUnitUpgradeSpecs(QString unit_folder);
|
|
|
+ void loadEffectDescr(QString effect_folder);
|
|
|
+ void loadEffectIcon(QString effect_folder);
|
|
|
public:
|
|
|
- virtual void OperateOnCell(Cell*) = 0;
|
|
|
- virtual void OperateOnUnit(Unit*) = 0;
|
|
|
+ virtual void OperateOnCell(Cell* cell) = 0;
|
|
|
+ virtual void OperateOnUnit(Unit* unit) = 0;
|
|
|
protected:
|
|
|
int count_;
|
|
|
int durability_;
|
|
|
|
|
|
// GUI values
|
|
|
- QString race_id_;
|
|
|
- QString unit_id_;
|
|
|
-
|
|
|
- QString unit_name_;
|
|
|
- QString unit_descr_;
|
|
|
- QString base_class_id_;
|
|
|
- QImage unit_icon_;
|
|
|
+ QString effect_name_;
|
|
|
+ QString effect_descr_;
|
|
|
+ QImage effect_icon_;
|
|
|
};
|
|
|
#endif //THE_GAME_EFFECT_H
|