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