Fandom

Wikihack

Source:NetHack 2.2a/edog.h

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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])))

Also on Fandom

Random Wiki