-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCombatLog.h
78 lines (65 loc) · 1.35 KB
/
CombatLog.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef COMBATLOG_H
#define COMBATLOG_H
#include <vector>
#include <string>
#define USE_HTML
#ifdef USE_HTML
#define FONT_BLUE "<font color='blue'>"
#else
#define FONT_BLUE ""
#endif
#ifdef USE_HTML
#define FONT_RED "<font color='red'>"
#else
#define FONT_RED ""
#endif
#ifdef USE_HTML
#define FONT_MAGENTA "<font color='magenta'>"
#else
#define FONT_MAGENTA ""
#endif
#ifdef USE_HTML
#define FONT_MAROON "<font color='maroon'>"
#else
#define FONT_MAROON ""
#endif
#ifdef USE_HTML
#define FONT_GREEN "<font color='green'>"
#else
#define FONT_GREEN ""
#endif
#ifdef USE_HTML
#define FONT_PURPLE "<font color='purple'>"
#else
#define FONT_PURPLE ""
#endif
#ifdef USE_HTML
#define FONT_BROWN "<font color='brown'>"
#else
#define FONT_BROWN ""
#endif
#ifdef USE_HTML
#define END_FONT "</font>"
#else
#define END_FONT ""
#endif
#define DAMAGE_FONT_COLOR FONT_MAROON
#define ATTACKER_FONT_COLOR FONT_PURPLE
#define RECEIVER_FONT_COLOR FONT_PURPLE
#define ABILITY_FONT_COLOR FONT_BROWN
class CombatLog
{
std::vector<std::string> logText;
bool enabled = true;
public:
CombatLog();
std::vector<std::string>& getLogText() {
return logText;
}
void clear() {
this->logText.clear();
}
bool getEnabled() const;
void setEnabled(bool value);
};
#endif // COMBATLOG_H