Warrior.h 352 B

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