-/* $NetBSD: graphics.c,v 1.3 1995/03/21 15:04:04 cgd Exp $ */
+/* $NetBSD: graphics.c,v 1.5 1998/11/10 13:43:30 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
* For more info on this and all of my stuff, mail edjames@berkeley.edu.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: graphics.c,v 1.3 1995/03/21 15:04:04 cgd Exp $";
+__RCSID("$NetBSD: graphics.c,v 1.5 1998/11/10 13:43:30 hubertf Exp $");
#endif
#endif /* not lint */
#include "include.h"
-#ifdef SYSV
-#include <errno.h>
-#endif
#define C_TOPBOTTOM '-'
#define C_LEFTRIGHT '|'
WINDOW *radar, *cleanradar, *credit, *input, *planes;
+int
getAChar()
{
#ifdef BSD
#endif
}
+void
erase_all()
{
PLANE *pp;
}
}
+void
draw_all()
{
PLANE *pp;
fflush(stdout);
}
+void
init_gr()
{
static char buffer[BUFSIZ];
planes = newwin(LINES - INPUT_LINES, PLANE_COLS, 0, COLS - PLANE_COLS);
}
+void
setup_screen(scp)
- C_SCREEN *scp;
+ const C_SCREEN *scp;
{
- register int i, j;
- char str[3], *airstr;
+ int i, j;
+ char str[3];
+ const char *airstr;
str[2] = '\0';
fflush(stdout);
}
+void
draw_line(w, x, y, lx, ly, s)
WINDOW *w;
- char *s;
+ int x, y, lx, ly;
+ const char *s;
{
int dx, dy;
}
}
+void
ioclrtoeol(pos)
+ int pos;
{
wmove(input, 0, pos);
wclrtoeol(input);
fflush(stdout);
}
+void
iomove(pos)
+ int pos;
{
wmove(input, 0, pos);
wrefresh(input);
fflush(stdout);
}
+void
ioaddstr(pos, str)
- char *str;
+ int pos;
+ const char *str;
{
wmove(input, 0, pos);
waddstr(input, str);
fflush(stdout);
}
+void
ioclrtobot()
{
wclrtobot(input);
fflush(stdout);
}
+void
ioerror(pos, len, str)
- char *str;
+ int pos, len;
+ const char *str;
{
int i;
fflush(stdout);
}
-quit()
+void
+quit(dummy)
+ int dummy;
{
int c, y, x;
#ifdef BSD
wmove(input, y, x);
wrefresh(input);
fflush(stdout);
- return;
}
+void
planewin()
{
PLANE *pp;
- char *command();
int warning = 0;
#ifdef BSD
fflush(stdout);
}
+void
loser(p, s)
- PLANE *p;
- char *s;
+ const PLANE *p;
+ const char *s;
{
int c;
#ifdef BSD
exit(0);
}
+void
redraw()
{
clear();
fflush(stdout);
}
-
+void
done_screen()
{
clear();