mextra.h comments (trunk only)

Add an introductory comment for each type of extension.  Also move
ANGRY/NOTANGRY shopkeeper macros from old eshk.h out of the common header
and into shk.c so that their use doesn't end up spreading into other code.

     Not fixed:  entry #9 in the block comment at the top is truncated
mid-sentence.
This commit is contained in:
nethack.rankin
2006-01-12 06:06:33 +00:00
parent de2a6034dd
commit 3b127d31d9
2 changed files with 23 additions and 9 deletions

View File

@@ -57,10 +57,13 @@
* packaged up.
*/
/***
** formerly vault.h -- vault guard extension
*/
#define FCSIZ (ROWNO+COLNO)
struct fakecorridor {
xchar fx,fy,ftyp;
xchar fx, fy, ftyp;
};
struct egd {
@@ -75,17 +78,21 @@ struct egd {
struct fakecorridor fakecorr[FCSIZ];
};
/***
** formerly epri.h -- temple priest extension
*/
struct epri {
aligntyp shralign; /* alignment of priest's shrine */
/* leave as first field to match emin */
schar shroom; /* index in rooms */
coord shrpos; /* position of shrine */
d_level shrlevel; /* level (& dungeon) of shrine */
};
/* note: roaming priests (no shrine) switch from ispriest to isminion
(and emin extension) */
/***
** formerly eshk.h -- shopkeeper extension
*/
#define REPAIR_DELAY 5 /* minimum delay between shop damage & repair */
#define BILLSZ 200
@@ -117,16 +124,18 @@ struct eshk {
char shknam[PL_NSIZ];
};
#define NOTANGRY(mon) ((mon)->mpeaceful)
#define ANGRY(mon) (!NOTANGRY(mon))
/***
** formerly emin.h -- minion extension
*/
struct emin {
aligntyp min_align; /* alignment of minion */
boolean renegade; /* hostile co-aligned priest or Angel */
};
/* various types of pet food, the lower, the better liked. */
/***
** formerly edog.h -- pet extension
*/
/* various types of pet food, the lower, the better liked */
#define DOGFOOD 0
#define CADAVER 1
#define ACCFOOD 2
@@ -149,6 +158,9 @@ struct edog {
Bitfield(killed_by_u, 1); /* you attempted to kill him */
};
/***
** mextra.h -- collection of all monster extensions
*/
struct mextra {
char *mname;
struct egd *egd;