X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/1cdc3b6df35396e5120ad58e3f0a616abce0186b..HEAD:/monop/monop.h diff --git a/monop/monop.h b/monop/monop.h index 9becc1f8..ecc74204 100644 --- a/monop/monop.h +++ b/monop/monop.h @@ -1,4 +1,4 @@ -/* $NetBSD: monop.h,v 1.15 2008/02/23 21:07:52 dholland Exp $ */ +/* $NetBSD: monop.h,v 1.19 2009/08/12 08:10:49 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -67,7 +67,7 @@ #define lucky(str) printf("%s%s\n",str,lucky_mes[roll(1,num_luck)-1]) #define printline() printf("------------------------------\n") -#define sqnum(sqp) (sqp - board) +#define sqnum(sqp) ((short)(sqp - board)) struct sqr_st { /* structure for square */ const char *name; /* place name */ @@ -129,10 +129,29 @@ typedef struct prp_st PROP; typedef struct prp_st RR_S; typedef struct prp_st UTIL_S; +extern bool trading, spec, fixing, told_em; + +extern const char *const yncoms[], *name_list[], *const lucky_mes[]; + +extern int num_play, player, num_doub, num_luck; + +extern void (*const func[])(void); + +/*extern MON mon[N_MON];*/ + +extern PLAY *play, *cur_p; + +extern PROP prop[N_PROP]; + +/*extern RR_S rr[N_RR];*/ + +extern SQUARE board[N_SQRS + 1]; + +/*extern UTIL_S util[2];*/ + /* cards.c */ -void init_decks(void); -void get_card(DECK *); +void ret_card(PLAY *); /* execute.c */ void execute(int); @@ -151,7 +170,6 @@ void sell_houses(void); /* jail.c */ void card(void); -void ret_card(PLAY *); void pay(void); int move_jail(int, int ); void printturn(void); @@ -162,7 +180,6 @@ void notify(void); void next_play(void); int get_int(const char *); void set_ownlist(int); -void is_monop(MON *, int); void is_not_monop(MON *); void list(void); void list_all(void);