diff --git a/d03/ex01/ScavTrap.cpp b/d03/ex01/ScavTrap.cpp index 242fafd..df8bc14 100644 --- a/d03/ex01/ScavTrap.cpp +++ b/d03/ex01/ScavTrap.cpp @@ -26,5 +26,5 @@ ScavTrap::~ScavTrap( void ) { */ void ScavTrap::guardGate() { - std::cout << _class << " entered special mode Gate Keeper\n"; + std::cout << _class << " " << ScavTrap::_name << " entered special mode Gate Keeper\n"; } diff --git a/d03/ex01/main.cpp b/d03/ex01/main.cpp index 02a3a40..95451d7 100644 --- a/d03/ex01/main.cpp +++ b/d03/ex01/main.cpp @@ -54,11 +54,14 @@ int main() { goAttack(robot1, robot2); goAttack(robot2, robot1); goAttack(robot1, robot3); + robot2.guardGate(); goAttack(robot1, robot4); goAttack(robot4, robot2); goAttack(robot2, robot3); goAttack(robot2, robot4); + robot3.guardGate(); goAttack(robot3, robot1); + robot2.guardGate(); goAttack(robot3, robot4); goAttack(robot2, robot1); goAttack(robot2, robot4); diff --git a/d03/ex01/robots b/d03/ex01/robots index 5626fc9..9d66d84 100755 Binary files a/d03/ex01/robots and b/d03/ex01/robots differ