Source:NetHack 1.3d/edog.h

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

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

1.   /*	SCCS Id: @(#)edog.h	1.3	87/07/14 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])))