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