// // Created by IgorBat on 23.04.2018. // #include #include "effects\meleedamage.h" #include "units\unit.h" #include void MeleeDamage::OperateOnCell(Cell* cell){ throw std :: string("CAN'T TOUCH THIS"); } void MeleeDamage::OperateOnUnitToCell(Unit* who, Cell* where){ throw std :: string("CAN'T TOUCH THIS"); } void MeleeDamage::OperateOnUnit(Unit* unit){ //int temp = unit -> reduceIncomingDamage("p", count_); //unit ->setHealthPoints(unit -> getHealthPoints() - temp); //check_on_death } void MeleeDamage::Execute(Cell* from, Cell* where, Unit* who, Unit* whom, TypeOfTrigger Type){ if(Type == 1) OperateOnUnit(whom); }