nexus/io.h

44 lines
1.4 KiB
C
Raw Normal View History

2010-12-02 12:17:54 +11:00
#include <ncurses.h>
#include "defs.h"
void anim(cell_t *src, cell_t *dst, char ch);
2010-12-07 18:34:26 +11:00
object_t *askobject(obpile_t *op, char *title, int *count, int opts);
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);
2010-12-02 12:17:54 +11:00
cell_t *askcoords(char *prompt);
void centre(WINDOW *win, int y, char *format, ... );
int chartodir(char ch);
void clearmsg(void);
void describeob(object_t *o);
void dodrop(obpile_t *op);
void doinventory(obpile_t *op);
2010-12-07 18:34:26 +11:00
void doknowledgelist(void);
int dopickup(obpile_t *op);
void doquaff(obpile_t *op);
void doread(obpile_t *op);
int dotakeoff(obpile_t *op);
2010-12-02 12:17:54 +11:00
void dothrow(obpile_t *op);
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);
int getkey(void);
void handleinput(void);
int keycodetokey(int keycode);
void more(void);
void msg(char *format, ... );
2010-12-07 18:34:26 +11:00
int pickup(lifeform_t *lf, object_t *what, int howmany);
2010-12-02 12:17:54 +11:00
void dblog(char *format, ... );
void redraw(void);
int savequit(void);
2010-12-07 18:34:26 +11:00
int takeoff(lifeform_t *lf, object_t *o);
2010-12-02 12:17:54 +11:00
void tombstone(lifeform_t *lf);
void updateviewfor(cell_t *cell);
2010-12-07 18:34:26 +11:00
int wear(lifeform_t *lf, object_t *o);
int weild(lifeform_t *lf, object_t *o);