summaryrefslogtreecommitdiff
path: root/src/hand.h
diff options
context:
space:
mode:
authorMario Kilies <MarioKilies@GMX.net>2011-01-16 07:57:28 +0100
committerMario Kilies <MarioKilies@GMX.net>2011-01-16 07:57:28 +0100
commitfac5e3de0929c3abb73da552efbda6d641136588 (patch)
tree2d1c20909525e657237389a9825e3c3a73dad726 /src/hand.h
parent08a3c0b9979857e708865d2756ba057bb1c664ee (diff)
Simplified net_recv(). Refactored 'hand' from array definition to hand_t struct definition.
Diffstat (limited to 'src/hand.h')
-rw-r--r--src/hand.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/hand.h b/src/hand.h
index 83c3160..f13eaf8 100644
--- a/src/hand.h
+++ b/src/hand.h
@@ -5,8 +5,11 @@
#define MAX_HAND_CARDS 10
-typedef card hand[MAX_HAND_CARDS];
+typedef struct
+{
+ card cards[MAX_HAND_CARDS];
+} hand_t;
-void hand_sort(hand h);
+void hand_sort(hand_t *h);
#endif // OXEN_HAND_H