effect.h 555 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Created by IgorBat on 17.03.2018.
  3. //
  4. #ifndef THE_GAME_EFFECT_H
  5. #define THE_GAME_EFFECT_H
  6. #pragma once
  7. #include <iostream>
  8. #include <vector>
  9. //#include "AbstractFactory.h"
  10. class Unit;
  11. class Cell;
  12. class Effect {
  13. private:
  14. int count_;
  15. int durability_;
  16. public:
  17. Effect() = delete;
  18. Effect(std::string path) {
  19. }
  20. virtual ~Effect() = delete;
  21. int getCount();
  22. void setCount(int value);
  23. virtual void OperateOnCell(Cell*) = 0;
  24. virtual void OperateOnUnit(Unit*) = 0;
  25. //logic here.
  26. };
  27. #endif //THE_GAME_EFFECT_H