From 4b9e56ebf47db8be740f4ff2a4b9fceb9f143055 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Sun, 16 Jan 2011 08:41:04 +0100 Subject: 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. --- src/ui.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/ui.h') diff --git a/src/ui.h b/src/ui.h index 8c001bb..40252ce 100644 --- a/src/ui.h +++ b/src/ui.h @@ -3,17 +3,16 @@ #include #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); -- cgit v1.2.3