Source:NetHack 3.0.0/eshk.h

From NetHackWiki
Jump to navigation Jump to search

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

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

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)eshk.h	3.0	88/04/25
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef ESHK_H
6.    #define ESHK_H
7.    
8.    #define	BILLSZ	200
9.    
10.   struct bill_x {
11.   	unsigned bo_id;
12.   	unsigned price;		/* price per unit */
13.   	Bitfield(useup,1);
14.   	Bitfield(bquan,7);
15.   };
16.   
17.   struct eshk {
18.   	long int robbed;	/* amount stolen by most recent customer */
19.   	long int credit;	/* amount credited to customer */
20.   	long int debit;		/* amount of debt for using unpaid items */
21.   	boolean following;	/* following customer since he owes us sth */
22.   	schar shoproom;		/* index in rooms; set by inshop() */
23.   	coord shk;		/* usual position shopkeeper */
24.   	coord shd;		/* position shop door */
25.   	int shoplevel;		/* level of his shop */
26.   	int billct;
27.   	struct bill_x bill[BILLSZ];
28.   	int visitct;		/* nr of visits by most recent customer */
29.   	char customer[PL_NSIZ];	/* most recent customer */
30.   	boolean ismale;
31.   	char shknam[PL_NSIZ];
32.   };
33.   
34.   #define	ESHK(mon)	((struct eshk *)(&(mon->mextra[0])))
35.   #endif /* ESHK_H /**/