-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gladiator.h
48 lines (39 loc) · 876 Bytes
/
Gladiator.h
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
#ifndef EX1_GLADIATOR_H
#define EX1_GLADIATOR_H
#include "utility.h"
class Gladiator {
public:
Gladiator(GladiatorID, Level = 0, TrainerID = 0);
~Gladiator();
Gladiator(const Gladiator&);
Level GetLevel();
GladiatorID GetGladiatorID();
TrainerID GetTrainerID();
/**
* increase the level by levelIncrease
*/
void IncreaseLevel(LevelIncrease);
/**
* two gladiators are equal if have the same id
* @param gladiator
* @return
*/
bool operator==(Gladiator& gladiator);
/**
* compare by id
* @param gladiator
* @return
*/
bool operator<(Gladiator& gladiator);
/**
* compare by id
* @param gladiator
* @return
*/
bool operator>(Gladiator& gladiator);
private:
GladiatorID id;
Level level;
TrainerID trainer;
};
#endif //EX1_GLADIATOR_H