diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 11:11:47 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 11:11:47 +0100 |
| commit | 3fc586325f8fc8fb4f1990bf87ad4c37e722f381 (patch) | |
| tree | c6e5dfcb251eddc3cc7a413c562849cb14fccedc /src/main_stack.h | |
| parent | 6dad43a768646ef0d8f06958446761eb8a1b3f93 (diff) | |
Created a mainstack datatype. Refactored server game states into separate functions.
Diffstat (limited to 'src/main_stack.h')
| -rw-r--r-- | src/main_stack.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main_stack.h b/src/main_stack.h new file mode 100644 index 0000000..aa2d420 --- /dev/null +++ b/src/main_stack.h @@ -0,0 +1,18 @@ +#ifndef OXEN_MAIN_STACK_H +#define OXEN_MAIN_STACK_H + +#include <assert.h> +#include "card.h" + +#define MAX_MAIN_STACK_CARDS 104 + +typedef struct +{ + card cards[MAX_MAIN_STACK_CARDS]; +} main_stack_t; + +void main_stack_init(main_stack_t *m); +card main_stack_remove_card(main_stack_t *m); +uint8_t main_stack_size(const main_stack_t *m); + +#endif // OXEN_MAIN_STACK_H |
