diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -11,6 +11,8 @@ int gettypecolor(int type); int* cards_getcoupons(int era, int card); int* cards_getcouponed(int era, int card); char* cards_specialmessage(int era, int card); +int data_getera(); +int* data_gethand(int p); void io_init() { @@ -166,3 +168,16 @@ void io_printcard(int x, int y, int era, int card) mvprintw(y++, x, "############################"); } + +void io_printhand(int x, int y, int player, int cursor) +{ + int *hand = data_gethand(player); + int i; + mvprintw(y++, x, "############################"); + for(i = 0; hand[i] != -1 && i < 7; i++) { + io_printname(x, y++, data_getera(), hand[i]); + if(i == cursor) mvprintw(y-1, x+25, "*"); + refresh(); + } + mvprintw(y++, x, "############################"); +} |