SelfHeal.cpp 369 B

12345678910111213141516171819
  1. //
  2. // Created by IgorBat on 23.04.2018.
  3. //
  4. #pragma once
  5. #include <cassert>
  6. #include "effect\selfdamage.h"
  7. #include "units\unit.h"
  8. #include <string>
  9. void melledamage::OperateOnCell(Cell* cell){
  10. throw std :: string("CAN'T TOUCH THIS")
  11. }
  12. void melledamage::OperateOnUnit(Unit* unit){
  13. unit.setHealthPoints(unit.getHealthPoints() + count_);
  14. //check_on_death
  15. }