Home | History | Annotate | Line # | Download | only in hack
def.eshk.h revision 1.2
      1  1.2  mycroft /*
      2  1.2  mycroft  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
      3  1.2  mycroft  *
      4  1.2  mycroft  *	$Id: def.eshk.h,v 1.2 1993/08/02 17:16:41 mycroft Exp $
      5  1.2  mycroft  */
      6  1.1      cgd 
      7  1.1      cgd #define	BILLSZ	200
      8  1.1      cgd struct bill_x {
      9  1.1      cgd 	unsigned bo_id;
     10  1.1      cgd 	unsigned useup:1;
     11  1.1      cgd 	unsigned bquan:7;
     12  1.1      cgd 	unsigned price;		/* price per unit */
     13  1.1      cgd };
     14  1.1      cgd 
     15  1.1      cgd struct eshk {
     16  1.1      cgd 	long int robbed;	/* amount stolen by most recent customer */
     17  1.1      cgd 	boolean following;	/* following customer since he owes us sth */
     18  1.1      cgd 	schar shoproom;		/* index in rooms; set by inshop() */
     19  1.1      cgd 	coord shk;		/* usual position shopkeeper */
     20  1.1      cgd 	coord shd;		/* position shop door */
     21  1.1      cgd 	int shoplevel;		/* level of his shop */
     22  1.1      cgd 	int billct;
     23  1.1      cgd 	struct bill_x bill[BILLSZ];
     24  1.1      cgd 	int visitct;		/* nr of visits by most recent customer */
     25  1.1      cgd 	char customer[PL_NSIZ];	/* most recent customer */
     26  1.1      cgd 	char shknam[PL_NSIZ];
     27  1.1      cgd };
     28