|
@@ -13,15 +13,12 @@
|
|
|
class Unit;
|
|
|
class Cell;
|
|
|
|
|
|
-enum typeEffect{instancePoint, ongoingPoint, instanceUnit, ongoingUnit};
|
|
|
-enum specieEffect{agility_, attack_range_, damage_per_hit_, intelligence_};
|
|
|
|
|
|
class Effect {
|
|
|
|
|
|
private:
|
|
|
int count_;
|
|
|
- typeEffect typeEffect_;
|
|
|
- specieEffect specieEffect_;
|
|
|
+ int durability_;
|
|
|
public:
|
|
|
Effect() = delete;
|
|
|
Effect(std::string path) {
|
|
@@ -32,14 +29,8 @@ public:
|
|
|
int getCount();
|
|
|
void setCount(int value);
|
|
|
|
|
|
- typeEffect getType();
|
|
|
- void setType(typeEffect value);
|
|
|
-
|
|
|
- specieEffect getSpecie();
|
|
|
- void setSpecie(specieEffect value);
|
|
|
-
|
|
|
- void OperateOnCell(Cell*);
|
|
|
- void OperateOnUnit(Unit*);
|
|
|
- //logic here.
|
|
|
+ virtual void OperateOnCell(Cell*) = 0;
|
|
|
+ virtual void OperateOnUnit(Unit*) = 0;
|
|
|
+ //logic here.
|
|
|
};
|
|
|
#endif //THE_GAME_EFFECT_H
|