selfmovespell.cpp 370 B

1234567891011121314
  1. #include <cassert>
  2. #include "spells/selfmovespell.h"
  3. #include "units/unit.h"
  4. #include "cell.h"
  5. #include <string>
  6. void SelfMoveSpell::CastSpell(Cell* from, Cell* where, Unit* who, Unit* whom){
  7. effects_[0] -> OperateOnUnitToCell(who, where);
  8. }
  9. bool SelfMoveSpell::canCastToCell(Cell* destination, Cell* from){
  10. return isNeirbor(Cell* destination, Cell* from);
  11. }