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