selfmove.cpp 382 B

1234567891011121314151617
  1. #include <cassert>
  2. #include "effects\selfmove.h"
  3. #include "cell.h"
  4. #include "units\unit.h"
  5. #include <string>
  6. void SelfMove::OperateOnCell(Cell* cell){
  7. throw std :: string("CAN'T TOUCH THIS");
  8. }
  9. void SelfMove::OperateOnUnit(Unit* unit){
  10. throw std :: string("CAN'T TOUCH THIS");
  11. }
  12. void SelfMove::OperateOnUnitAndCell(Unit* unit, Cell* cell){
  13. unit->setLocation(cell);
  14. }