ConnectX 3.0
ConnectX Game Suite
Loading...
Searching...
No Matches
visual.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
5// ANSI color codes
6namespace Color
7{
8 inline constexpr int RESET = 0;
9 inline constexpr int RED = 31;
10 inline constexpr int GREEN = 32;
11 inline constexpr int YELLOW = 33;
12 inline constexpr int BLUE = 34;
13 inline constexpr int MAGENTA = 35;
14 inline constexpr int CYAN = 36;
15 inline constexpr int WHITE = 37;
16 inline constexpr int BRIGHT_RED = 91;
17 inline constexpr int BRIGHT_GREEN = 92;
18 inline constexpr int BRIGHT_YELLOW = 93;
19 inline constexpr int BRIGHT_BLUE = 94;
20}
21
22// Symbols
23enum class Symbol : char
24{
25 EMPTY = '.',
26 PLAYER1 = '#',
27 PLAYER2 = '@',
28 PLAYER3 = '%',
29 PLAYER4 = '&',
30 PLAYER5 = '*',
31 PLAYER6 = 'o',
32 PLAYER7 = '+',
33 PLAYER8 = '=',
34 PLAYER9 = 'x',
35 PLAYER10 = '~'
36};
37
39{
41 int color;
42};
43
44extern const std::map<int, PlayerVisual> PLAYER_VISUALS;
Definition visual.hpp:7
constexpr int RESET
Definition visual.hpp:8
constexpr int BLUE
Definition visual.hpp:12
constexpr int BRIGHT_GREEN
Definition visual.hpp:17
constexpr int BRIGHT_YELLOW
Definition visual.hpp:18
constexpr int GREEN
Definition visual.hpp:10
constexpr int BRIGHT_RED
Definition visual.hpp:16
constexpr int RED
Definition visual.hpp:9
constexpr int MAGENTA
Definition visual.hpp:13
constexpr int WHITE
Definition visual.hpp:15
constexpr int YELLOW
Definition visual.hpp:11
constexpr int CYAN
Definition visual.hpp:14
constexpr int BRIGHT_BLUE
Definition visual.hpp:19
Definition visual.hpp:39
Symbol symbol
Definition visual.hpp:40
int color
Definition visual.hpp:41
const std::map< int, PlayerVisual > PLAYER_VISUALS
Definition visual.cpp:3
Symbol
Definition visual.hpp:24