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/card_stack.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/card_stack.h')
| -rw-r--r-- | src/card_stack.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/card_stack.h b/src/card_stack.h new file mode 100644 index 0000000..86ec526 --- /dev/null +++ b/src/card_stack.h @@ -0,0 +1,16 @@ +#ifndef OXEN_CARD_STACK_H +#define OXEN_CARD_STACK_H + +#include <stdint.h> +#include "card.h" + +#define MAX_CARD_STACK_SIZE 5 + +typedef struct +{ + card cards[MAX_CARD_STACK_SIZE]; +} card_stack_t; + +uint32_t card_stack_get_points(const card_stack_t *cs); + +#endif // OXEN_CARD_STACK_H |
