Mercurial > hg > early-roguelike
diff rogue3/rogue.h @ 16:a731f515575e
rogue3: add the option of logging all games to a text file
author | edwarj4 |
---|---|
date | Tue, 10 Nov 2009 22:38:46 +0000 |
parents | b4856d4d4c4e |
children | d67cac79f0f1 |
line wrap: on
line diff
--- a/rogue3/rogue.h Sat Oct 31 15:18:51 2009 +0000 +++ b/rogue3/rogue.h Tue Nov 10 22:38:46 2009 +0000 @@ -443,6 +443,7 @@ extern int jump; /* Show running as series of jumps */ extern int lastscore; /* Score before this turn */ extern int level; /* What level rogue is on */ +extern FILE * logf; extern char lvl_mons[27]; extern struct linked_list * lvl_obj; /* List of objects on this level */ extern int max_hp; /* Player's max hit points */ @@ -597,6 +598,7 @@ char * killname(int monst); void lengthen(void (*func)(), int xtime); void light(coord *cp); +void log(int amount, int flags, int monst); void look(int wakeup); void miss(char *er, char *ee); void missile(int ydelta, int xdelta);