X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fui.h;h=67ec2d6f0718540ff55e9cd0d037a60990742f73;hb=9240af1ae3159c7ba2f1ff1152089efd7fa5e38e;hp=291507808fb91c624964f7e074efeedf5d762b1f;hpb=480acfeb0ef3b0c4e9ec23ec145c9860ba64095e;p=Project_algorithmic_C.git diff --git a/lib/ui.h b/lib/ui.h index 2915078..67ec2d6 100644 --- a/lib/ui.h +++ b/lib/ui.h @@ -3,7 +3,7 @@ * * Filename: ui.h * - * Description: Header for user interface routines + * Description: Header for user interface routines * * Version: 1.0 * Created: 15/03/2017 20:07:12 @@ -19,8 +19,20 @@ #ifndef UI_H #define UI_H +#include + +#include "constants.h" +#include "othello.h" + +int prompt_values(WINDOW* windows, int base_y, int base_x, const char* msg, int* y, char* x); + +int map_col_letter_to_index(char c); +char map_col_index_to_letter(int index); + /* ncurses printing */ void print_board(int y, int x); +void print_pawns(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]); +void print_shots_list(int base_y, int base_x, struct shots_list_s* shots_list); /* non ncurses printing */