diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-16 08:41:04 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-16 08:41:04 +0100 |
| commit | 4b9e56ebf47db8be740f4ff2a4b9fceb9f143055 (patch) | |
| tree | d6a31f6e068914a2ec1820da594c9d1c5ea2604e /src/ui.h | |
| parent | fac5e3de0929c3abb73da552efbda6d641136588 (diff) | |
Refactored cardstack and tablestacks to card_stack_t and table_stacks_t, that both now are defined as structs rather than arrays. Inserted lots of assert() calls to functions that take pointers as arguments.
Diffstat (limited to 'src/ui.h')
| -rw-r--r-- | src/ui.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -3,17 +3,16 @@ #include <curses.h> #include "card.h" -#include "cardstack.h" -#include "tablestacks.h" +#include "table_stacks.h" #include "hand.h" #include "pnoc.h" -void ui_display_wnd_table_cards(const tablestacks ts, const bool highlight, const uint8_t highlighted_stack); -void ui_display_wnd_stack_points(const tablestacks ts, const bool highlight, const uint8_t highlighted_points); +void ui_display_wnd_table_cards(const table_stacks_t *ts, const bool highlight, const uint8_t highlighted_stack); +void ui_display_wnd_stack_points(const table_stacks_t *ts, const bool highlight, const uint8_t highlighted_points); void ui_display_wnd_current_state(const pnoc_t pnoc[], const uint8_t num_players, const uint8_t active_player, const uint32_t score); void ui_display_wnd_hand_cards(const hand_t *h, const bool highlight, const uint8_t highlighted_card); uint8_t ui_choose_card(hand_t *h); -uint8_t ui_choose_stack(const tablestacks ts); +uint8_t ui_choose_stack(const table_stacks_t *ts); void ui_init(void); void ui_fini(void); |
