Source:NetHack 3.3.0/timeout.h

From NetHackWiki
Revision as of 11:55, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.3.0/timeout.h moved to Source:NetHack 3.3.0/timeout.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 timeout.h from the source code of NetHack 3.3.0. To link to a particular line, write [[NetHack 3.3.0/timeout.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: @(#)timeout.h	3.3	1999/02/13	*/
2.    /* Copyright 1994, Dean Luick					  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef TIMEOUT_H
6.    #define TIMEOUT_H
7.    
8.    /* generic timeout function */
9.    typedef void FDECL((*timeout_proc), (genericptr_t, long));
10.   
11.   /* kind of timer */
12.   #define TIMER_LEVEL	0	/* event specific to level */
13.   #define TIMER_GLOBAL	1	/* event follows current play */
14.   #define TIMER_OBJECT	2	/* event follows a object */
15.   #define TIMER_MONSTER	3	/* event follows a monster */
16.   
17.   /* save/restore timer ranges */
18.   #define RANGE_LEVEL  0		/* save/restore timers staying on level */
19.   #define RANGE_GLOBAL 1		/* save/restore timers following global play */
20.   
21.   /*
22.    * Timeout functions.  Add a define here, then put it in the table
23.    * in timeout.c.  "One more level of indirection will fix everything."
24.    */
25.   #define ROT_ORGANIC	0	/* for buried organics */
26.   #define ROT_CORPSE	1
27.   #define REVIVE_MON	2
28.   #define BURN_OBJECT	3
29.   #define HATCH_EGG	4
30.   #define FIG_TRANSFORM	5
31.   #define NUM_TIME_FUNCS	6
32.   
33.   #endif /* TIMEOUT_H */