projects
/
rogue-pphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Monsters now have an orientation which can be inclined to like or dislike the player...
[rogue-pphs.git]
/
rogue.h
diff --git
a/rogue.h
b/rogue.h
index
6ca801a
..
2e67f38
100644
(file)
--- a/
rogue.h
+++ b/
rogue.h
@@
-48,7
+48,7
@@
#define otherwise break;default
\r
#define until(expr) while(!(expr))
\r
#define ce(a, b) ((a).x == (b).x && (a).y == (b).y)
\r
#define otherwise break;default
\r
#define until(expr) while(!(expr))
\r
#define ce(a, b) ((a).x == (b).x && (a).y == (b).y)
\r
-#define draw(window)
wrefresh(window
)
\r
+#define draw(window)
(wrefresh(window),usleep(20000)
)
\r
#define hero player.t_pos
\r
#define pstats player.t_stats
\r
#define pack player.t_pack
\r
#define hero player.t_pos
\r
#define pstats player.t_stats
\r
#define pack player.t_pack
\r
@@
-71,6
+71,7
@@
#define newgrp() ++group
\r
#define o_charges o_ac
\r
#define ISMULT(type) (type == POTION || type == SCROLL || type == FOOD)
\r
#define newgrp() ++group
\r
#define o_charges o_ac
\r
#define ISMULT(type) (type == POTION || type == SCROLL || type == FOOD)
\r
+#define rndchoice(a) (a[rnd(sizeof(a)/sizeof((a)[0]))])
\r
\r
/*
\r
* Things that appear on the screens
\r
\r
/*
\r
* Things that appear on the screens
\r
@@
-336,6
+337,8
@@
struct trap {
\r
extern struct trap traps[MAXTRAPS];
\r
\r
\r
extern struct trap traps[MAXTRAPS];
\r
\r
+#define NUM_FEATURES 6
\r
+
\r
/*
\r
* Structure describing a fighting being
\r
*/
\r
/*
\r
* Structure describing a fighting being
\r
*/
\r
@@
-346,6
+349,8
@@
struct stats {
int s_arm; /* Armor class */
\r
int s_hpt; /* Hit points */
\r
char s_dmg[30]; /* String describing damage done */
\r
int s_arm; /* Armor class */
\r
int s_hpt; /* Hit points */
\r
char s_dmg[30]; /* String describing damage done */
\r
+ int s_ont; /* Orientation flags */
\r
+ int s_int; /* Level of interest in rogue */
\r
};
\r
\r
/*
\r
};
\r
\r
/*
\r