Source:NetHack 2.2a/edog.h

From NetHackWiki
Revision as of 02:04, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 2.2a/edog.h moved to Source:NetHack 2.2a/edog.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to edog.h from the source code of NetHack 2.2a. To link to a particular line, write [[NetHack 2.2a/edog.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.    /*	SCCS Id: @(#)edog.h	1.4	87/08/08
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* edog.h - version 1.0.2 */
4.    
5.    /*	various types of food, the lower, the better liked.	*/
6.    
7.    #define	DOGFOOD	0
8.    #define	CADAVER	1
9.    #define	ACCFOOD	2
10.   #define	MANFOOD	3
11.   #define	APPORT	4
12.   #define	POISON	5
13.   #define	UNDEF	6
14.   
15.   struct edog {
16.   	long hungrytime;	/* at this time dog gets hungry */
17.   	long eattime;		/* dog is eating */
18.   	long droptime;		/* moment dog dropped object */
19.   	unsigned dropdist;		/* dist of drpped obj from @ */
20.   	unsigned apport;		/* amount of training */
21.   	long whistletime;		/* last time he whistled */
22.   };
23.   #define	EDOG(mp)	((struct edog *)(&(mp->mextra[0])))