-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStuff.cpp
50 lines (28 loc) · 1.3 KB
/
Stuff.cpp
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
/**
* @file Stuff.cpp
* @author DROMIGNY--CHEVREUIL Ivan, FRETAUD Killian
* @date 06/10/2016
* @brief Header de Inventaire.tpp
*
**/
#include <iostream>
#include "Stuff.hpp"
using namespace std;
//------------------------------------------------------------------------------------------------------------- Général
Stuff::Stuff(string nom, int res) : nom_(nom), resistance_(res){}
Stuff::~Stuff(){}
string Stuff::get_nom(){return nom_;}
int Stuff::get_res(){return resistance_;}
void Stuff::set_res(int res){resistance_ = res;}
//------------------------------------------------------------------------------------------------------------- Arme
Arme::Arme(string nom, int res, int deg) : Stuff(nom, res), degat_(deg){}
Arme::~Arme(){}
int Arme::get_deg(){return degat_;}
//------------------------------------------------------------------------------------------------------------- Véhicule
Vehicule::Vehicule(string nom, int res, int vit) : Stuff(nom, res), vitesse_(vit){}
Vehicule::~Vehicule(){}
int Vehicule::get_vit(){return vitesse_;}
//------------------------------------------------------------------------------------------------------------- Aliment
Aliment::Aliment(string nom, int res, int soin) : Stuff(nom, res), soin_(soin){}
Aliment::~Aliment(){}
int Aliment::get_soin(){return soin_;}