aboutsummaryrefslogtreecommitdiff
path: root/cpp04/ex01/RadScorpion.cpp
blob: a5fcb270a35ea7662c2233b34a89df48f3abc951 (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
49
50
51
52
53
54
55
56
57
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   RadScorpion.cpp                                    :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/14 13:36:11 by charles           #+#    #+#             */
/*   Updated: 2020/12/11 10:54:28 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "RadScorpion.hpp"

RadScorpion::RadScorpion() : Enemy(80, "RadScorpion")
{
    std::cout << "* click click click *" << std::endl;
}

RadScorpion::RadScorpion(RadScorpion const& other) : Enemy(other)
{
    std::cout << "* click click click *" << std::endl;
}

RadScorpion& RadScorpion::operator=(RadScorpion const& other)
{
    Enemy::operator=(other);
    return *this;
}

RadScorpion::~RadScorpion()
{
    std::cout << "* SPROTCH *" << std::endl;
}

/*****************************************************************************/

NotSoRadScorpion::NotSoRadScorpion() : Enemy(80, "NotSoRadScorpion")
{
    std::cout << "* not so click click click *" << std::endl;
}

NotSoRadScorpion::NotSoRadScorpion(NotSoRadScorpion const& other) : Enemy(other)
{
    std::cout << "* not so click click click *" << std::endl;
}

NotSoRadScorpion& NotSoRadScorpion::operator=(NotSoRadScorpion const& other)
{
    Enemy::operator=(other);
    return *this;
}

NotSoRadScorpion::~NotSoRadScorpion()
{
    std::cout << "* SPROTCH (fuck this correction pdf) *" << std::endl;
}