* Copyright (c) 1982 Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
* @(#)mille.h 5.3 (Berkeley) %G%
* @(#)mille.h 1.1 (Berkeley) 4/1/82
* Miscellaneous constants
# define HAND_SZ 7 /* number of cards in a hand */
# define DECK_SZ 101 /* number of cards in decks */
# define NUM_SAFE 4 /* number of saftey cards */
# define NUM_MILES 5 /* number of milestones types */
# define NUM_CARDS 20 /* number of types of cards */
# define BOARD_Y 17 /* size of board screen */
# define MILES_Y 7 /* size of mileage screen */
# define SCORE_Y 17 /* size of score screen */
# define MOVE_Y 10 /* Where to print move prompt */
# define ERR_Y 15 /* Where to print errors */
# define EXT_Y 4 /* Where to put Extension */
# define W_SMALL 0 /* Small (initial) window */
# define W_FULL 1 /* Full (final) window */
# define SC_EXTENSION 200
# define S_UNKNOWN 0 /* location of safety unknown */
# define S_IN_HAND 1 /* safety in player's hand */
# define S_PLAYED 2 /* safety has been played */
# define S_GAS_SAFE 0 /* Gas safety card index */
# define S_SPARE_SAFE 1 /* Tire safety card index */
# define S_DRIVE_SAFE 2 /* Driveing safety card index */
# define S_RIGHT_WAY 3 /* Right-of-Way card index */
# define S_CONV 15 /* conversion from C_ to S_ */
# define ANOTHERHANDPROMPT 2
# define ANOTHERGAMEPROMPT 3
# define SAVEGAMEPROMPT 4
# define SAMEFILEPROMPT 5
# define EXTENSIONPROMPT 7
# define OVERWRITEFILEPROMPT 8
# define srandom(x) srand(x)
# define erasechar() _tty.c_cc[VERASE]
# define killchar() _tty.c_cc[VKILL]
# define erasechar() _tty.sg_erase
# define killchar() _tty.sg_kill
short sh_safety
[NUM_SAFE
];
short nummiles
[NUM_MILES
];
short sh_nummiles
[NUM_MILES
];
# define other(x) (1 - x)
# define nextplay() (Play = other(Play))
# define nextwin(x) (1 - x)
# define opposite(x) (Opposite[x])
# define issafety(x) (x >= C_GAS_SAFE)
extern bool Debug
, Finished
, Next
, On_exit
, Order
, Saved
;
extern char *C_fmt
, **C_name
, *Fromfile
, Initstr
[];
extern int Card_no
, End
, Handstart
, Movetype
, Numcards
[], Numgos
,
Numneed
[], Numseen
[NUM_CARDS
], Play
, Value
[], Window
;
extern CARD Deck
[DECK_SZ
], Discard
, Opposite
[NUM_CARDS
], Sh_discard
,
extern WINDOW
*Board
, *Miles
, *Score
;