nexus/io.h

87 lines
3.0 KiB
C
Raw Normal View History

2010-12-02 12:17:54 +11:00
#include <ncurses.h>
#include "defs.h"
2011-02-01 06:16:13 +11:00
void addchoice(prompt_t *p, char ch, char *text, char *desc, void *data);
void addheading(prompt_t *p, char *text);
void addmsghist(char *text);
2010-12-02 12:17:54 +11:00
void anim(cell_t *src, cell_t *dst, char ch);
2011-02-01 06:16:13 +11:00
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);
2010-12-07 18:34:26 +11:00
object_t *askobject(obpile_t *op, char *title, int *count, int opts);
2011-02-01 06:16:13 +11:00
object_t *askobjectwithflag(obpile_t *op, char *title, int *count, int opts, enum FLAG withflag);
2010-12-07 18:34:26 +11:00
object_t *askobjectofclass(obpile_t *op, char *title, int *count, int opts, enum OBCLASS obclass);
2011-02-01 06:16:13 +11:00
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);
2010-12-02 12:17:54 +11:00
void centre(WINDOW *win, int y, char *format, ... );
int chartodir(char ch);
2011-02-01 06:16:13 +11:00
int cleanupgfx(void);
2010-12-02 12:17:54 +11:00
void clearmsg(void);
2011-02-01 06:16:13 +11:00
void real_clearmsg(int force);
void clearretobs(void);
void cls(void);
2010-12-02 12:17:54 +11:00
void describeob(object_t *o);
2011-02-01 06:16:13 +11:00
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);
2010-12-02 12:17:54 +11:00
void doinventory(obpile_t *op);
2010-12-07 18:34:26 +11:00
void doknowledgelist(void);
2011-02-01 06:16:13 +11:00
void dolook(cell_t *where);
void domagic(enum OBTYPE spellid, int cellx, int celly);
void domsghist(void);
void dooperate(obpile_t *op);
2010-12-07 18:34:26 +11:00
int dopickup(obpile_t *op);
2011-02-01 06:16:13 +11:00
void dolockpick(obpile_t *op);
void donextguntarget(void);
void dopour(obpile_t *op);
void doquit(void);
2010-12-07 18:34:26 +11:00
void doquaff(obpile_t *op);
void doread(obpile_t *op);
2011-02-01 06:16:13 +11:00
void dorest(void);
void doselguntarget(void);
void dostairs(int dir);
2010-12-07 18:34:26 +11:00
int dotakeoff(obpile_t *op);
2010-12-02 12:17:54 +11:00
void dothrow(obpile_t *op);
2011-02-01 06:16:13 +11:00
void dovendingmachine(lifeform_t *lf, object_t *vm);
2010-12-07 18:34:26 +11:00
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);
2010-12-02 12:17:54 +11:00
void drawcursor(void);
void drawlevelfor(lifeform_t *lf);
void drawmsg(void);
void drawscreen(void);
void drawstatus(void);
2011-02-01 06:16:13 +11:00
int drop(object_t *o, int count);
char getchoice(prompt_t *prompt);
char getchoicestr(prompt_t *prompt);
2010-12-02 12:17:54 +11:00
int getkey(void);
void handleinput(void);
2011-02-01 06:16:13 +11:00
void initgfx(void);
void initprompt(prompt_t *p, char *q1);
2010-12-02 12:17:54 +11:00
int keycodetokey(int keycode);
void more(void);
2011-02-01 06:16:13 +11:00
void warn(char *format, ... );
2010-12-02 12:17:54 +11:00
void msg(char *format, ... );
2011-02-01 06:16:13 +11:00
void msglower(char *format, ... );
void msg_real(char *format, ... );
void nothinghappens(void);
2010-12-02 12:17:54 +11:00
void dblog(char *format, ... );
void redraw(void);
int savequit(void);
2011-02-01 06:16:13 +11:00
void showlfarmour(lifeform_t *lf);
void showlfstats(lifeform_t *lf, int showall);
2010-12-02 12:17:54 +11:00
void tombstone(lifeform_t *lf);
2011-02-01 06:16:13 +11:00
void updatestatus(void);
2010-12-02 12:17:54 +11:00
void updateviewfor(cell_t *cell);