Add travis module
[labyrinth.git] / src / ColorTerm.hpp
1 #ifndef COLORTERM_HPP
2 #define COLORTERM_HPP
3
4 #include <ostream>
5
6 /*
7 enum Code {
8         FG_RED     = 31,
9         FG_GREEN   = 32,
10         FG_YELLOW  = 33,
11         FG_BLUE    = 34,
12         FG_MAGENTA = 35,
13         FG_CYAN    = 36,
14         FG_WHITE   = 37,
15         FG_DEFAULT = 39,
16
17         BG_RED     = 41,
18         BG_GREEN   = 42,
19         BG_YELLOW  = 43,
20         BG_BLUE    = 44,
21         BG_MAGENTA = 45,
22         BG_CYAN    = 46,
23         BG_WHITE   = 47,
24         BG_DEFAULT = 39
25 };
26
27 color : "\033[`CODE`m"
28
29 */
30
31 // Uncoment for no color compatibility
32 // #define NO_COLOR
33
34 #ifndef NO_COLOR
35
36         /************
37          *  Global  *
38          ************/
39
40 #define COLOR_RESET        "\033[0m"
41 #define COLOR_ERROR        "\033[31m"
42
43         /****************
44         *  Personnage  *
45         ****************/
46
47 #define COLOR_PLAYER       "\033[36m"   // cyan
48 #define COLOR_STAT         "\033[32m"   // green
49 #define COLOR_EQUIP        "\033[33m"   // yellow
50 #define COLOR_DEAD         "\033[31m"   // red
51
52         /************
53         *  Combat  *
54         ************/
55 #define COLOR_MONSTER      "\033[1m"    // bold
56 #define COLOR_DAMAGE       "\033[31m"   // red
57 #define COLOR_MONSTER_HP   "\033[1;31m" // bold red
58 #define COLOR_PLAYER_HP    "\033[1;32m" // bold gree
59
60
61         /**********
62         *  Loot  *
63         **********/
64 #define COLOR_IMPROVEMENT  "\033[34m"   // bleu
65
66         /*********
67         *  Map  *
68         *********/
69 #define COLOR_MAP_DEFAULT  "\033[1;39m" // bold
70 #define COLOR_MAP_TREASURE "\033[33m"   // yellow
71 #define COLOR_MAP_MONSTER  "\033[31m"   // red
72 #define COLOR_MAP_END      "\033[35m"   // magenta
73 #define COLOR_MAP_START    "\033[34m"   // bleu
74
75 #else
76
77         /************
78          *  Global  *
79          ************/
80
81 #define COLOR_RESET        ""
82 #define COLOR_ERROR        ""
83
84         /****************
85         *  Personnage  *
86         ****************/
87
88 #define COLOR_PLAYER       "" // cyan
89 #define COLOR_STAT         "" // green
90 #define COLOR_EQUIP        "" // yellow
91 #define COLOR_DEAD         "" // red
92
93         /************
94         *  Combat  *
95         ************/
96 #define COLOR_MONSTER      "" // bold
97 #define COLOR_DAMAGE       "" // red
98 #define COLOR_MONSTER_HP   "" // bold red
99 #define COLOR_PLAYER_HP    "" // bold gree
100
101
102         /**********
103         *  Loot  *
104         **********/
105 #define COLOR_IMPROVEMENT  "" // bleu
106
107         /*********
108         *  Map  *
109         *********/
110 #define COLOR_MAP_DEFAULT  "" // bold
111 #define COLOR_MAP_TREASURE "" // yellow
112 #define COLOR_MAP_MONSTER  "" // red
113 #define COLOR_MAP_END      "" // agenta
114 #define COLOR_MAP_START    "" // bleu
115
116 #endif
117
118 #endif /* COLORTERM_HPP */
119