X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rogue.h;h=5edf336cf22ba5815b8c3361524d351205982cdd;hp=6ca801a0afe3b8f9796eb7ed292fe96d1903ea44;hb=e4a106dfa01b6c98a80e32a2dcd2ec501adbf952;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/rogue.h b/rogue.h index 6ca801a..5edf336 100644 --- a/rogue.h +++ b/rogue.h @@ -48,7 +48,7 @@ #define otherwise break;default #define until(expr) while(!(expr)) #define ce(a, b) ((a).x == (b).x && (a).y == (b).y) -#define draw(window) wrefresh(window) +#define draw(window) (wrefresh(window),usleep(20000)) #define hero player.t_pos #define pstats player.t_stats #define pack player.t_pack @@ -71,7 +71,8 @@ #define newgrp() ++group #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 */ @@ -336,6 +337,10 @@ struct trap { extern struct trap traps[MAXTRAPS]; +#define NUM_FEATURES 6 +#define MAYBE_INTERESTED 1 +#define INTERESTED 20 + /* * Structure describing a fighting being */ @@ -346,6 +351,8 @@ struct stats { int s_arm; /* Armor class */ int s_hpt; /* Hit points */ char s_dmg[30]; /* String describing damage done */ + int s_ont; /* Orientation flags */ + int s_int; /* Level of interest in rogue */ }; /*