X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.h;h=95ef5518cd386b8b7136d5030427c4a08cae93fe;hb=50d43451314c229e511b46b69e7ca878ff9a0930;hp=f6c0960df0bb9b366814a3cb58fed6081d3190a7;hpb=10131f4148d32996badc7432cb5b9903dca873e0;p=super-star-trek.git diff --git a/sst.h b/sst.h index f6c0960..95ef551 100644 --- a/sst.h +++ b/sst.h @@ -2,6 +2,7 @@ #include #include #include +#include #ifndef INCLUDED #define EXTERN extern #else @@ -61,7 +62,7 @@ typedef struct { #define SSTMAGIC "SST2.0\n" -EXTERN short curwnd; +EXTERN WINDOW *curwnd; EXTERN struct { char magic[sizeof(SSTMAGIC)]; @@ -410,7 +411,7 @@ void crmena(int, int, int, int, int); void deadkl(int, int, int, int, int); void timwrp(void); void movcom(void); -void torpedo(double, double, int, int, double *, int); +void torpedo(double, double, int, int, double *, int, int, int); void huh(void); void pause_game(int); void nova(int, int); @@ -418,7 +419,6 @@ void snova(int, int); void scom(int *); void hittem(double *); void prouts(char *, ...); -void proutc(char *); int isit(char *); void preport(void); void orbit(void); @@ -434,23 +434,39 @@ void attakreport(int); void movetho(void); void probe(void); void iostart(int); -void ioend(void); -void setwnd(short); +void setwnd(WINDOW *); void warble(void); +void boom(int ii, int jj); +void tracktorpedo(int x, int y, int ix, int iy, int wait, int l, int i, int n, int iquad); void cgetline(char *, int); void waitfor(void); void setpassword(void); void commandhook(char *, int); -void c_printf (char *format, ... ); +void makechart(void); +void enqueue(char *); -typedef struct { - int wndleft,wndtop,wndright,wndbottom; -} wnd; -extern wnd wnds[6]; -/* these need to track io.c:wnd */ -#define FULLSCREEN_WINDOW 0 -#define LEFTUPPER_WINDOW 1 -#define SRSCAN_WINDOW 2 -#define LRSCAN_WINDOW 3 -#define LOWER_WINDOW 4 -#define BOTTOM_WINDOW 5 +/* mode arguments for srscan() */ +#define SCAN_FULL 1 +#define SCAN_REQUEST 2 +#define SCAN_STATUS 3 +#define SCAN_NO_LEFTSIDE 4 + +WINDOW *fullscreen_window; +WINDOW *srscan_window; +WINDOW *report_window; +WINDOW *lrscan_window; +WINDOW *message_window; +WINDOW *prompt_window; + +extern void clreol(void); +extern void clrscr(void); +extern void textcolor(int color); +extern void highvideo(void); + +enum COLORS { + DEFAULT, + BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, + DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE +}; + +#define DAMAGED 128 /* marker for damaged ship in starmap */