MelleDamage.cpp 430 B

12345678910111213141516171819
  1. //
  2. // Created by IgorBat on 23.04.2018.
  3. //
  4. #pragma once
  5. #include <cassert>
  6. #include "effect\melledamage.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. int temp = unit -> reduceIncomingDamage("p", count_);
  14. unit ->setHealthPoints(unit -> getHealthPoints() - temp);
  15. //check_on_death
  16. }