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