Archer.h 282 B

12345678910111213141516
  1. #pragma once
  2. #include <iostream>
  3. #include <cassert>
  4. #include "unit.h"
  5. class Archer : public Unit {
  6. Archer() = delete;
  7. Archer(std::string id);
  8. ~Archer();
  9. bool canAttackForDistance(int distance);
  10. bool canAttackToCell(Cell* destination);
  11. bool canAttackUnit(Unit* target);
  12. };