Mercurial > hg > early-roguelike
comparison rogue4/rogue.h @ 235:2dcf10d45d5b
Rogue V4: add two more function declarations.
Though it was called with different numbers of arguments, add_line()
does not need to be a variadic function. Making the second argument
mandatory is a better solution.
author | John "Elwin" Edwards |
---|---|
date | Mon, 07 Mar 2016 19:26:08 -0500 |
parents | 0990adf580ee |
children | d3968e9cb98d |
comparison
equal
deleted
inserted
replaced
234:c10fe421b8fb | 235:2dcf10d45d5b |
---|---|
482 | 482 |
483 void _attach(THING **list, THING *item); | 483 void _attach(THING **list, THING *item); |
484 void _detach(THING **list, THING *item); | 484 void _detach(THING **list, THING *item); |
485 void _free_list(THING **ptr); | 485 void _free_list(THING **ptr); |
486 bool add_haste(bool potion); | 486 bool add_haste(bool potion); |
487 void add_line(char *fmt, char *arg); | |
487 void add_pack(THING *obj, bool silent); | 488 void add_pack(THING *obj, bool silent); |
488 void add_str(str_t *sp, int amt); | 489 void add_str(str_t *sp, int amt); |
489 void addmsg(char *fmt, ...); | 490 void addmsg(char *fmt, ...); |
490 void aggravate(void); | 491 void aggravate(void); |
491 int attack(THING *mp); | 492 int attack(THING *mp); |
513 void drop(void); | 514 void drop(void); |
514 bool dropcheck(THING *op); | 515 bool dropcheck(THING *op); |
515 void eat(void); | 516 void eat(void); |
516 int encread(void *starta, int size, int inf); | 517 int encread(void *starta, int size, int inf); |
517 void encwrite(void *starta, int size, FILE *outf); | 518 void encwrite(void *starta, int size, FILE *outf); |
519 void end_line(void); | |
518 void endmsg(void); | 520 void endmsg(void); |
519 void enter_room(coord *cp); | 521 void enter_room(coord *cp); |
520 void extinguish(void (*func)()); | 522 void extinguish(void (*func)()); |
521 void fall(THING *obj, bool pr); | 523 void fall(THING *obj, bool pr); |
522 bool fallpos(coord *pos, coord *newpos, bool pass); | 524 bool fallpos(coord *pos, coord *newpos, bool pass); |