#include #include "PlayerT.h" using namespace std; char FighterT::MapSymbol(){ return 'F'; } char WizardT::MapSymbol(){ return 'W'; } void WizardT::Move(MapT & map, CoordT pos, int time) { CoordT up = map.Up(pos); if (map.At(up) == nullptr) { if (CanMove(time)) { cout << " Moving the wizard from " << pos << " to " << up << endl; map.Move(pos, up); UpdateMoveTime(time); } } } void FighterT::Move(MapT & map, CoordT pos, int time) { CoordT left{map.Left(pos)}; if (map.At(left) == nullptr) { if (CanMove(time)) { cout << " Moving the fighter from " << pos << " to " << left << endl; map.Move(pos, left); UpdateMoveTime(time); } } }