You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

3 years ago
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/23 10:53:16 by narnaud #+# #+# */
/* Updated: 2022/06/23 17:34:04 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "ScavTrap.hpp"
int main(void)
{
ClapTrap a("A");
ClapTrap b("B");
ScavTrap c("C");
a.attack("B");
b.attack("C");
c.attack("A");
a.attack("C");
b.attack("A");
c.beRepaired(10);
a.beRepaired(5);
b.attack("C");
c.guardGate();
}