This commit is contained in:
ProgramSnail 2021-04-04 17:09:42 +03:00
parent 98b8d3cebb
commit eea91417c9
5 changed files with 72 additions and 9 deletions

View file

@ -4,8 +4,11 @@
namespace draw {
void initColorPairs() {
init_pair(ColorScheme::simple, COLOR_BLACK, COLOR_WHITE);
init_pair(ColorScheme::active, COLOR_WHITE, COLOR_BLACK);
init_pair(ColorScheme::blank, COLOR_BLACK, COLOR_WHITE);
init_pair(ColorScheme::map_simple, COLOR_BLACK, COLOR_WHITE);
init_pair(ColorScheme::map_active, COLOR_WHITE, COLOR_BLACK);
init_pair(ColorScheme::menu_simple, COLOR_BLACK, COLOR_WHITE);
init_pair(ColorScheme::menu_active, COLOR_WHITE, COLOR_BLACK);
init_pair(ColorScheme::player0, COLOR_BLACK, COLOR_RED);
init_pair(ColorScheme::player1, COLOR_BLACK, COLOR_BLUE);
init_pair(ColorScheme::player2, COLOR_BLACK, COLOR_MAGENTA);

View file

@ -6,20 +6,24 @@ namespace draw {
enum ColorScheme {
simple,
active,
map_simple,
map_active,
menu_simple,
menu_active,
player0,
player1,
player2,
player3,
neutral,
damaged,
enviroment
enviroment,
};
enum Cell {
blank = ' ',
menu_h = '-',
menu_v = '|',
menu_hb = '-',
menu_vb = '|',
menu_c = ' ',
field = '.',
mountain = '^',
unit = '#'

View file

@ -0,0 +1,10 @@
#include "draw.hpp"
#include "game_draw.hpp"
namespace game_draw {
void draw() {
std::size_t width;
std::size_t height;
}
}

View file

@ -0,0 +1,5 @@
#pragma once
namespace game_draw {
void draw();
}