Difference between revisions of "Source:Pm.h"

From NetHackWiki
Jump to navigation Jump to search
(add NUMMONS)
Line 11: Line 11:
  
 
This file also defines <tt>NUMMONS</tt>, which is the number of different monster types.
 
This file also defines <tt>NUMMONS</tt>, which is the number of different monster types.
 +
 +
[[Category:Source code]]

Revision as of 19:56, 1 May 2006

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.