Difference between revisions of "Source:Pm.h"

From NetHackWiki
Jump to navigation Jump to search
(first short explanation)
 
m (Pm.h moved to Source:Pm.h: Robot: moved page)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The contents of '''pm.h''' are generated automatically during compile-time by makedefs from the data in monst.c
+
The contents of '''pm.h''' are generated automatically during compile-time by [[makedefs]] from the data in [[monst.c]]
  
This file contains all the monster name definitions, eg.  
+
This file contains all the [[monster]] name definitions, eg.  
  
 
<pre>
 
<pre>
Line 9: Line 9:
 
#define PM_DINGO        19
 
#define PM_DINGO        19
 
</pre>
 
</pre>
 +
 +
This file also defines <tt>NUMMONS</tt>, which is the number of different monster types.
 +
 +
[[Category:Source code]]

Latest revision as of 14:48, 4 March 2008

The contents of pm.h are generated automatically during compile-time by makedefs from the data in monst.c

This file contains all the monster name definitions, eg.

#define PM_LITTLE_DOG   16
#define PM_DOG  17
#define PM_LARGE_DOG    18
#define PM_DINGO        19

This file also defines NUMMONS, which is the number of different monster types.