#include #include "defs.h" void addchoice(prompt_t *p, char ch, char *text, char *desc, void *data); void addheading(prompt_t *p, char *text); void addmsghist(char *text); void anim(cell_t *src, cell_t *dst, char ch); void animradial(cell_t *src, int radius, char ch); //void announceob(enum OBTYPE oid); int announceflaggain(lifeform_t *lf, flag_t *f); void announceflagloss(lifeform_t *lf, flag_t *f); int announceobflaggain(object_t *o, flag_t *f); void announceobflagloss(object_t *o, flag_t *f); object_t *askobject(obpile_t *op, char *title, int *count, int opts); object_t *askobjectwithflag(obpile_t *op, char *title, int *count, int opts, enum FLAG withflag); object_t *askobjectofclass(obpile_t *op, char *title, int *count, int opts, enum OBCLASS obclass); object_t *doaskobject(obpile_t *op, char *title, int *count, int opts, enum OBCLASS obclass, enum FLAG withflag); int askobjectmulti(obpile_t *op, char *prompt, int opts); char askchar(char *prompt, char *validchars, char *def, int showchars); cell_t *askcoords(char *prompt, int targettype); char *askstring(char *prompt, char punc, char *retbuf, int retbuflen, char *def); void centre(WINDOW *win, int y, char *format, ... ); int chartodir(char ch); int cleanupgfx(void); void clearmsg(void); void real_clearmsg(int force); void clearretobs(void); void cls(void); void describeob(object_t *o); void doattackcell(char dirch); void doclose(void); void dodrop(obpile_t *op, int wantmulti); void doeat(obpile_t *op); void doenter(lifeform_t *lf); void doexplain(void); void dofinaloblist(obpile_t *op); void dofire(void); void doinventory(obpile_t *op); void doknowledgelist(void); void dolook(cell_t *where); void domagic(enum OBTYPE spellid, int cellx, int celly); void domsghist(void); void dooperate(obpile_t *op); int dopickup(obpile_t *op); void dolockpick(obpile_t *op); void donextguntarget(void); void dopour(obpile_t *op); void doquit(void); void doquaff(obpile_t *op); void doread(obpile_t *op); void dorest(void); void doselguntarget(void); void dostairs(int dir); int dotakeoff(obpile_t *op); void dothrow(obpile_t *op); void dovendingmachine(lifeform_t *lf, object_t *vm); int dowear(obpile_t *op); int doweild(obpile_t *op); void drawunviscell(cell_t *cell, int x, int y); void drawcellwithcontents(cell_t *cell, int x, int y); void drawcursor(void); void drawlevelfor(lifeform_t *lf); void drawmsg(void); void drawscreen(void); void drawstatus(void); int drop(object_t *o, int count); char getchoice(prompt_t *prompt); char getchoicestr(prompt_t *prompt); int getkey(void); void handleinput(void); void initgfx(void); void initprompt(prompt_t *p, char *q1); int keycodetokey(int keycode); void more(void); void warn(char *format, ... ); void msg(char *format, ... ); void msglower(char *format, ... ); void msg_real(char *format, ... ); void nothinghappens(void); void dblog(char *format, ... ); void redraw(void); int savequit(void); void showlfarmour(lifeform_t *lf); void showlfstats(lifeform_t *lf, int showall); void tombstone(lifeform_t *lf); void updatestatus(void); void updateviewfor(cell_t *cell);