-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathArme.cpp
More file actions
61 lines (50 loc) · 797 Bytes
/
Arme.cpp
File metadata and controls
61 lines (50 loc) · 797 Bytes
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
58
59
60
61
#include "Arme.h"
Arme::Arme()
{
setDegats(10);
setPortee(1);
setType("normal");
setNiveauRequis(0);
setPrix(0);
}
Arme::Arme(int d,int p,string t,int nr ,float pr){
setDegats(d);
setPortee(p);
setType(t);
setNiveauRequis(nr);
setPrix(pr);
}
Arme::~Arme()
{
//dtor
}
int Arme::getDegats(){
return degats;
}
int Arme::getPortee(){
return portee;
}
string Arme::getType(){
return type;
}
int Arme::getNiveauRequis(){
return niveauRequis;
}
float Arme::getPrix(){
return prix;
}
void Arme::setDegats(int d){
degats = d;
}
void Arme::setPortee(int p){
portee = p;
}
void Arme::setType(string t){
type = t;
}
void Arme::setNiveauRequis(int nr){
niveauRequis = nr;
}
void Arme::setPrix(float p){
prix = p;
}