d03 ex00 ok

This commit is contained in:
Hugo LAMY
2022-02-17 13:43:18 +01:00
parent f911e6fbcd
commit 5b836dd5d4
6 changed files with 181 additions and 2 deletions

13
d03/ex00/main.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "ClapTrap.hpp"
int main() {
ClapTrap robot1("robot1");
ClapTrap robot2("robot2");
robot1.attack(robot2.getName());
robot2.takeDamage(robot1.getAttack());
robot2.beRepaired(robot1.getAttack());
return 0;
}