repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finalize the implementation of the playable shots list displaying
[Project_algorithmic_C.git]
/
lib
/
ui.h
diff --git
a/lib/ui.h
b/lib/ui.h
index ad32628042a00fc7f21ec044163fdbdd1359dc66..67ec2d6f0718540ff55e9cd0d037a60990742f73 100644
(file)
--- a/
lib/ui.h
+++ b/
lib/ui.h
@@
-3,7
+3,7
@@
*
* Filename: ui.h
*
*
* 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
*
* Version: 1.0
* Created: 15/03/2017 20:07:12
@@
-19,11
+19,20
@@
#ifndef UI_H
#define UI_H
#ifndef UI_H
#define UI_H
+#include <ncurses.h>
+
#include "constants.h"
#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);
/* ncurses printing */
void print_board(int y, int x);
-void print_pawns(int pawn_array[board_size][board_size]);
+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 */
/* non ncurses printing */