X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rogue.h;h=674be7317a8c560dad2fcb2e7d89253e5c79b3ae;hp=2e67f3843a7a01e46cd4993f3af60c17b7663246;hb=b65543a78471f80b4836a78b1c776a5c6c71974e;hpb=efb1335002efedd46b532a3e1daf6f390a20cce7 diff --git a/rogue.h b/rogue.h index 2e67f38..674be73 100644 --- a/rogue.h +++ b/rogue.h @@ -72,7 +72,7 @@ #define o_charges o_ac #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 */ @@ -338,6 +338,8 @@ struct trap { extern struct trap traps[MAXTRAPS]; #define NUM_FEATURES 6 +#define MAYBE_INTERESTED 1 +#define INTERESTED 20 /* * Structure describing a fighting being @@ -511,6 +513,10 @@ 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); + struct room *roomin(); coord *rndmove();