|
@@ -9,12 +9,19 @@
|
|
|
#include <iostream>
|
|
|
#include <vector>
|
|
|
//#include "AbstractFactory.h"
|
|
|
-enum typeEffect{damage, strength};
|
|
|
+
|
|
|
+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_;
|
|
|
public:
|
|
|
Effect() = delete;
|
|
|
Effect(std::string path) {
|
|
@@ -27,5 +34,12 @@ public:
|
|
|
|
|
|
typeEffect getType();
|
|
|
void setType(typeEffect value);
|
|
|
+
|
|
|
+ specieEffect getSpecie();
|
|
|
+ void setSpecie(specieEffect value);
|
|
|
+
|
|
|
+ void OperateOnCell(Cell*);
|
|
|
+ void OperateOnUnit(Unit*);
|
|
|
+ //logic here.
|
|
|
};
|
|
|
#endif //THE_GAME_EFFECT_H
|