1993-08-02 21:16:36 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
|
|
|
|
*
|
1995-03-23 11:28:00 +03:00
|
|
|
* $NetBSD: def.eshk.h,v 1.3 1995/03/23 08:29:21 cgd Exp $
|
1993-08-02 21:16:36 +04:00
|
|
|
*/
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
#define BILLSZ 200
|
|
|
|
struct bill_x {
|
|
|
|
unsigned bo_id;
|
|
|
|
unsigned useup:1;
|
|
|
|
unsigned bquan:7;
|
|
|
|
unsigned price; /* price per unit */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct eshk {
|
|
|
|
long int robbed; /* amount stolen by most recent customer */
|
|
|
|
boolean following; /* following customer since he owes us sth */
|
|
|
|
schar shoproom; /* index in rooms; set by inshop() */
|
|
|
|
coord shk; /* usual position shopkeeper */
|
|
|
|
coord shd; /* position shop door */
|
|
|
|
int shoplevel; /* level of his shop */
|
|
|
|
int billct;
|
|
|
|
struct bill_x bill[BILLSZ];
|
|
|
|
int visitct; /* nr of visits by most recent customer */
|
|
|
|
char customer[PL_NSIZ]; /* most recent customer */
|
|
|
|
char shknam[PL_NSIZ];
|
|
|
|
};
|