some fixes

This commit is contained in:
ProgramSnail 2021-04-06 19:31:54 +03:00
parent eea91417c9
commit 4f2bfac443
7 changed files with 85 additions and 32 deletions

View file

@ -2,9 +2,30 @@
#include "game_draw.hpp"
namespace game_draw {
void draw() {
std::size_t width;
std::size_t height;
const size_t MENU_WIDTH = 16;
void drawAll() {
size_t width;
size_t height;
draw::getSize(width, height);
// check width && height
for(size_t i = 0; i < height; ++i) {
draw::drawCh(i, 0, draw::Cell::menu_hb);
draw::drawCh(i, width - 1, draw::Cell::menu_hb);
draw::drawCh(i, width - MENU_WIDTH, draw::Cell::menu_hb);
}
for(size_t i = 0; i < width; ++i) {
draw::drawCh(0, i, draw::Cell::menu_vb);
draw::drawCh(height - 1, i, draw::Cell::menu_vb);
}
// draw corners
}
void drawMenu(std::pair<size_t, size_t> start, std::pair<size_t, size_t> end) {
}
}
}
void drawMap(std::pair<size_t, size_t> start, std::pair<size_t, size_t> end) {
}
}