X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rogue.h;h=e3b2c849baff4fca2bb41e7bedbf7604551bf3e2;hp=674be7317a8c560dad2fcb2e7d89253e5c79b3ae;hb=HEAD;hpb=b65543a78471f80b4836a78b1c776a5c6c71974e diff --git a/rogue.h b/rogue.h index 674be73..e3b2c84 100644 --- a/rogue.h +++ b/rogue.h @@ -3,13 +3,23 @@ * * @(#)rogue.h 3.38 (Berkeley) 6/15/81 * - * Rogue: Exploring the Dungeons of Doom + * Rogue: Exploring the Cavern of Cuties * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman * All rights reserved. * * See the file LICENSE.TXT for full copyright and licensing information. */ +#ifndef NULL +#define NULL ((void *)0) +#endif +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef FALSE +#define FALSE 0 +#endif + /* * Maximum number of different things */ @@ -73,6 +83,7 @@ #define ISMULT(type) (type == POTION || type == SCROLL || type == FOOD) #define rndchoice(a) (a[rnd(sizeof(a)/sizeof((a)[0]))]) #define hash(i) ((unsigned)(i)*2654435761u) + /* * Things that appear on the screens */ @@ -339,7 +350,8 @@ extern struct trap traps[MAXTRAPS]; #define NUM_FEATURES 6 #define MAYBE_INTERESTED 1 -#define INTERESTED 20 +#define INTERESTED 40 +#define READY 100 /* * Structure describing a fighting being @@ -442,7 +454,7 @@ extern int lastscore; /* Score before this turn */ extern int no_food; /* Number of levels without food */ extern int seed; /* Random number seed */ extern int count; /* Number of times to repeat command */ -extern int dnum; /* Dungeon number */ +extern int dnum; /* Cavern number */ extern int fung_hit; /* Number of time fungi has hit */ extern int quiet; /* Number of quiet turns */ extern int max_level; /* Deepest player has gone */ @@ -516,6 +528,7 @@ char *ctime(), *num(), *ring_num(); int readchar(WINDOW *win); int md_readchar(WINDOW *win); int wait_for(WINDOW *win, register char ch); +char *killname(register char monst); struct room *roomin();