summaryrefslogtreecommitdiffstats
path: root/monop/deck.h
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-24 02:43:18 +0000
committerdholland <dholland@NetBSD.org>2008-02-24 02:43:18 +0000
commit21d886f3ff24a8a1d26df7ec7bf76a0381850557 (patch)
treee03575a6a40a703af06cf302a0af5c4afe32b5e1 /monop/deck.h
parent858a6720891a7ac54475ce092705f4a9c8ec4f64 (diff)
downloadbsdgames-darwin-21d886f3ff24a8a1d26df7ec7bf76a0381850557.tar.gz
bsdgames-darwin-21d886f3ff24a8a1d26df7ec7bf76a0381850557.zip
Abolish the initdeck program and the weird little binary file it generates.
The card deck data is now compiled in. (And it always should have been, even back when memory usage counted. It's small.) This changes the save format slightly. (I am riding the previous breakage an hour ago and not providing compat. There should be no further breakage.)
Diffstat (limited to 'monop/deck.h')
-rw-r--r--monop/deck.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/monop/deck.h b/monop/deck.h
index 7275d1cc..7e3f1915 100644
--- a/monop/deck.h
+++ b/monop/deck.h
@@ -1,4 +1,4 @@
-/* $NetBSD: deck.h,v 1.8 2008/02/24 01:57:34 dholland Exp $ */
+/* $NetBSD: deck.h,v 1.9 2008/02/24 02:43:18 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -35,6 +35,8 @@
#define bool char
+struct cardinfo; /* private to cards.c */
+
#define CC_D deck[0]
#define CH_D deck[1]
@@ -42,7 +44,8 @@ struct dk_st { /* deck description structure */
int num_cards; /* number of cards in deck */
int top_card; /* number of last card picked */
bool gojf_used; /* set if gojf card out of deck */
- off_t *offsets; /* offsets for start of cards */
+ int *cards; /* which cards (indexes info[]) */
+ const struct cardinfo *info; /* the static card data */
};
typedef struct dk_st DECK;