X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rogue.h;h=e3b2c849baff4fca2bb41e7bedbf7604551bf3e2;hp=5edf336cf22ba5815b8c3361524d351205982cdd;hb=HEAD;hpb=e4a106dfa01b6c98a80e32a2dcd2ec501adbf952 diff --git a/rogue.h b/rogue.h index 5edf336..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 */ @@ -513,6 +525,11 @@ char *tr_name(), *new(); char *charge_str(),*vowelstr(), *inv_name(); 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(); coord *rndmove();