Source:Hack 1.0/def.eshk.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to def.eshk.h from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/def.eshk.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

Screenshots and source code from Hack are used under the CWI license.

1.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
2.    
3.    #define	BILLSZ	200
4.    struct bill_x {
5.    	unsigned bo_id;
6.    	unsigned useup:1;
7.    	unsigned bquan:7;
8.    	unsigned price;		/* price per unit */
9.    };
10.   
11.   struct eshk {
12.   	long int robbed;	/* amount stolen by most recent customer */
13.   	schar shoproom;		/* index in rooms; set by inshop() */
14.   	coord shk;		/* usual position shopkeeper */
15.   	coord shd;		/* position shop door */
16.   	int billct;
17.   	struct bill_x bill[BILLSZ];
18.   	int visitct;		/* nr of visits by most recent customer */
19.   	char customer[PL_NSIZ];	/* most recent customer */
20.   	char shknam[PL_NSIZ];
21.   };