d03 ex01 guardGate functions
This commit is contained in:
@@ -26,5 +26,5 @@ ScavTrap::~ScavTrap( void ) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
void ScavTrap::guardGate() {
|
void ScavTrap::guardGate() {
|
||||||
std::cout << _class << " entered special mode Gate Keeper\n";
|
std::cout << _class << " " << ScavTrap::_name << " entered special mode Gate Keeper\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,11 +54,14 @@ int main() {
|
|||||||
goAttack(robot1, robot2);
|
goAttack(robot1, robot2);
|
||||||
goAttack(robot2, robot1);
|
goAttack(robot2, robot1);
|
||||||
goAttack(robot1, robot3);
|
goAttack(robot1, robot3);
|
||||||
|
robot2.guardGate();
|
||||||
goAttack(robot1, robot4);
|
goAttack(robot1, robot4);
|
||||||
goAttack(robot4, robot2);
|
goAttack(robot4, robot2);
|
||||||
goAttack(robot2, robot3);
|
goAttack(robot2, robot3);
|
||||||
goAttack(robot2, robot4);
|
goAttack(robot2, robot4);
|
||||||
|
robot3.guardGate();
|
||||||
goAttack(robot3, robot1);
|
goAttack(robot3, robot1);
|
||||||
|
robot2.guardGate();
|
||||||
goAttack(robot3, robot4);
|
goAttack(robot3, robot4);
|
||||||
goAttack(robot2, robot1);
|
goAttack(robot2, robot1);
|
||||||
goAttack(robot2, robot4);
|
goAttack(robot2, robot4);
|
||||||
|
|||||||
BIN
d03/ex01/robots
BIN
d03/ex01/robots
Binary file not shown.
Reference in New Issue
Block a user