aboutsummaryrefslogtreecommitdiff
path: root/cpp03/ex02/main.cpp
blob: 8e1e8f07dfdd01b405fb3b559d58759b556351a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   main.cpp                                           :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/22 05:41:27 by cacharle          #+#    #+#             */
/*   Updated: 2020/04/13 14:30:37 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include <cstdlib>
#include "FragTrap.hpp"
#include "ScavTrap.hpp"

int main(void)
{
    srand(time(NULL));

    FragTrap ft("bob");
    ft.rangedAttack("a dog");
    ft.meleeAttack("a cat");
    ft.takeDamage(10);
    ft.beRepaired(10);
    ft.vaulthunter_dot_exe("your mom");
    ft.vaulthunter_dot_exe("your dad");
    ft.vaulthunter_dot_exe("your brother");
    ft.vaulthunter_dot_exe("your sister");
    ft.vaulthunter_dot_exe("your grandma");
    ft.takeDamage(1000);
    ft.beRepaired(1000);

    std::cout << std::endl;
    ScavTrap scav("jean");
    scav.rangedAttack("a dog");
    scav.meleeAttack("a cat");
    scav.takeDamage(10);
    scav.beRepaired(10);
    scav.challengeNewcomer("your mom");
    scav.challengeNewcomer("your dad");
    scav.challengeNewcomer("your brother");
    scav.challengeNewcomer("your sister");
    scav.challengeNewcomer("your grandma");
    scav.takeDamage(1000);
    scav.beRepaired(1000);
	return 0;
}