X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.h;h=cf44c7374f8b11a662be414528cb2ec60c0e1cde;hb=89e52d61fcf689e15a8f831dea084a33ceaa8217;hp=0e3e52419e4fcf22b69cc4a9c728269811c238c3;hpb=e29006d00a2962f32312e31bf142f77a99bde04d;p=super-star-trek.git diff --git a/sst.h b/sst.h index 0e3e524..cf44c73 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)]; @@ -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,8 +434,7 @@ 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); @@ -443,16 +442,30 @@ 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 *s); -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 *LOWER_WINDOW; +WINDOW *BOTTOM_WINDOW; + +extern void clreol(void); +extern void clrscr(void); +extern void textcolor(int color); +extern void highvideo(void); + +enum COLORS { + 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 */