Rider.h 321 B

123456789101112131415161718
  1. #pragma once
  2. #include <iostream>
  3. #include <cassert>
  4. #include "unit.h"
  5. class Rider : public Unit {
  6. Rider() = delete;
  7. Rider(std::string id);
  8. ~Rider();
  9. //increase dmg with len of movement path
  10. bool canAttackForDistance(int distance);
  11. bool canAttackToCell(Cell* destination);
  12. bool canAttackUnit(Unit* target);
  13. };