mastring the simple heritage
This commit is contained in:
parent
245ac4c3a9
commit
d161579a2a
13 changed files with 376 additions and 4 deletions
37
cpp03/ex02/main.cpp
Normal file
37
cpp03/ex02/main.cpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/10 15:50:07 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/24 21:02:23 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ClapTrap.hpp"
|
||||
#include "ScavTrap.hpp"
|
||||
#include "FragTrap.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int main(void) {
|
||||
std::cout << "[Broadcast]\n\tIn the Blue corner the actual cat of the 42 school !" << std::endl;
|
||||
ClapTrap test("Moulinette");
|
||||
test.beRepaired(32);
|
||||
std::cout << "\n\n[Broadcast]\n\tIn the Red corner the first cat of the 42 school !" << std::endl;
|
||||
ScavTrap test2("Norminet");
|
||||
test2.attack("Moulinette");
|
||||
test2.takeDamage(42);
|
||||
test2.beRepaired(42);
|
||||
test2.guardGate();
|
||||
test2.guardGate();
|
||||
test2.guardGate();
|
||||
std::cout << "\n\n[Broadcast]\n\t And for the referee of this legendary fight the others cats of Made !" << std::endl;
|
||||
FragTrap test3("Norminet");
|
||||
test3.attack("Moulinette");
|
||||
test3.takeDamage(42);
|
||||
test3.beRepaired(42);
|
||||
test3.highFivesGuys();
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue