Finalize the implementation of the playable shots list displaying
[Project_algorithmic_C.git] / lib / ui.h
CommitLineData
480acfeb
JB
1/*
2 * =====================================================================================
3 *
4 * Filename: ui.h
5 *
9240af1a 6 * Description: Header for user interface routines
480acfeb
JB
7 *
8 * Version: 1.0
9 * Created: 15/03/2017 20:07:12
10 * Revision: none
11 * Compiler: gcc
12 *
13 * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org
14 * Organization: Piment Noir
15 *
16 * =====================================================================================
17 */
18
19#ifndef UI_H
20#define UI_H
21
74e2b93b
JB
22#include <ncurses.h>
23
2e5c1894 24#include "constants.h"
9240af1a 25#include "othello.h"
2e5c1894 26
74e2b93b
JB
27int prompt_values(WINDOW* windows, int base_y, int base_x, const char* msg, int* y, char* x);
28
45ce2fe3
JB
29int map_col_letter_to_index(char c);
30char map_col_index_to_letter(int index);
74e2b93b 31
480acfeb
JB
32/* ncurses printing */
33void print_board(int y, int x);
74e2b93b 34void print_pawns(int base_y, int base_x, unsigned int pawn_array[board_size][board_size]);
9240af1a 35void print_shots_list(int base_y, int base_x, struct shots_list_s* shots_list);
480acfeb
JB
36
37/* non ncurses printing */
38
39#endif /* UI_H */