diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-14 03:33:29 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-14 03:33:29 +0100 |
| commit | 0dfe9ff514cb6e3ffe9bfd394aebeb54445edc03 (patch) | |
| tree | 02771b64941987eb8beeb124f777ed47601f577f /src/main.c | |
| parent | cf073d5083edaa8249ad1a960db0b2ba7619e70e (diff) | |
Implemented ui_choose_card().
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 30 |
1 files changed, 27 insertions, 3 deletions
@@ -1,6 +1,4 @@ -#include <stdio.h> #include <stdlib.h> -#include <unistd.h> #include <curses.h> #include "ui.h" @@ -9,8 +7,34 @@ int main(int argc, char **argv) // Example data set for table cards window const tablestacks ts = {{1, 2, 3, 4, 101}, {6, 7, 53, 0, 0}, {11, 55, 0, 0, 0}, {17, 29, 36, 42, 0}}; + // The stack points window uses ts, too, so there is no separate data set + + // Example data set for current state window + const player_name_open_card_tuple pnoc[10] = { + {"$you", 10}, + {"1234567890", 23}, + {"baz", 38}, + {"foo_bar", 14}, + {"lolcat", 60}, + {"blablub123", 15}, + {"abcdefg", 103}, + {"hello", 98}, + {"hornoxe", 33}, + {"1337nick", 74} + }; + const uint8_t num_players = 10; + const uint32_t score = 10; + + // Example data set for hand cards window + const hand h = {12, 0, 22, 25, 27, 69, 77, 85, 100, 103}; + ui_init(); - ui_choose_stack(ts); + ui_display_wnd_table_cards(ts, false, 0); + ui_display_wnd_stack_points(ts, false, 0); + ui_display_wnd_current_state(pnoc, num_players, 2, score); + ui_display_wnd_hand_cards(h, false, 0); + + ui_choose_card(h); ui_fini(); return EXIT_SUCCESS; |
