-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengine.h
More file actions
64 lines (55 loc) · 1.8 KB
/
engine.h
File metadata and controls
64 lines (55 loc) · 1.8 KB
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
62
63
64
#ifndef Engine_h
#define Engine_h
#include "include.h"
struct turbos { string part; unsigned hpGain; };
struct intake { string part; unsigned hpGain; };
struct exaust { string part; unsigned hpGain; };
struct ECUnit { string part; unsigned hpGain; };
struct intern { string part; unsigned hpResis; };
class Engine {
friend ostream &operator<<(ostream &, const Engine &);
public:
Engine(const unsigned &);
Engine(const Engine &);
~Engine() {}
const unsigned getHpower() const;
const bool setInterns();
const bool setTurbos();
const bool setIntake();
const bool setExaust();
const bool setECUnit();
static const unsigned getHpStock();
private: //Sobrecargas
const bool operator==(const turbos &) const;
const bool operator==(const intake &) const;
const bool operator==(const exaust &) const;
const bool operator==(const ECUnit &) const;
const bool operator==(const intern &) const;
private: //Bibliotecas
static const turbos turbosParts[];
static const intake intakeParts[];
static const exaust exaustParts[];
static const ECUnit ECUnitParts[];
static const intern internParts[];
private:
static const turbos &getTurbos();
static const intake &getIntake();
static const exaust &getExaust();
static const ECUnit &getECUnit();
static const intern &getIntern();
turbos myTurbos;
intake myIntake;
exaust myExaust;
ECUnit myECUnit;
intern myIntern;
unsigned hpParts;
unsigned hpAtual;
static const unsigned MINHP;
static const unsigned MAXHP;
};
ostream &operator<<(ostream &, const intern &);
ostream &operator<<(ostream &, const turbos &);
ostream &operator<<(ostream &, const intake &);
ostream &operator<<(ostream &, const exaust &);
ostream &operator<<(ostream &, const ECUnit &);
#endif