aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/ching/Makefile12
-rw-r--r--games/ching/ching.h42
-rw-r--r--games/ching/cno/Makefile8
-rw-r--r--games/ching/cno/ching.cno.c120
-rw-r--r--games/ching/phx/Makefile8
-rw-r--r--games/ching/phx/ching.phx.c315
-rw-r--r--games/ching/phx/pathnames.h36
-rw-r--r--games/gdc/Makefile8
-rw-r--r--games/gdc/gdc.622
-rw-r--r--games/gdc/gdc.c202
-rw-r--r--games/monop/Makefile26
-rw-r--r--games/monop/brd.dat78
-rw-r--r--games/monop/cards.c208
-rw-r--r--games/monop/cards.inp122
-rw-r--r--games/monop/deck.h48
-rw-r--r--games/monop/execute.c262
-rw-r--r--games/monop/getinp.c116
-rw-r--r--games/monop/houses.c269
-rw-r--r--games/monop/initdeck.c184
-rw-r--r--games/monop/jail.c127
-rw-r--r--games/monop/misc.c272
-rw-r--r--games/monop/mon.dat44
-rw-r--r--games/monop/monop.6188
-rw-r--r--games/monop/monop.c162
-rw-r--r--games/monop/monop.def123
-rw-r--r--games/monop/monop.ext57
-rw-r--r--games/monop/monop.h137
-rw-r--r--games/monop/morg.c209
-rw-r--r--games/monop/pathnames.h36
-rw-r--r--games/monop/print.c192
-rw-r--r--games/monop/prop.c211
-rw-r--r--games/monop/prop.dat58
-rw-r--r--games/monop/rent.c92
-rw-r--r--games/monop/roll.c74
-rw-r--r--games/monop/spec.c86
-rw-r--r--games/monop/trade.c306
-rw-r--r--games/x11/Makefile5
-rw-r--r--games/x11/xneko/Makefile11
-rw-r--r--games/x11/xneko/bitmaps/awake.xbm14
-rw-r--r--games/x11/xneko/bitmaps/cursor.xbm8
-rw-r--r--games/x11/xneko/bitmaps/cursor_mask.xbm6
-rw-r--r--games/x11/xneko/bitmaps/down1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/down2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/dtogi1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/dtogi2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/dwleft1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/dwleft2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/dwright1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/dwright2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/icon.xbm14
-rw-r--r--games/x11/xneko/bitmaps/jare2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/kaki1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/kaki2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/left1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/left2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/ltogi1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/ltogi2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/mati2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/mati3.xbm14
-rw-r--r--games/x11/xneko/bitmaps/right1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/right2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/rtogi1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/rtogi2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/sleep1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/sleep2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/space.xbm14
-rw-r--r--games/x11/xneko/bitmaps/up1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/up2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/upleft1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/upleft2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/upright1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/upright2.xbm14
-rw-r--r--games/x11/xneko/bitmaps/utogi1.xbm14
-rw-r--r--games/x11/xneko/bitmaps/utogi2.xbm14
-rw-r--r--games/x11/xneko/xneko.684
-rw-r--r--games/x11/xneko/xneko.c1765
-rw-r--r--games/x11/xroach/Makefile11
-rw-r--r--games/x11/xroach/bitmaps/roach000.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach015.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach030.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach045.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach060.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach075.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach090.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach105.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach120.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach135.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach150.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach165.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach180.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach195.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach210.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach225.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach240.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach255.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach270.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach285.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach300.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach315.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach330.xbm30
-rw-r--r--games/x11/xroach/bitmaps/roach345.xbm30
-rw-r--r--games/x11/xroach/roachmap.h65
-rw-r--r--games/x11/xroach/xroach.675
-rw-r--r--games/x11/xroach/xroach.c602
104 files changed, 0 insertions, 8288 deletions
diff --git a/games/ching/Makefile b/games/ching/Makefile
deleted file mode 100644
index 51f850d78026..000000000000
--- a/games/ching/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-SUBDIR= cno phx
-MAN6= ching.6
-
-beforeinstall:
- install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${.CURDIR}/ching.sh ${DESTDIR}/usr/games/ching
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/hexagrams \
- ${.CURDIR}/macros ${DESTDIR}/usr/share/games/ching
-
-.include <bsd.prog.mk>
diff --git a/games/ching/ching.h b/games/ching/ching.h
deleted file mode 100644
index 28090515ed32..000000000000
--- a/games/ching/ching.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 1988, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Guy Harris.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)ching.h 8.1 (Berkeley) 5/31/93
- */
-
-#define OYIN 6 /* yin (broken) moving to yang (solid) */
-#define YYANG 7 /* yang (solid) */
-#define YYIN 8 /* yin (broken) */
-#define OYANG 9 /* yang (solid) moving to yin (broken) */
diff --git a/games/ching/cno/Makefile b/games/ching/cno/Makefile
deleted file mode 100644
index 64e6a98be0be..000000000000
--- a/games/ching/cno/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-PROG= ching.cno
-BINDIR= /usr/games
-CFLAGS+=-I${.CURDIR}/..
-NOMAN= noman
-
-.include <bsd.prog.mk>
diff --git a/games/ching/cno/ching.cno.c b/games/ching/cno/ching.cno.c
deleted file mode 100644
index ff03c85547bf..000000000000
--- a/games/ching/cno/ching.cno.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Copyright (c) 1988, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Guy Harris.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1988, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static char sccsid[] = "@(#)ching.cno.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-/*
- * cno - Read a question, cast a change, and output the line values to the
- * standard output for processing by "phx".
- */
-#include <stdio.h>
-#include "ching.h"
-
-long now; /* current time */
-
-unsigned seed; /* seed for random number generator */
-unsigned getrand();
-
-char *change();
-char string[6+1]; /* where the actual change string is put */
-
-int table[2][2][2] = {
- { { OYIN, YYANG,}, { YYANG, YYIN,} },
- { { YYANG, YYIN,}, { YYIN, OYANG,} },
-};
-
-main()
-{
- FILE *logf;
-
- time(&now);
- seed = (int)now + getquest() + getgid() + getuid() + getpid(); /* randomize */
- printf("%s\n", change());
-}
-
-/*
- * Hash the question by adding all the characters together.
- */
-int
-getquest()
-{
- int result;
- register int c;
-
- result = 0;
- while ((c = getchar()) != EOF)
- result += c;
- return(result);
-}
-
-/*
- * Get a set of six lines making up a change.
- */
-char *
-change()
-{
- register int i;
-
- for (i = 0; i < 6; i++)
- string[i] = table[getrnum()&01][getrnum()&01][getrnum()&01] + '0';
- string[i] = '\0';
- return(string);
-}
-
-/*
- * Get a number more random than what getrand() gives.
- */
-getrnum()
-{
- return((getrand())>>(getrand()%17));
-}
-
-/*
- * Get a random number.
- */
-unsigned
-getrand()
-{
- return(seed = (seed*13077) + 6925);
-}
diff --git a/games/ching/phx/Makefile b/games/ching/phx/Makefile
deleted file mode 100644
index 4b2de4dfe39e..000000000000
--- a/games/ching/phx/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-PROG= ching.phx
-CFLAGS+=-I${.CURDIR}/..
-BINDIR= /usr/games
-NOMAN= noman
-
-.include <bsd.prog.mk>
diff --git a/games/ching/phx/ching.phx.c b/games/ching/phx/ching.phx.c
deleted file mode 100644
index c67d05482be7..000000000000
--- a/games/ching/phx/ching.phx.c
+++ /dev/null
@@ -1,315 +0,0 @@
-/*
- * Copyright (c) 1988, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Guy Harris.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1988, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static char sccsid[] = "@(#)ching.phx.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-/*
- * phx - Print NROFF/TROFF source of change, given the line values.
- */
-#include <stdio.h>
-#include "ching.h"
-#include "pathnames.h"
-
-struct {
- int lines; /* encoded value of lines */
- int trinum; /* trigram number */
-} table[] = {
- { 777, 0 }, /* 1 */
- { 887, 1 }, /* 4 */
- { 878, 2 }, /* 6 */
- { 788, 3 }, /* 7 */
- { 888, 4 }, /* 8 */
- { 778, 5 }, /* 5 */
- { 787, 6 }, /* 3 */
- { 877, 7 }, /* 2 */
-};
-
-/*
- * Gives hexagram number from two component trigrams.
- */
-int crosstab[8][8] = {
- 1, 34, 5, 26, 11, 9, 14, 43,
- 25, 51, 3, 27, 24, 42, 21, 17,
- 6, 40, 29, 4, 7, 59, 64, 47,
- 33, 62, 39, 52, 15, 53, 56, 31,
- 12, 16, 8, 23, 2, 20, 35, 45,
- 44, 32, 48, 18, 46, 57, 50, 28,
- 13, 55, 63, 22, 36, 37, 30, 49,
- 10, 54, 60, 41, 19, 61, 38, 58,
-};
-
-int trigrams[6];
-int moving[6];
-
-FILE *chingf; /* stream to read the hexagram file */
-
-char *gets();
-
-main(argc, argv)
-int argc;
-char **argv;
-{
- register int hexagram; /* hexagram number */
- register char *hexptr; /* pointer to string of lines */
- char hexstr[6+1]; /* buffer for reading lines in */
- register int i;
-
- if (argc < 2)
- hexptr = gets(hexstr);
- else
- hexptr = argv[1];
- if (hexptr == (char *)NULL || strlen(hexptr) != 6) {
- fprintf(stderr, "What kind of a change is THAT?!?\n");
- exit(1);
- }
- for (i = 0; i < 6; i++) {
- trigrams[i] = hexptr[i] - '0';
- if (trigrams[i] == 6 || trigrams[i] == 9)
- moving[i] = 1;
- else
- moving[i] = 0;
- }
- if ((chingf = fopen(_PATH_HEX, "r")) == (FILE *)NULL) {
- fprintf(stderr, "ching: can't read %s\n", _PATH_HEX);
- exit(2);
- }
- phx(doahex(), 0);
- if (changes())
- phx(doahex(), 1);
-}
-
-/*
- * Compute the hexagram number, given the trigrams.
- */
-int
-doahex()
-{
- int lower, upper; /* encoded values of lower and upper trigrams */
- int lnum, unum; /* indices of upper and lower trigrams */
- register int i;
-
- lower = codem(0);
- upper = codem(3);
- for (i = 0; i < 8; i++) {
- if (table[i].lines == lower)
- lnum = table[i].trinum;
- if (table[i].lines == upper)
- unum = table[i].trinum;
- }
- return(crosstab[lnum][unum]);
-}
-
-/*
- * Encode a trigram as a 3-digit number; the digits, from left to right,
- * represent the lines. 7 is a solid (yang) line, 8 is a broken (yin) line.
- */
-codem(a)
-int a;
-{
- register int code, i;
- int factor[3];
-
- factor[0] = 1;
- factor[1] = 10;
- factor[2] = 100;
- code = 0;
-
- for (i = a; i < a + 3; i++) {
- switch(trigrams[i]) {
-
- case YYANG:
- case OYANG:
- code += factor[i%3]*7;
- break;
-
- case OYIN:
- case YYIN:
- code += factor[i%3]*8;
- break;
- }
- }
- return(code);
-}
-
-/*
- * Compute the changes based on moving lines; return 1 if any lines moved,
- * 0 if no lines moved.
- */
-changes()
-{
- register int cflag;
- register int i;
-
- cflag = 0;
- for (i = 0; i < 6; i++) {
- if (trigrams[i] == OYIN) {
- trigrams[i] = YYANG;
- cflag++;
- } else if (trigrams[i] == OYANG) {
- trigrams[i] = YYIN;
- cflag++;
- }
- }
- return(cflag);
-}
-
-/*
- * Print the NROFF/TROFF source of a hexagram, given the hexagram number;
- * if flag is 0, print the entire source; if flag is 1, ignore the meanings
- * of the lines.
- */
-phx(hexagram, flag)
-int hexagram;
-int flag;
-{
- char textln[128+1]; /* buffer for text line */
- register char *lp; /* pointer into buffer */
- register int thishex; /* number of hexagram just read */
- int lineno; /* number of line read in */
- int allmoving; /* 1 if all lines are moving */
- register int i;
-
- /*
- * Search for the hexagram; it begins with a line of the form
- * .H <hexagram number> <other data>.
- */
- rewind(chingf);
- for (;;) {
- if (fgets(textln, sizeof(textln), chingf) == (char *)NULL) {
- fprintf(stderr, "ching: Hexagram %d missing\n",
- hexagram);
- exit(3);
- }
- lp = &textln[0];
- if (*lp++ != '.' || *lp++ != 'H')
- continue;
- while (*lp++ == ' ')
- ;
- lp--;
- thishex = atoi(lp);
- if (thishex < 1 || thishex > 64)
- continue;
- if (thishex == hexagram)
- break;
- }
-
- /*
- * Print up to the line commentary, which ends with a line of the form
- * .L <position> <value>
- */
- fputs(textln, stdout);
- for (;;) {
- if (fgets(textln, sizeof(textln), chingf) == (char *)NULL) {
- fprintf(stderr, "ching: Hexagram %d malformed\n",
- hexagram);
- exit(3);
- }
- lp = &textln[0];
- if (*lp++ == '.') {
- if (*lp++ == 'L')
- break;
- }
- fputs(textln, stdout);
- }
-
- /*
- * Now print the line commentaries, if this is the first hexagram.
- */
- if (flag)
- return;
-
- /*
- * If a line is moving, print its commentary.
- * The text of the commentary ends with a line either of the form
- * .L <position> <value>
- * or of the form
- * .LA <value>
- * or of the form
- * .H <hexagram number> <other arguments>
- */
- allmoving = 1;
- for (i = 0; i < 6; i++) {
- while (*lp++ == ' ')
- ;
- lp--;
- lineno = atoi(lp);
- if (i + 1 != lineno) {
- fprintf(stderr, "ching: Hexagram %d malformed\n",
- hexagram);
- exit(3);
- }
- if (moving[i])
- fputs(textln, stdout);
- else
- allmoving = 0;
- for (;;) {
- if (fgets(textln, sizeof(textln), chingf) == (char *)NULL)
- break;
- lp = &textln[0];
- if (*lp++ == '.' && (*lp == 'L' || *lp == 'H')) {
- lp++;
- break;
- }
- if (moving[i])
- fputs(textln, stdout);
- }
- }
-
- /*
- * If all the lines are moving, print the commentary for that; it
- * ends with a line of the form
- * .H <hexagram number> <other arguments>
- */
- if (*lp == 'A' && allmoving) {
- fputs(textln, stdout);
- for (;;) {
- if (fgets(textln, sizeof(textln), chingf) == (char *)NULL)
- break;
- lp = &textln[0];
- if (*lp++ == '.' || *lp++ == 'H')
- break;
- fputs(textln, stdout);
- }
- }
-}
diff --git a/games/ching/phx/pathnames.h b/games/ching/phx/pathnames.h
deleted file mode 100644
index d4ed8810ce3d..000000000000
--- a/games/ching/phx/pathnames.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)pathnames.h 8.1 (Berkeley) 5/31/93
- */
-
-#define _PATH_HEX "/usr/share/games/ching/hexagrams"
diff --git a/games/gdc/Makefile b/games/gdc/Makefile
deleted file mode 100644
index 75e3dc4b0a68..000000000000
--- a/games/gdc/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $Id$
-
-PROG= gdc
-MAN6= gdc.6
-DPADD= ${LIBNCURSES} ${LIBMYTINFO}
-LDADD= -lncurses -lmytinfo
-
-.include <bsd.prog.mk>
diff --git a/games/gdc/gdc.6 b/games/gdc/gdc.6
deleted file mode 100644
index 7fa60de9edf8..000000000000
--- a/games/gdc/gdc.6
+++ /dev/null
@@ -1,22 +0,0 @@
-.TH GDC 6
-.SH NAME
-gdc \- grand digital clock (curses)
-.SH SYNOPSIS
-.B gdc
-[-s] [
-.I n
-]
-.SH DESCRIPTION
-.I Gdc
-runs a digital clock made of reverse-video blanks on a curses
-compatible VDU screen. With an optional numeric argument
-.I n
-it stops after
-.I n
-seconds (default never).
-The optional
-.B -s
-flag makes digits scroll as they change. In this curses mode implementation,
-the scrolling option has trouble keeping up.
-.SH AUTHOR
-Amos Shapir, modified for curses by John Lupien.
diff --git a/games/gdc/gdc.c b/games/gdc/gdc.c
deleted file mode 100644
index 823b1d3df1a6..000000000000
--- a/games/gdc/gdc.c
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * Grand digital clock for curses compatible terminals
- * Usage: gdc [-s] [n] -- run for n seconds (default infinity)
- * Flags: -s: scroll
- *
- * modified 10-18-89 for curses (jrl)
- * 10-18-89 added signal handling
- */
-
-#include <time.h>
-#include <signal.h>
-#include <ncurses.h>
-#include <stdlib.h>
-#ifndef NONPOSIX
-#include <unistd.h>
-#endif
-
-#define YBASE 10
-#define XBASE 10
-#define XLENGTH 58
-#define YDEPTH 7
-
-/* it won't be */
-long now; /* yeah! */
-struct tm *tm;
-
-short disp[11] = {
- 075557, 011111, 071747, 071717, 055711,
- 074717, 074757, 071111, 075757, 075717, 002020
-};
-long old[6], next[6], new[6], mask;
-char scrol;
-
-int sigtermed=0;
-
-int hascolor = 0;
-
-void set(int, int);
-void standt(int);
-void movto(int, int);
-
-void sighndl(signo)
-int signo;
-{
- sigtermed=signo;
-}
-
-int
-main(argc, argv)
-int argc;
-char **argv;
-{
-long t, a;
-int i, j, s, k;
-int n = 0;
-
- initscr();
-
- signal(SIGINT,sighndl);
- signal(SIGTERM,sighndl);
- signal(SIGHUP,sighndl);
-
- cbreak();
- noecho();
-
- hascolor = has_colors();
-
- if(hascolor) {
- start_color();
- init_pair(1, COLOR_BLACK, COLOR_RED);
- init_pair(2, COLOR_RED, COLOR_BLACK);
- init_pair(3, COLOR_WHITE, COLOR_BLACK);
- attrset(COLOR_PAIR(2));
- }
-
- clear();
- refresh();
- while(--argc > 0) {
- if(**++argv == '-')
- scrol = 1;
- else
- n = atoi(*argv);
- }
-
- if(hascolor) {
- attrset(COLOR_PAIR(3));
-
- mvaddch(YBASE - 2, XBASE - 3, ACS_ULCORNER);
- hline(ACS_HLINE, XLENGTH);
- mvaddch(YBASE - 2, XBASE - 2 + XLENGTH, ACS_URCORNER);
-
- mvaddch(YBASE + YDEPTH - 1, XBASE - 3, ACS_LLCORNER);
- hline(ACS_HLINE, XLENGTH);
- mvaddch(YBASE + YDEPTH - 1, XBASE - 2 + XLENGTH, ACS_LRCORNER);
-
- move(YBASE - 1, XBASE - 3);
- vline(ACS_VLINE, YDEPTH);
-
- move(YBASE - 1, XBASE - 2 + XLENGTH);
- vline(ACS_VLINE, YDEPTH);
-
- attrset(COLOR_PAIR(2));
- }
- do {
- mask = 0;
- time(&now);
- tm = localtime(&now);
- set(tm->tm_sec%10, 0);
- set(tm->tm_sec/10, 4);
- set(tm->tm_min%10, 10);
- set(tm->tm_min/10, 14);
- set(tm->tm_hour%10, 20);
- set(tm->tm_hour/10, 24);
- set(10, 7);
- set(10, 17);
- for(k=0; k<6; k++) {
- if(scrol) {
- for(i=0; i<5; i++)
- new[i] = (new[i]&~mask) | (new[i+1]&mask);
- new[5] = (new[5]&~mask) | (next[k]&mask);
- } else
- new[k] = (new[k]&~mask) | (next[k]&mask);
- next[k] = 0;
- for(s=1; s>=0; s--) {
- standt(s);
- for(i=0; i<6; i++) {
- if((a = (new[i]^old[i])&(s ? new : old)[i]) != 0) {
- for(j=0,t=1<<26; t; t>>=1,j++) {
- if(a&t) {
- if(!(a&(t<<1))) {
- movto(YBASE + i, XBASE + 2*j);
- }
- addstr(" ");
- }
- }
- }
- if(!s) {
- old[i] = new[i];
- }
- }
- if(!s) {
- refresh();
- }
- }
- }
- movto(6, 0);
- refresh();
- sleep(1);
- if (sigtermed) {
- standend();
- clear();
- refresh();
- endwin();
- fprintf(stderr, "gdc terminated by signal %d\n", sigtermed);
- exit(1);
- }
- } while(--n);
- standend();
- clear();
- refresh();
- endwin();
- return(0);
-}
-
-void
-set(int t, int n)
-{
-int i, m;
-
- m = 7<<n;
- for(i=0; i<5; i++) {
- next[i] |= ((disp[t]>>(4-i)*3)&07)<<n;
- mask |= (next[i]^old[i])&m;
- }
- if(mask&m)
- mask |= m;
-}
-
-void
-standt(int on)
-{
- if (on) {
- if(hascolor) {
- attron(COLOR_PAIR(1));
- } else {
- attron(A_STANDOUT);
- }
- } else {
- if(hascolor) {
- attron(COLOR_PAIR(2));
- } else {
- attroff(A_STANDOUT);
- }
- }
-}
-
-void
-movto(int line, int col)
-{
- move(line, col);
-}
-
diff --git a/games/monop/Makefile b/games/monop/Makefile
deleted file mode 100644
index a1e8f2d47a4f..000000000000
--- a/games/monop/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-PROG= monop
-SRCS= monop.c cards.c execute.c getinp.c houses.c jail.c misc.c morg.c \
- print.c prop.c rent.c roll.c spec.c trade.c
-MAN6= monop.6
-DPADD= ${LIBCOMPAT}
-LDADD= -lcompat
-HIDEGAME=hidegame
-CLEANFILES+=initdeck cards.pck
-
-all: ${PROG} ${MAN6}
-
-monop: cards.pck
-
-cards.pck: initdeck
- ./initdeck ${.CURDIR}/cards.inp
-
-initdeck: initdeck.c
- ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/initdeck.c
-
-beforeinstall:
- install -c -o ${BINOWN} -g ${BINGRP} -m 444 cards.pck \
- ${DESTDIR}/usr/share/games
-
-.include <bsd.prog.mk>
diff --git a/games/monop/brd.dat b/games/monop/brd.dat
deleted file mode 100644
index ff8498d0fc8f..000000000000
--- a/games/monop/brd.dat
+++ /dev/null
@@ -1,78 +0,0 @@
-/*-
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)brd.dat 5.5 (Berkeley) 5/31/93
- */
-
-/* name (COLOR) owner type desc cost */
-
-{"=== GO ===", -1, SAFE, 0 },
-{"Mediterranean ave. (P)", -1, PRPTY, &prop[0], 60 },
-{"Community Chest i", -1, CC, },
-{"Baltic ave. (P)", -1, PRPTY, &prop[1], 60 },
-{"Income Tax", -1, INC_TAX, },
-{"Reading RR", -1, RR, &rr[0], 200 },
-{"Oriental ave. (L)", -1, PRPTY, &prop[2], 100 },
-{"Chance i", -1, CHANCE, },
-{"Vermont ave. (L)", -1, PRPTY, &prop[3], 100 },
-{"Connecticut ave. (L)", -1, PRPTY, &prop[4], 120 },
-{"Just Visiting", -1, SAFE, 0 },
-{"St. Charles pl. (V)", -1, PRPTY, &prop[5], 140 },
-{"Electric Co.", -1, UTIL, &util[0], 150 },
-{"States ave. (V)", -1, PRPTY, &prop[6], 140 },
-{"Virginia ave. (V)", -1, PRPTY, &prop[7], 160 },
-{"Pennsylvania RR", -1, RR, &rr[1], 200 },
-{"St. James pl. (O)", -1, PRPTY, &prop[8], 180 },
-{"Community Chest ii", -1, CC, },
-{"Tennessee ave. (O)", -1, PRPTY, &prop[9], 180 },
-{"New York ave. (O)", -1, PRPTY, &prop[10], 200 },
-{"Free Parking", -1, SAFE, 0 },
-{"Kentucky ave. (R)", -1, PRPTY, &prop[11], 220 },
-{"Chance ii", -1, CHANCE, },
-{"Indiana ave. (R)", -1, PRPTY, &prop[12], 220 },
-{"Illinois ave. (R)", -1, PRPTY, &prop[13], 240 },
-{"B&O RR", -1, RR, &rr[2], 200 },
-{"Atlantic ave. (Y)", -1, PRPTY, &prop[14], 260 },
-{"Ventnor ave. (Y)", -1, PRPTY, &prop[15], 260 },
-{"Water Works", -1, UTIL, &util[1], 150 },
-{"Marvin Gardens (Y)", -1, PRPTY, &prop[16], 280 },
-{"GO TO JAIL", -1, GOTO_J, },
-{"Pacific ave. (G)", -1, PRPTY, &prop[17], 300 },
-{"N. Carolina ave. (G)", -1, PRPTY, &prop[18], 300 },
-{"Community Chest iii", -1, CC, },
-{"Pennsylvania ave. (G)", -1, PRPTY, &prop[19], 320 },
-{"Short Line RR", -1, RR, &rr[3], 200 },
-{"Chance iii", -1, CHANCE, },
-{"Park place (D)", -1, PRPTY, &prop[20], 350 },
-{"Luxury Tax", -1, LUX_TAX, },
-{"Boardwalk (D)", -1, PRPTY, &prop[21], 400 },
-{"JAIL", -1, IN_JAIL, }
diff --git a/games/monop/cards.c b/games/monop/cards.c
deleted file mode 100644
index 74248207a0f9..000000000000
--- a/games/monop/cards.c
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-# include "pathnames.h"
-
-/*
- * These routine deal with the card decks
- */
-
-# define GOJF 'F' /* char for get-out-of-jail-free cards */
-
-# ifndef DEV
-static char *cardfile = _PATH_CARDS;
-# else
-static char *cardfile = "cards.pck";
-# endif
-
-static FILE *deckf;
-
-/*
- * This routine initializes the decks from the data file,
- * which it opens.
- */
-init_decks() {
-
- if ((deckf=fopen(cardfile, "r")) == NULL) {
-file_err:
- perror(cardfile);
- exit(1);
- }
- if (fread(deck, sizeof (DECK), 2, deckf) != 2)
- goto file_err;
- set_up(&CC_D);
- set_up(&CH_D);
-}
-/*
- * This routine sets up the offset pointers for the given deck.
- */
-set_up(dp)
-DECK *dp; {
-
- reg int r1, r2;
- int i;
-
- dp->offsets = (long *) calloc(sizeof (long), dp->num_cards);
- if (fread(dp->offsets, sizeof(long), dp->num_cards, deckf) != dp->num_cards) {
- perror(cardfile);
- exit(1);
- }
- dp->last_card = 0;
- dp->gojf_used = FALSE;
- for (i = 0; i < dp->num_cards; i++) {
- reg long temp;
-
- r1 = roll(1, dp->num_cards) - 1;
- r2 = roll(1, dp->num_cards) - 1;
- temp = dp->offsets[r2];
- dp->offsets[r2] = dp->offsets[r1];
- dp->offsets[r1] = temp;
- }
-}
-/*
- * This routine draws a card from the given deck
- */
-get_card(dp)
-DECK *dp; {
-
- reg char type_maj, type_min;
- reg int num;
- int i, per_h, per_H, num_h, num_H;
- OWN *op;
-
- do {
- fseek(deckf, dp->offsets[dp->last_card], 0);
- dp->last_card = ++(dp->last_card) % dp->num_cards;
- type_maj = getc(deckf);
- } while (dp->gojf_used && type_maj == GOJF);
- type_min = getc(deckf);
- num = getw(deckf);
- printmes();
- switch (type_maj) {
- case '+': /* get money */
- if (type_min == 'A') {
- for (i = 0; i < num_play; i++)
- if (i != player)
- play[i].money -= num;
- num = num * (num_play - 1);
- }
- cur_p->money += num;
- break;
- case '-': /* lose money */
- if (type_min == 'A') {
- for (i = 0; i < num_play; i++)
- if (i != player)
- play[i].money += num;
- num = num * (num_play - 1);
- }
- cur_p->money -= num;
- break;
- case 'M': /* move somewhere */
- switch (type_min) {
- case 'F': /* move forward */
- num -= cur_p->loc;
- if (num < 0)
- num += 40;
- break;
- case 'J': /* move to jail */
- goto_jail();
- return;
- case 'R': /* move to railroad */
- spec = TRUE;
- num = (int)((cur_p->loc + 5)/10)*10 + 5 - cur_p->loc;
- break;
- case 'U': /* move to utility */
- spec = TRUE;
- if (cur_p->loc >= 12 && cur_p->loc < 28)
- num = 28 - cur_p->loc;
- else {
- num = 12 - cur_p->loc;
- if (num < 0)
- num += 40;
- }
- break;
- case 'B':
- num = -num;
- break;
- }
- move(num);
- break;
- case 'T': /* tax */
- if (dp == &CC_D) {
- per_h = 40;
- per_H = 115;
- }
- else {
- per_h = 25;
- per_H = 100;
- }
- num_h = num_H = 0;
- for (op = cur_p->own_list; op; op = op->next)
- if (op->sqr->type == PRPTY)
- if (op->sqr->desc->houses == 5)
- ++num_H;
- else
- num_h += op->sqr->desc->houses;
- num = per_h * num_h + per_H * num_H;
- printf("You had %d Houses and %d Hotels, so that cost you $%d\n", num_h, num_H, num);
- if (num == 0)
- lucky("");
- else
- cur_p->money -= num;
- break;
- case GOJF: /* get-out-of-jail-free card */
- cur_p->num_gojf++;
- dp->gojf_used = TRUE;
- break;
- }
- spec = FALSE;
-}
-/*
- * This routine prints out the message on the card
- */
-printmes() {
-
- reg char c;
-
- printline();
- fflush(stdout);
- while ((c = getc(deckf)) != '\0')
- putchar(c);
- printline();
- fflush(stdout);
-}
diff --git a/games/monop/cards.inp b/games/monop/cards.inp
deleted file mode 100644
index 1867e87bb08b..000000000000
--- a/games/monop/cards.inp
+++ /dev/null
@@ -1,122 +0,0 @@
-FF
->> GET OUT OF JAIL FREE <<
-Keep this card until needed or sold
-%%
-++25
-Receive for Services $25.
-%%
-++200
-Bank Error in Your Favor.
-Collect $200.
-%%
-++20
-Income Tax Refund.
-Collect $20.
-%%
---100
-Pay Hospital $100
-%%
-++100
-Life Insurance Matures.
-Collect $100
-%%
-++45
-From sale of Stock You get $45.
-%%
-TX
-You are Assessed for street repairs.
- $40 per House
- $115 per Hotel
-%%
-++100
-X-mas Fund Matures.
-Collect $100.
-%%
-++11
-You have won Second Prize in a Beauty Contest
-Collect $11
-%%
-MF0
-Advance to GO
-(Collect $200)
-%%
-++100
-You inherit $100
-%%
---150
-Pay School Tax of $150.
-%%
-MJ
- >> GO TO JAIL <<
-Go Directly to Jail. Do not pass GO Do not collect $200.
-%%
-+A50
- >> GRAND OPERA OPENING <<
-Collect $50 from each player for opening night seats.
-%%
---50
-Doctor's Fee: Pay $50.
-%-
-FF
->> GET OUT OF JAIL FREE <<
-Keep this card until needed or sold
-%%
-MR
-Advance to the nearest Railroad, and pay owner
-Twice the rental to which he is otherwise entitled.
-If Railroad is unowned you may buy it from the bank
-%%
-MU
-Advance to the nearest Utility.
-If unowned, you may buy it from the bank.
-If owned, throw dice and pay oner a total of ten times
-the amount thrown.
-%%
-MB3
-Go Back 3 Spaces
-%%
-MR
-Advance to the nearest Railroad, and pay owner
-Twice the rental to which he is otherwise entitled.
-If Railroad is unowned you may buy it from the bank
-%%
-MJ
- >> GO DIRECTLY TO JAIL <<
-Do not pass GO, Do not Collect $200.
-%%
-MF5
-Take a Ride on the Reading.
-If you pass GO, collect $200.
-%%
-MF39
-Take a Walk on the Board Walk.
- (Advance To Board Walk)
-%%
-MF24
-Advance to Illinos Ave.
-%%
-MF0
-Advance to Go
-%%
-MF11
-Advance to St. Charles Place.
-If you pass GO, collect $200.
-%%
-TX
-Make general repairs on all of your Property.
-For Each House pay $25.
-For Each Hotel pay $100.
-%%
--A50
-You have been elected Chairman of the Board.
-Pay each player $50.
-%%
---15
-Pay Poor Tax of $15
-%%
-++50
-Bank pays you Dividend of $50.
-%%
-++150
-Your Building and Loan Matures.
-Collect $150.
diff --git a/games/monop/deck.h b/games/monop/deck.h
deleted file mode 100644
index 604937da4b4f..000000000000
--- a/games/monop/deck.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)deck.h 8.1 (Berkeley) 5/31/93
- */
-
-# define bool char
-
-# define CC_D deck[0]
-# define CH_D deck[1]
-
-struct dk_st { /* deck description structure */
- int num_cards; /* number of cards in deck */
- int last_card; /* number of last card picked */
- bool gojf_used; /* set if gojf card out of deck */
- long *offsets; /* offests for start of cards */
-};
-
-typedef struct dk_st DECK;
diff --git a/games/monop/execute.c b/games/monop/execute.c
deleted file mode 100644
index f7704325fdc2..000000000000
--- a/games/monop/execute.c
+++ /dev/null
@@ -1,262 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)execute.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-# include <sys/types.h>
-# include <sys/stat.h>
-# include <sys/time.h>
-
-# define SEGSIZE 8192
-
-typedef struct stat STAT;
-typedef struct tm TIME;
-
-extern char etext[], /* end of text space */
- rub();
-
-static char buf[257],
- *yn_only[] = { "yes", "no"};
-
-static bool new_play; /* set if move on to new player */
-
-/*
- * This routine executes the given command by index number
- */
-execute(com_num)
-reg int com_num; {
-
- new_play = FALSE; /* new_play is true if fixing */
- (*func[com_num])();
- notify();
- force_morg();
- if (new_play)
- next_play();
- else if (num_doub)
- printf("%s rolled doubles. Goes again\n", cur_p->name);
-}
-/*
- * This routine moves a piece around.
- */
-do_move() {
-
- reg int r1, r2;
- reg bool was_jail;
-
- new_play = was_jail = FALSE;
- printf("roll is %d, %d\n", r1=roll(1, 6), r2=roll(1, 6));
- if (cur_p->loc == JAIL) {
- was_jail++;
- if (!move_jail(r1, r2)) {
- new_play++;
- goto ret;
- }
- }
- else {
- if (r1 == r2 && ++num_doub == 3) {
- printf("That's 3 doubles. You go to jail\n");
- goto_jail();
- new_play++;
- goto ret;
- }
- move(r1+r2);
- }
- if (r1 != r2 || was_jail)
- new_play++;
-ret:
- return;
-}
-/*
- * This routine moves a normal move
- */
-move(rl)
-reg int rl; {
-
- reg int old_loc;
-
- old_loc = cur_p->loc;
- cur_p->loc = (cur_p->loc + rl) % N_SQRS;
- if (cur_p->loc < old_loc && rl > 0) {
- cur_p->money += 200;
- printf("You pass %s and get $200\n", board[0].name);
- }
- show_move();
-}
-/*
- * This routine shows the results of a move
- */
-show_move() {
-
- reg SQUARE *sqp;
-
- sqp = &board[cur_p->loc];
- printf("That puts you on %s\n", sqp->name);
- switch (sqp->type) {
- case SAFE:
- printf("That is a safe place\n");
- break;
- case CC:
- cc(); break;
- case CHANCE:
- chance(); break;
- case INC_TAX:
- inc_tax(); break;
- case GOTO_J:
- goto_jail(); break;
- case LUX_TAX:
- lux_tax(); break;
- case PRPTY:
- case RR:
- case UTIL:
- if (sqp->owner < 0) {
- printf("That would cost $%d\n", sqp->cost);
- if (getyn("Do you want to buy? ") == 0) {
- buy(player, sqp);
- cur_p->money -= sqp->cost;
- }
- else if (num_play > 2)
- bid(sqp);
- }
- else if (sqp->owner == player)
- printf("You own it.\n");
- else
- rent(sqp);
- }
-}
-/*
- * This routine saves the current game for use at a later date
- */
-save() {
-
- reg char *sp;
- reg int outf, num;
- time_t t;
- int *dat_end;
- struct stat sb;
- unsgn start, end;
-
- printf("Which file do you wish to save it in? ");
- sp = buf;
- while ((*sp++=getchar()) != '\n')
- continue;
- *--sp = '\0';
-
- /*
- * check for existing files, and confirm overwrite if needed
- */
-
- if (stat(buf, &sb) > -1
- && getyn("File exists. Do you wish to overwrite? ", yn_only) > 0)
- return;
-
- if ((outf=creat(buf, 0644)) < 0) {
- perror(buf);
- return;
- }
- printf("\"%s\" ", buf);
- time(&t); /* get current time */
- strcpy(buf, ctime(&t));
- for (sp = buf; *sp != '\n'; sp++)
- continue;
- *sp = '\0';
-# if 0
- start = (((int) etext + (SEGSIZE-1)) / SEGSIZE ) * SEGSIZE;
-# else
- start = 0;
-# endif
- end = sbrk(0);
- while (start < end) { /* write out entire data space */
- num = start + 16 * 1024 > end ? end - start : 16 * 1024;
- write(outf, start, num);
- start += num;
- }
- close(outf);
- printf("[%s]\n", buf);
-}
-/*
- * This routine restores an old game from a file
- */
-restore() {
-
- reg char *sp;
-
- printf("Which file do you wish to restore from? ");
- for (sp = buf; (*sp=getchar()) != '\n'; sp++)
- continue;
- *sp = '\0';
- rest_f(buf);
-}
-/*
- * This does the actual restoring. It returns TRUE if the
- * backup was successful, else false.
- */
-rest_f(file)
-reg char *file; {
-
- reg char *sp;
- reg int inf, num;
- char buf[80];
- unsgn start, end;
- STAT sbuf;
-
- if ((inf=open(file, 0)) < 0) {
- perror(file);
- return FALSE;
- }
- printf("\"%s\" ", file);
- if (fstat(inf, &sbuf) < 0) { /* get file stats */
- perror(file);
- exit(1);
- }
-# if 0
- start = (((int) etext + (SEGSIZE-1)) / SEGSIZE ) * SEGSIZE;
-# else
- start = 0;
-# endif
- brk(end = start + sbuf.st_size);
- while (start < end) { /* write out entire data space */
- num = start + 16 * 1024 > end ? end - start : 16 * 1024;
- read(inf, start, num);
- start += num;
- }
- close(inf);
- strcpy(buf, ctime(&sbuf.st_mtime));
- for (sp = buf; *sp != '\n'; sp++)
- continue;
- *sp = '\0';
- printf("[%s]\n", buf);
- return TRUE;
-}
diff --git a/games/monop/getinp.c b/games/monop/getinp.c
deleted file mode 100644
index 3a4b9d7e60a8..000000000000
--- a/games/monop/getinp.c
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)getinp.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include <stdio.h>
-# include <ctype.h>
-
-# define reg register
-
-# define LINE 70
-
-static char buf[257];
-
-getinp(prompt, list)
-char *prompt, *list[]; {
-
- reg int i, n_match, match;
- char *sp;
- int plen;
- static int comp();
-
- for (;;) {
-inter:
- printf(prompt);
- for (sp = buf; (*sp=getchar()) != '\n'; )
- if (*sp == -1) /* check for interupted system call */
- goto inter;
- else if (sp != buf || *sp != ' ')
- sp++;
- if (buf[0] == '?' && buf[1] == '\n') {
- printf("Valid inputs are: ");
- for (i = 0, match = 18; list[i]; i++) {
- if ((match+=(n_match=strlen(list[i]))) > LINE) {
- printf("\n\t");
- match = n_match + 8;
- }
- if (*list[i] == '\0') {
- match += 8;
- printf("<RETURN>");
- }
- else
- printf(list[i]);
- if (list[i+1])
- printf(", ");
- else
- putchar('\n');
- match += 2;
- }
- continue;
- }
- *sp = '\0';
- for (sp = buf; *sp; sp++)
- if (isupper(*sp))
- *sp = tolower(*sp);
- for (i = n_match = 0; list[i]; i++)
- if (comp(list[i])) {
- n_match++;
- match = i;
- }
- if (n_match == 1)
- return match;
- else if (buf[0] != '\0')
- printf("Illegal response: \"%s\". Use '?' to get list of valid answers\n", buf);
- }
-}
-
-static
-comp(s1)
-char *s1; {
-
- reg char *sp, *tsp, c;
-
- if (buf[0] != '\0')
- for (sp = buf, tsp = s1; *sp; ) {
- c = isupper(*tsp) ? tolower(*tsp) : *tsp;
- tsp++;
- if (c != *sp++)
- return 0;
- }
- else if (*s1 != '\0')
- return 0;
- return 1;
-}
diff --git a/games/monop/houses.c b/games/monop/houses.c
deleted file mode 100644
index 5134c204edab..000000000000
--- a/games/monop/houses.c
+++ /dev/null
@@ -1,269 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)houses.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-static char *names[N_MON+2],
- cur_prop[80];
-
-static MON *monops[N_MON];
-
-/*
- * These routines deal with buying and selling houses
- */
-buy_houses() {
-
- reg int num_mon;
- reg MON *mp;
- reg OWN *op;
- bool good,got_morg;
- int i,p;
-
-over:
- num_mon = 0;
- good = TRUE;
- got_morg = FALSE;
- for (op = cur_p->own_list; op && op->sqr->type != PRPTY; op = op->next)
- continue;
- while (op)
- if (op->sqr->desc->monop) {
- mp = op->sqr->desc->mon_desc;
- names[num_mon] = (monops[num_mon]=mp)->name;
- num_mon++;
- got_morg = good = FALSE;
- for (i = 0; i < mp->num_in; i++) {
- if (op->sqr->desc->morg)
- got_morg++;
- if (op->sqr->desc->houses != 5)
- good++;
- op = op->next;
- }
- if (!good || got_morg)
- --num_mon;
- }
- else
- op = op->next;
- if (num_mon == 0) {
- if (got_morg)
- printf("You can't build on mortgaged monopolies.\n");
- else if (!good)
- printf("You can't build any more.\n");
- else
- printf("But you don't have any monopolies!!\n");
- return;
- }
- if (num_mon == 1)
- buy_h(monops[0]);
- else {
- names[num_mon++] = "done";
- names[num_mon--] = 0;
- if ((p=getinp("Which property do you wish to buy houses for? ", names)) == num_mon)
- return;
- buy_h(monops[p]);
- goto over;
- }
-}
-
-buy_h(mnp)
-MON *mnp; {
-
- reg int i;
- reg MON *mp;
- reg int price;
- shrt input[3],temp[3];
- int tot;
- PROP *pp;
-
- mp = mnp;
- price = mp->h_cost * 50;
-blew_it:
- list_cur(mp);
- printf("Houses will cost $%d\n", price);
- printf("How many houses do you wish to buy for\n");
- for (i = 0; i < mp->num_in; i++) {
- pp = mp->sq[i]->desc;
-over:
- if (pp->houses == 5) {
- printf("%s (H):\n", mp->sq[i]->name);
- input[i] = 0;
- temp[i] = 5;
- continue;
- }
- (void)sprintf(cur_prop, "%s (%d): ",
- mp->sq[i]->name, pp->houses);
- input[i] = get_int(cur_prop);
- temp[i] = input[i] + pp->houses;
- if (temp[i] > 5) {
- printf("That's too many. The most you can buy is %d\n",
- 5 - pp->houses);
- goto over;
- }
- }
- if (mp->num_in == 3 && (abs(temp[0] - temp[1]) > 1 ||
- abs(temp[0] - temp[2]) > 1 || abs(temp[1] - temp[2]) > 1)) {
-err: printf("That makes the spread too wide. Try again\n");
- goto blew_it;
- }
- else if (mp->num_in == 2 && abs(temp[0] - temp[1]) > 1)
- goto err;
- for (tot = i = 0; i < mp->num_in; i++)
- tot += input[i];
- if (tot) {
- printf("You asked for %d houses for $%d\n", tot, tot * price);
- if (getyn("Is that ok? ", yn) == 0) {
- cur_p->money -= tot * price;
- for (tot = i = 0; i < mp->num_in; i++)
- mp->sq[i]->desc->houses = temp[i];
- }
- }
-}
-
-/*
- * This routine sells houses.
- */
-sell_houses() {
-
- reg int num_mon;
- reg MON *mp;
- reg OWN *op;
- bool good;
- int p;
-
-over:
- num_mon = 0;
- good = TRUE;
- for (op = cur_p->own_list; op; op = op->next)
- if (op->sqr->type == PRPTY && op->sqr->desc->monop) {
- mp = op->sqr->desc->mon_desc;
- names[num_mon] = (monops[num_mon]=mp)->name;
- num_mon++;
- good = 0;
- do
- if (!good && op->sqr->desc->houses != 0)
- good++;
- while (op->next && op->sqr->desc->mon_desc == mp
- && (op=op->next));
- if (!good)
- --num_mon;
- }
- if (num_mon == 0) {
- printf("You don't have any houses to sell!!\n");
- return;
- }
- if (num_mon == 1)
- sell_h(monops[0]);
- else {
- names[num_mon++] = "done";
- names[num_mon--] = 0;
- if ((p=getinp("Which property do you wish to sell houses from? ", names)) == num_mon)
- return;
- sell_h(monops[p]);
- notify();
- goto over;
- }
-}
-
-sell_h(mnp)
-MON *mnp; {
-
- reg int i;
- reg MON *mp;
- reg int price;
- shrt input[3],temp[3];
- int tot;
- PROP *pp;
-
- mp = mnp;
- price = mp->h_cost * 25;
-blew_it:
- printf("Houses will get you $%d apiece\n", price);
- list_cur(mp);
- printf("How many houses do you wish to sell from\n");
- for (i = 0; i < mp->num_in; i++) {
- pp = mp->sq[i]->desc;
-over:
- if (pp->houses == 0) {
- printf("%s (0):\n", mp->sq[i]->name);
- input[i] = temp[i] = 0;
- continue;
- }
- if (pp->houses < 5)
- (void)sprintf(cur_prop,"%s (%d): ",
- mp->sq[i]->name,pp->houses);
- else
- (void)sprintf(cur_prop,"%s (H): ",mp->sq[i]->name);
- input[i] = get_int(cur_prop);
- temp[i] = pp->houses - input[i];
- if (temp[i] < 0) {
- printf("That's too many. The most you can sell is %d\n", pp->houses);
- goto over;
- }
- }
- if (mp->num_in == 3 && (abs(temp[0] - temp[1]) > 1 ||
- abs(temp[0] - temp[2]) > 1 || abs(temp[1] - temp[2]) > 1)) {
-err: printf("That makes the spread too wide. Try again\n");
- goto blew_it;
- }
- else if (mp->num_in == 2 && abs(temp[0] - temp[1]) > 1)
- goto err;
- for (tot = i = 0; i < mp->num_in; i++)
- tot += input[i];
- if (tot) {
- printf("You asked to sell %d houses for $%d\n",tot,tot * price);
- if (getyn("Is that ok? ", yn) == 0) {
- cur_p->money += tot * price;
- for (tot = i = 0; i < mp->num_in; i++)
- mp->sq[i]->desc->houses = temp[i];
- }
- }
-}
-
-list_cur(mp)
-reg MON *mp; {
-
- reg int i;
- reg SQUARE *sqp;
-
- for (i = 0; i < mp->num_in; i++) {
- sqp = mp->sq[i];
- if (sqp->desc->houses == 5)
- printf("%s (H) ", sqp->name);
- else
- printf("%s (%d) ", sqp->name, sqp->desc->houses);
- }
- putchar('\n');
-}
diff --git a/games/monop/initdeck.c b/games/monop/initdeck.c
deleted file mode 100644
index 87b64f4983a3..000000000000
--- a/games/monop/initdeck.c
+++ /dev/null
@@ -1,184 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1980, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static char sccsid[] = "@(#)initdeck.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include <stdio.h>
-# include "deck.h"
-
-/*
- * This program initializes the card files for monopoly.
- * It reads in a data file with Com. Chest cards, followed by
- * the Chance card. The two are seperated by a line of "%-".
- * All other cards are seperated by lines of "%%". In the front
- * of the file is the data for the decks in the same order.
- * This includes the seek pointer for the start of each card.
- * All cards start with their execution code, followed by the
- * string to print, terminated with a null byte.
- */
-
-# define TRUE 1
-# define FALSE 0
-
-# define bool char
-# define reg register
-
-char *infile = "cards.inp", /* input file */
- *outfile = "cards.pck"; /* "packed" file */
-
-extern long ftell();
-extern char *calloc();
-
-DECK deck[2];
-
-FILE *inf, *outf;
-
-main(ac, av)
-int ac;
-char *av[]; {
-
- getargs(ac, av);
- if ((inf = fopen(infile, "r")) == NULL) {
- perror(infile);
- exit(1);
- }
- count();
- /*
- * allocate space for pointers.
- */
- CC_D.offsets = (long *)calloc(CC_D.num_cards + 1, sizeof (long));
- CH_D.offsets = (long *)calloc(CH_D.num_cards + 1, sizeof (long));
- fseek(inf, 0L, 0);
- if ((outf = fopen(outfile, "w")) == NULL) {
- perror(outfile);
- exit(0);
- }
-
- fwrite(deck, sizeof (DECK), 2, outf);
- fwrite(CC_D.offsets, sizeof (long), CC_D.num_cards, outf);
- fwrite(CH_D.offsets, sizeof (long), CH_D.num_cards, outf);
- putem();
-
- fclose(inf);
- fseek(outf, 0, 0L);
- fwrite(deck, sizeof (DECK), 2, outf);
- fwrite(CC_D.offsets, sizeof (long), CC_D.num_cards, outf);
- fwrite(CH_D.offsets, sizeof (long), CH_D.num_cards, outf);
- fclose(outf);
- printf("There were %d com. chest and %d chance cards\n", CC_D.num_cards, CH_D.num_cards);
- exit(0);
-}
-
-getargs(ac, av)
-int ac;
-char *av[]; {
-
- if (ac > 1)
- infile = av[1];
- if (ac > 2)
- outfile = av[2];
-}
-
-/*
- * count the cards
- */
-count() {
-
- reg bool newline;
- reg DECK *in_deck;
- reg char c;
-
- newline = TRUE;
- in_deck = &CC_D;
- while ((c=getc(inf)) != EOF)
- if (newline && c == '%') {
- newline = FALSE;
- in_deck->num_cards++;
- if (getc(inf) == '-')
- in_deck = &CH_D;
- }
- else
- newline = (c == '\n');
- in_deck->num_cards++;
-}
-/*
- * put strings in the file
- */
-putem() {
-
- reg bool newline;
- reg DECK *in_deck;
- reg char c;
- reg int num;
-
- in_deck = &CC_D;
- CC_D.num_cards = 1;
- CH_D.num_cards = 0;
- CC_D.offsets[0] = ftell(outf);
- putc(getc(inf), outf);
- putc(getc(inf), outf);
- for (num = 0; (c=getc(inf)) != '\n'; )
- num = num * 10 + (c - '0');
- putw(num, outf);
- newline = FALSE;
- while ((c=getc(inf)) != EOF)
- if (newline && c == '%') {
- putc('\0', outf);
- newline = FALSE;
- if (getc(inf) == '-')
- in_deck = &CH_D;
- while (getc(inf) != '\n')
- continue;
- in_deck->offsets[in_deck->num_cards++] = ftell(outf);
- if ((c=getc(inf)) == EOF)
- break;
- putc(c, outf);
- putc(c = getc(inf), outf);
- for (num = 0; (c=getc(inf)) != EOF && c != '\n'; )
- num = num * 10 + (c - '0');
- putw(num, outf);
- }
- else {
- putc(c, outf);
- newline = (c == '\n');
- }
- putc('\0', outf);
-}
diff --git a/games/monop/jail.c b/games/monop/jail.c
deleted file mode 100644
index e0334c5ef2d9..000000000000
--- a/games/monop/jail.c
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)jail.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-/*
- * This routine uses a get-out-of-jail-free card to get the
- * player out of jail.
- */
-card() {
-
- if (cur_p->loc != JAIL) {
- printf("But you're not IN Jail\n");
- return;
- }
- if (cur_p->num_gojf == 0) {
- printf("But you don't HAVE a get out of jail free card\n");
- return;
- }
- ret_card(cur_p);
- cur_p->loc = 10; /* just visiting */
- cur_p->in_jail = 0;
-}
-/*
- * This routine returns the players get-out-of-jail-free card
- * to a deck.
- */
-ret_card(plr)
-reg PLAY *plr; {
-
- plr->num_gojf--;
- if (CC_D.gojf_used)
- CC_D.gojf_used = FALSE;
- else
- CH_D.gojf_used = FALSE;
-}
-/*
- * This routine deals with paying your way out of jail.
- */
-pay() {
-
- if (cur_p->loc != JAIL) {
- printf("But you're not IN Jail\n");
- return;
- }
- cur_p->loc = 10;
- cur_p->money -= 50;
- cur_p->in_jail = 0;
- printf("That cost you $50\n");
-}
-/*
- * This routine deals with a move in jail
- */
-move_jail(r1, r2)
-reg int r1, r2; {
-
- if (r1 != r2) {
- printf("Sorry, that doesn't get you out\n");
- if (++(cur_p->in_jail) == 3) {
- printf("It's your third turn and you didn't roll doubles. You have to pay $50\n");
- cur_p->money -= 50;
-moveit:
- cur_p->loc = 10;
- cur_p->in_jail = 0;
- move(r1+r2);
- r1 = r2 - 1; /* kludge: stop new roll w/doub */
- return TRUE;
- }
- return FALSE;
- }
- else {
- printf("Double roll gets you out.\n");
- goto moveit;
- }
-}
-printturn() {
-
- if (cur_p->loc != JAIL)
- return;
- printf("(This is your ");
- switch (cur_p->in_jail) {
- case 0:
- printf("1st");
- break;
- case 1:
- printf("2nd");
- break;
- case 2:
- printf("3rd (and final)");
- break;
- }
- printf(" turn in JAIL)\n");
-}
diff --git a/games/monop/misc.c b/games/monop/misc.c
deleted file mode 100644
index ed2653407e1b..000000000000
--- a/games/monop/misc.c
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-# include <ctype.h>
-# include <signal.h>
-
-/*
- * This routine executes a truncated set of commands until a
- * "yes or "no" answer is gotten.
- */
-getyn(prompt)
-reg char *prompt; {
-
- reg int com;
-
- for (;;)
- if ((com=getinp(prompt, yn)) < 2)
- return com;
- else
- (*func[com-2])();
-}
-/*
- * This routine tells the player if he's out of money.
- */
-notify() {
-
- if (cur_p->money < 0)
- printf("That leaves you $%d in debt\n", -cur_p->money);
- else if (cur_p->money == 0)
- printf("that leaves you broke\n");
- else if (fixing && !told_em && cur_p->money > 0) {
- printf("-- You are now Solvent ---\n");
- told_em = TRUE;
- }
-}
-/*
- * This routine switches to the next player
- */
-next_play() {
-
- player = ++player % num_play;
- cur_p = &play[player];
- num_doub = 0;
-}
-/*
- * This routine gets an integer from the keyboard after the
- * given prompt.
- */
-get_int(prompt)
-reg char *prompt; {
-
- reg int num;
- reg char *sp;
- char buf[257];
-
- for (;;) {
-inter:
- printf(prompt);
- num = 0;
- for (sp = buf; (*sp=getchar()) != '\n'; sp++)
- if (*sp == -1) /* check for interrupted system call */
- goto inter;
- if (sp == buf)
- continue;
- for (sp = buf; isspace(*sp); sp++)
- continue;
- for (; isdigit(*sp); sp++)
- num = num * 10 + *sp - '0';
- if (*sp == '\n')
- return num;
- else
- printf("I can't understand that\n");
- }
-}
-/*
- * This routine sets the monopoly flag from the list given.
- */
-set_ownlist(pl)
-int pl; {
-
- reg int num; /* general counter */
- reg MON *orig; /* remember starting monop ptr */
- reg OWN *op; /* current owned prop */
- OWN *orig_op; /* origianl prop before loop */
-
- op = play[pl].own_list;
-#ifdef DEBUG
- printf("op [%d] = play[pl [%d] ].own_list;\n", op, pl);
-#endif
- while (op) {
-#ifdef DEBUG
- printf("op->sqr->type = %d\n", op->sqr->type);
-#endif
- switch (op->sqr->type) {
- case UTIL:
-#ifdef DEBUG
- printf(" case UTIL:\n");
-#endif
- for (num = 0; op && op->sqr->type == UTIL; op = op->next)
- num++;
- play[pl].num_util = num;
-#ifdef DEBUG
- printf("play[pl].num_util = num [%d];\n", num);
-#endif
- break;
- case RR:
-#ifdef DEBUG
- printf(" case RR:\n");
-#endif
- for (num = 0; op && op->sqr->type == RR; op = op->next) {
-#ifdef DEBUG
- printf("iter: %d\n", num);
- printf("op = %d, op->sqr = %d, op->sqr->type = %d\n", op, op->sqr, op->sqr->type);
-#endif
- num++;
- }
- play[pl].num_rr = num;
-#ifdef DEBUG
- printf("play[pl].num_rr = num [%d];\n", num);
-#endif
- break;
- case PRPTY:
-#ifdef DEBUG
- printf(" case PRPTY:\n");
-#endif
- orig = op->sqr->desc->mon_desc;
- orig_op = op;
- num = 0;
- while (op && op->sqr->desc->mon_desc == orig) {
-#ifdef DEBUG
- printf("iter: %d\n", num);
-#endif
- num++;
-#ifdef DEBUG
- printf("op = op->next ");
-#endif
- op = op->next;
-#ifdef DEBUG
- printf("[%d];\n", op);
-#endif
- }
-#ifdef DEBUG
- printf("num = %d\n");
-#endif
- if (orig == 0) {
- printf("panic: bad monopoly descriptor: orig = %d\n", orig);
- printf("player # %d\n", pl+1);
- printhold(pl);
- printf("orig_op = %d\n", orig_op);
- printf("orig_op->sqr->type = %d (PRPTY)\n", op->sqr->type);
- printf("orig_op->next = %d\n", op->next);
- printf("orig_op->sqr->desc = %d\n", op->sqr->desc);
- printf("op = %d\n", op);
- printf("op->sqr->type = %d (PRPTY)\n", op->sqr->type);
- printf("op->next = %d\n", op->next);
- printf("op->sqr->desc = %d\n", op->sqr->desc);
- printf("num = %d\n", num);
- }
-#ifdef DEBUG
- printf("orig->num_in = %d\n", orig->num_in);
-#endif
- if (num == orig->num_in)
- is_monop(orig, pl);
- else
- isnot_monop(orig);
- break;
- }
- }
-}
-/*
- * This routine sets things up as if it is a new monopoly
- */
-is_monop(mp, pl)
-reg MON *mp;
-int pl; {
-
- reg char *sp;
- reg int i;
-
- mp->owner = pl;
- mp->num_own = mp->num_in;
- for (i = 0; i < mp->num_in; i++)
- mp->sq[i]->desc->monop = TRUE;
- mp->name = mp->mon_n;
-}
-/*
- * This routine sets things up as if it is no longer a monopoly
- */
-isnot_monop(mp)
-reg MON *mp; {
-
- reg char *sp;
- reg int i;
-
- mp->owner = -1;
- for (i = 0; i < mp->num_in; i++)
- mp->sq[i]->desc->monop = FALSE;
- mp->name = mp->not_m;
-}
-/*
- * This routine gives a list of the current player's routine
- */
-list() {
-
- printhold(player);
-}
-/*
- * This routine gives a list of a given players holdings
- */
-list_all() {
-
- reg int pl;
-
- while ((pl=getinp("Whose holdings do you want to see? ", name_list)) < num_play)
- printhold(pl);
-}
-/*
- * This routine gives the players a chance before it exits.
- */
-void
-quit() {
-
- putchar('\n');
- if (getyn("Do you all really want to quit? ", yn) == 0)
- exit(0);
- signal(SIGINT, quit);
-}
-/*
- * This routine copies one structure to another
- */
-cpy_st(s1, s2, size)
-reg int *s1, *s2, size; {
-
- size /= 2;
- while (size--)
- *s1++ = *s2++;
-}
diff --git a/games/monop/mon.dat b/games/monop/mon.dat
deleted file mode 100644
index 8d5ab4de62d2..000000000000
--- a/games/monop/mon.dat
+++ /dev/null
@@ -1,44 +0,0 @@
-/*-
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)mon.dat 5.4 (Berkeley) 5/31/93
- */
-
-/* name owner num_in num_own h_cost not_m mon_n sq */
-{0, -1, 2, 0, 1, "Purple", "PURPLE", {1,3}},
-{0, -1, 3, 0, 1, "Lt. Blue", "LT. BLUE", {6,8,9}},
-{0, -1, 3, 0, 2, "Violet", "VIOLET", {11,13,14}},
-{0, -1, 3, 0, 2, "Orange", "ORANGE", {16,18,19}},
-{0, -1, 3, 0, 3, "Red", "RED", {21,23,24}},
-{0, -1, 3, 0, 3, "Yellow", "YELLOW", {26,27,29}},
-{0, -1, 3, 0, 4, "Green", "GREEN", {31,32,34}},
-{0, -1, 2, 0, 4, "Dk. Blue", "DK. BLUE", {37,39}}
diff --git a/games/monop/monop.6 b/games/monop/monop.6
deleted file mode 100644
index 35b2e8d8d579..000000000000
--- a/games/monop/monop.6
+++ /dev/null
@@ -1,188 +0,0 @@
-.\" Copyright (c) 1980 The Regents of the University of California.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" @(#)monop.6 6.5 (Berkeley) 3/25/93
-.\"
-.de Sc \" start command list macro
-.ie n .PD 0
-.el .PD 0.5
-.sp
-..
-.de Cm \" define command macro
-.TP 10
-.ie t .BR "\\$1" :
-.el .IR "\\$1" :
-..
-.de Ec \" end command macro
-.PD 1
-..
-.TH MONOP 6 "March 25, 1993"
-.UC 4
-.SH NAME
-monop \- Monopoly game
-.SH SYNOPSIS
-.B /usr/games/monop
-[ file ]
-.SH DESCRIPTION
-.I Monop
-is reminiscent of the Parker Brother's game Monopoly, and
-monitors a game between 1 to 9 users.
-It is assumed that the rules of Monopoly are known.
-The game follows the standard rules, with the exception that,
-if a property goes up for auction and there are only two solvent players,
-no auction is held and the property remains unowned.
-.PP
-The game, in effect, lends the player money,
-so it is possible to buy something which you cannot afford.
-However, as soon as a person goes into debt,
-he must \*(lqfix the problem\*(rq,
-.IR i.e. ,
-make himself solvent, before play can continue.
-If this is not possible, the player's property reverts to his debtee,
-either a player or the bank.
-A player can resign at any time to any person or the bank,
-which puts the property back on the board, unowned.
-.PP
-Any time that the response to a question is a
-.IR string ,
-e.g., a name, place or person, you can type `?' to get a list of valid answers.
-It is not possible to input a negative number, nor is it ever necessary.
-.Sc
-.IR "A Summary of Commands" :
-.Cm quit
-quit game: This allows you to quit the game. It asks you if you're sure.
-.Cm print
-print board: This prints out the current board.
-The columns have the following meanings (column headings are the same for the
-.BR where ,
-.BR "own holdings" ,
-and
-.B holdings
-commands):
-.PP
-.RS 10
-.TP "\w'Name\ \ 'u"
-Name
-The first ten characters of the name of the square
-.TP
-Own
-The \fInumber\fR of the owner of the property.
-.TP
-Price
-The cost of the property (if any)
-.TP
-Mg
-This field has a `*' in it if the property is mortgaged
-.TP
-#
-If the property is a Utility or Railroad, this is the number
-of such owned by the owner.
-If the property is land, this is the number of houses on it.
-.TP
-Rent
-Current rent on the property. If it is not owned, there is no rent.
-.RE
-.Cm where
-where players are: Tells you where all the players are.
-A `*' indicates the current player.
-.Cm "own\ holdings"
-List your own holdings,
-.IR i.e. ,
-money, get-out-of-jail-free cards, and property.
-.Cm holdings
-holdings list: Look at anyone's holdings.
-It will ask you whose holdings you wish to look at.
-When you are finished, type \*(lqdone\*(rq.
-.Cm mortgage
-mortgage property:
-Sets up a list of mortgageable property, and asks which you wish to mortgage.
-.Cm unmortgage
-unmortgage property:
-Unmortgage mortgaged property.
-.Cm buy
-buy houses:
-Sets up a list of monopolies on which you can buy houses.
-If there is more than one, it asks you which you want to buy for.
-It then asks you how many for each piece of property,
-giving the current amount in parentheses after the property name.
-If you build in an unbalanced manner
-(a disparity of more than one house within the same monopoly),
-it asks you to re-input things.
-.Cm sell
-sell houses:
-Sets up a list of monopolies from which you can sell houses.
-It operates in an analogous manner to
-.I buy.
-.Cm card
-card for jail:
-Use a get-out-of-jail-free card to get out of jail.
-If you're not in jail, or you don't have one, it tells you so.
-.Cm pay
-pay for jail:
-Pay $50 to get out of jail, from whence you are put on Just Visiting.
-Difficult to do if you're not there.
-.Cm trade
-This allows you to trade with another player.
-It asks you whom you wish to trade with,
-and then asks you what each wishes to give up.
-You can get a summary at the end, and, in all cases,
-it asks for confirmation of the trade before doing it.
-.Cm resign
-Resign to another player or the bank.
-If you resign to the bank, all property reverts to its virgin state,
-and get-out-of-jail free cards revert to the deck.
-.Cm save
-save game:
-Save the current game in a file for later play.
-You can continue play after saving,
-either by adding the file in which you saved the game after the
-.I monop
-command, or by using the
-.I restore
-command (see below).
-It will ask you which file you wish to save it in,
-and, if the file exists, confirm that you wish to overwrite it.
-.Cm restore
-restore game:
-Read in a previously saved game from a file.
-It leaves the file intact.
-.Cm roll
-Roll the dice and move forward to your new location.
-If you simply hit the <RETURN> key instead of a command,
-it is the same as typing
-.IR roll .
-.Ec
-.SH AUTHOR
-Ken Arnold
-.SH FILES
-/usr/games/lib/cards.pck Chance and Community Chest cards
-.SH BUGS
-No command can be given an argument instead of a response to a query.
diff --git a/games/monop/monop.c b/games/monop/monop.c
deleted file mode 100644
index 2b39e703710e..000000000000
--- a/games/monop/monop.c
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1980, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.def"
-
-/*
- * This program implements a monopoly game
- */
-main(ac, av)
-reg int ac;
-reg char *av[]; {
-
-
- srand(getpid());
- if (ac > 1) {
- if (!rest_f(av[1]))
- restore();
- }
- else {
- getplayers();
- init_players();
- init_monops();
- }
- num_luck = sizeof lucky_mes / sizeof (char *);
- init_decks();
- signal(2, quit);
- for (;;) {
- printf("\n%s (%d) (cash $%d) on %s\n", cur_p->name, player + 1,
- cur_p->money, board[cur_p->loc].name);
- printturn();
- force_morg();
- execute(getinp("-- Command: ", comlist));
- }
-}
-/*
- * This routine gets the names of the players
- */
-getplayers() {
-
- reg char *sp;
- reg int i, j;
- char buf[257];
-
-blew_it:
- for (;;) {
- if ((num_play=get_int("How many players? ")) <= 0 ||
- num_play > MAX_PL)
- printf("Sorry. Number must range from 1 to 9\n");
- else
- break;
- }
- cur_p = play = (PLAY *) calloc(num_play, sizeof (PLAY));
- for (i = 0; i < num_play; i++) {
-over:
- printf("Player %d's name: ", i + 1);
- for (sp = buf; (*sp=getchar()) != '\n'; sp++)
- continue;
- if (sp == buf)
- goto over;
- *sp++ = '\0';
- strcpy(name_list[i]=play[i].name=(char *)calloc(1,sp-buf),buf);
- play[i].money = 1500;
- }
- name_list[i++] = "done";
- name_list[i] = 0;
- for (i = 0; i < num_play; i++)
- for (j = i + 1; j < num_play; j++)
- if (strcasecmp(name_list[i], name_list[j]) == 0) {
- if (i != num_play - 1)
- printf("Hey!!! Some of those are IDENTICAL!! Let's try that again....\n");
- else
- printf("\"done\" is a reserved word. Please try again\n");
- for (i = 0; i < num_play; i++)
- cfree(play[i].name);
- cfree(play);
- goto blew_it;
- }
-}
-/*
- * This routine figures out who goes first
- */
-init_players() {
-
- reg int i, rl, cur_max;
- bool over;
- int max_pl;
-
-again:
- putchar('\n');
- for (cur_max = i = 0; i < num_play; i++) {
- printf("%s (%d) rolls %d\n", play[i].name, i+1, rl=roll(2, 6));
- if (rl > cur_max) {
- over = FALSE;
- cur_max = rl;
- max_pl = i;
- }
- else if (rl == cur_max)
- over++;
- }
- if (over) {
- printf("%d people rolled the same thing, so we'll try again\n",
- over + 1);
- goto again;
- }
- player = max_pl;
- cur_p = &play[max_pl];
- printf("%s (%d) goes first\n", cur_p->name, max_pl + 1);
-}
-/*
- * This routine initalizes the monopoly structures.
- */
-init_monops() {
-
- reg MON *mp;
- reg int i;
-
- for (mp = mon; mp < &mon[N_MON]; mp++) {
- mp->name = mp->not_m;
- for (i = 0; i < mp->num_in; i++)
- mp->sq[i] = &board[mp->sqnums[i]];
- }
-}
diff --git a/games/monop/monop.def b/games/monop/monop.def
deleted file mode 100644
index 89e933d239ac..000000000000
--- a/games/monop/monop.def
+++ /dev/null
@@ -1,123 +0,0 @@
-/*-
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)monop.def 5.5 (Berkeley) 5/31/93
- */
-
-# include "monop.h"
-# include "deck.h"
-
-bool fixing, /* set if fixing up debt */
- trading, /* set if in process of trading */
- told_em, /* set if told user he's out of debt */
- spec; /* set if moving by card to RR or UTIL */
-
-char *name_list[MAX_PL+2], /* list of players' names */
- *comlist[] = { /* list of normal commands */
- "quit", /* 0 */ "print", /* 1 */
- "where", /* 2 */ "own holdings", /* 3 */
- "holdings", /* 4 */ "mortgage", /* 5 */
- "unmortgage", /* 6 */ "buy houses", /* 7 */
- "sell houses", /* 8 */ "card", /* 9 */
- "pay", /* 10 */ "trade", /* 11 */
- "resign", /* 12 */ "save", /* 13 */
- "restore", /* 14 */ "roll", /* 15 */
- "", /* 16 */
- 0
- },
- *yn[] = { /* list of commands for yes/no answers */
- "yes", /* 0 */ "no", /* 1 */
- "quit", /* 2 */ "print", /* 3 */
- "where", /* 4 */ "own holdings", /* 5 */
- "holdings", /* 6 */
- 0
- },
- *lucky_mes[] = { /* "got lucky" messages */
- "You lucky stiff", "You got lucky",
- "What a lucky person!", "You must have a 4-leaf clover",
- "My, my! Aren't we lucky!", "Luck smiles upon you",
- "You got lucky this time", "Lucky person!",
- "Your karma must certainly be together",
- "How beautifully Cosmic", "Wow, you must be really with it"
- /* "I want your autograph", -- Save for later */
- };
-
-int player, /* current player number */
- num_play, /* current number of players */
- num_doub, /* # of doubles current player rolled */
- /* # of "got lucky" messages */
- num_luck = sizeof lucky_mes / sizeof (char *),
- /* list of command functions */
- buy_houses(), card(), do_move(), do_move(), list(), list_all(),
- mortgage(), pay(), printboard(), quit(), resign(), restore(),
- rub(), save(), sell_houses(), trade(),
- unmortgage(), where(),
- (*func[])() = { /* array of function calls for commands */
- quit, /* quit game |* 0 *| */
- printboard, /* print board |* 1 *| */
- where, /* where players are |* 2 *| */
- list, /* own holdings |* 3 *| */
- list_all, /* holdings list |* 4 *| */
- mortgage, /* mortgage property |* 5 *| */
- unmortgage, /* unmortgage property |* 6 *| */
- buy_houses, /* buy houses |* 7 *| */
- sell_houses, /* sell houses |* 8 *| */
- card, /* card for jail |* 9 *| */
- pay, /* pay for jail |* 10 *| */
- trade, /* trade |* 11 *| */
- resign, /* resign |* 12 *| */
- save, /* save game |* 13 *| */
- restore, /* restore game |* 14 *| */
- do_move, /* roll |* 15 *| */
- do_move /* "" |* 16 *| */
- };
-
-DECK deck[2]; /* Chance and Community Chest */
-
-PLAY *play, /* player structure array ("calloc"ed) */
- *cur_p; /* pointer to current player's struct */
-
-RR_S rr[N_RR]; /* raildroad descriptions */
-
-UTIL_S util[2]; /* utility descriptions */
-
-MON mon[N_MON] = { /* monopoly descriptions */
-# include "mon.dat"
-};
-
-PROP prop[N_PROP] = { /* typical properties */
-# include "prop.dat"
-};
-
-SQUARE board[N_SQRS+1] = { /* board itself (+1 for Jail) */
-# include "brd.dat"
-};
diff --git a/games/monop/monop.ext b/games/monop/monop.ext
deleted file mode 100644
index a5fc616c2c89..000000000000
--- a/games/monop/monop.ext
+++ /dev/null
@@ -1,57 +0,0 @@
-/*-
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)monop.ext 5.4 (Berkeley) 5/31/93
- */
-
-# include "monop.h"
-# include "deck.h"
-
-extern bool trading, spec, fixing, told_em;
-
-extern char *yn[], *comlist[], *name_list[], *lucky_mes[];
-
-extern int num_play, player, num_doub, num_luck, (*func[])();
-
-extern DECK deck[2];
-
-extern MON mon[];
-
-extern PLAY *play, *cur_p;
-
-extern PROP prop[];
-
-extern RR_S rr[];
-
-extern SQUARE board[];
-
-extern UTIL_S util[];
diff --git a/games/monop/monop.h b/games/monop/monop.h
deleted file mode 100644
index 744732c33bf1..000000000000
--- a/games/monop/monop.h
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)monop.h 8.1 (Berkeley) 5/31/93
- */
-
-# include <stdio.h>
-
-# define reg register
-# define shrt char
-# define bool char
-# define unsgn unsigned
-
-# define TRUE (1)
-# define FALSE (0)
-
-# define N_MON 8 /* number of monopolies */
-# define N_PROP 22 /* number of normal property squares */
-# define N_RR 4 /* number of railroads */
-# define N_UTIL 2 /* number of utilities */
-# define N_SQRS 40 /* number of squares on board */
-# define MAX_PL 9 /* maximum number of players */
-# define MAX_PRP (N_PROP+N_RR+N_UTIL) /* max # ownable property */
-
- /* square type numbers */
-# define PRPTY 0 /* normal property */
-# define RR 1 /* railroad */
-# define UTIL 2 /* water works - electric co */
-# define SAFE 3 /* safe spot */
-# define CC 4 /* community chest */
-# define CHANCE 5 /* chance (surprise!!!) */
-# define INC_TAX 6 /* Income tax */
-# define GOTO_J 7 /* Go To Jail! */
-# define LUX_TAX 8 /* Luxury tax */
-# define IN_JAIL 9 /* In jail */
-
-# define JAIL 40 /* JAIL square number */
-
-# define lucky(str) printf("%s%s\n",str,lucky_mes[roll(1,num_luck)-1])
-# define printline() printf("------------------------------\n")
-# define sqnum(sqp) (sqp - board)
-# define swap(A1,A2) if ((A1) != (A2)) { \
- (A1) ^= (A2); \
- (A2) ^= (A1); \
- (A1) ^= (A2); \
- }
-
-struct sqr_st { /* structure for square */
- char *name; /* place name */
- shrt owner; /* owner number */
- shrt type; /* place type */
- struct prp_st *desc; /* description struct */
- int cost; /* cost */
-};
-
-typedef struct sqr_st SQUARE;
-
-struct mon_st { /* monopoly description structure */
- char *name; /* monop. name (color) */
- shrt owner; /* owner of monopoly */
- shrt num_in; /* # in monopoly */
- shrt num_own; /* # owned (-1: not poss. monop)*/
- shrt h_cost; /* price of houses */
- char *not_m; /* name if not monopoly */
- char *mon_n; /* name if a monopoly */
- char sqnums[3]; /* Square numbers (used to init)*/
- SQUARE *sq[3]; /* list of squares in monop */
-};
-
-typedef struct mon_st MON;
-
-/*
- * This struct describes a property. For railroads and utilities, only
- * the "morg" member is used.
- */
-struct prp_st { /* property description structure */
- bool morg; /* set if mortgaged */
- bool monop; /* set if monopoly */
- shrt square; /* square description */
- shrt houses; /* number of houses */
- MON *mon_desc; /* name of color */
- int rent[6]; /* rents */
-};
-
-struct own_st { /* element in list owned things */
- SQUARE *sqr; /* pointer to square */
- struct own_st *next; /* next in list */
-};
-
-typedef struct own_st OWN;
-
-struct plr_st { /* player description structure */
- char *name; /* owner name */
- shrt num_gojf; /* # of get-out-of-jail-free's */
- shrt num_rr; /* # of railroads owned */
- shrt num_util; /* # of water works/elec. co. */
- shrt loc; /* location on board */
- shrt in_jail; /* count of turns in jail */
- int money; /* amount of money */
- OWN *own_list; /* start of propery list */
-};
-
-typedef struct plr_st PLAY;
-typedef struct prp_st PROP;
-typedef struct prp_st RR_S;
-typedef struct prp_st UTIL_S;
-
-int cc(), chance(), lux_tax(), goto_jail(), inc_tax();
diff --git a/games/monop/morg.c b/games/monop/morg.c
deleted file mode 100644
index d88fa34cae83..000000000000
--- a/games/monop/morg.c
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)morg.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-/*
- * These routines deal with mortgaging.
- */
-
-static char *names[MAX_PRP+2],
- *morg_coms[] = {
- "quit", /* 0 */
- "print", /* 1 */
- "where", /* 2 */
- "own holdings", /* 3 */
- "holdings", /* 4 */
- "mortgage", /* 5 */
- "unmortgage", /* 6 */
- "buy", /* 7 */
- "sell", /* 8 */
- "card", /* 9 */
- "pay", /* 10 */
- "trade", /* 11 */
- "resign", /* 12 */
- "save game", /* 13 */
- "restore game", /* 14 */
- 0
- };
-
-static shrt square[MAX_PRP+2];
-
-static int num_good,got_houses;
-
-/*
- * This routine is the command level response the mortgage command.
- * it gets the list of mortgageable property and asks which are to
- * be mortgaged.
- */
-mortgage() {
-
- reg int prop;
-
- for (;;) {
- if (set_mlist() == 0) {
- if (got_houses)
- printf("You can't mortgage property with houses on it.\n");
- else
- printf("You don't have any un-mortgaged property.\n");
- return;
- }
- if (num_good == 1) {
- printf("Your only mortageable property is %s\n",names[0]);
- if (getyn("Do you want to mortgage it? ") == 0)
- m(square[0]);
- return;
- }
- prop = getinp("Which property do you want to mortgage? ",names);
- if (prop == num_good)
- return;
- m(square[prop]);
- notify(cur_p);
- }
-}
-/*
- * This routine sets up the list of mortgageable property
- */
-set_mlist() {
-
- reg OWN *op;
-
- num_good = 0;
- for (op = cur_p->own_list; op; op = op->next)
- if (!op->sqr->desc->morg)
- if (op->sqr->type == PRPTY && op->sqr->desc->houses)
- got_houses++;
- else {
- names[num_good] = op->sqr->name;
- square[num_good++] = sqnum(op->sqr);
- }
- names[num_good++] = "done";
- names[num_good--] = 0;
- return num_good;
-}
-/*
- * This routine actually mortgages the property.
- */
-m(prop)
-reg int prop; {
-
- reg int price;
-
- price = board[prop].cost/2;
- board[prop].desc->morg = TRUE;
- printf("That got you $%d\n",price);
- cur_p->money += price;
-}
-/*
- * This routine is the command level repsponse to the unmortgage
- * command. It gets the list of mortgaged property and asks which are
- * to be unmortgaged.
- */
-unmortgage() {
-
- reg int prop;
-
- for (;;) {
- if (set_umlist() == 0) {
- printf("You don't have any mortgaged property.\n");
- return;
- }
- if (num_good == 1) {
- printf("Your only mortaged property is %s\n",names[0]);
- if (getyn("Do you want to unmortgage it? ") == 0)
- unm(square[0]);
- return;
- }
- prop = getinp("Which property do you want to unmortgage? ",names);
- if (prop == num_good)
- return;
- unm(square[prop]);
- }
-}
-/*
- * This routine sets up the list of mortgaged property
- */
-set_umlist() {
-
- reg OWN *op;
-
- num_good = 0;
- for (op = cur_p->own_list; op; op = op->next)
- if (op->sqr->desc->morg) {
- names[num_good] = op->sqr->name;
- square[num_good++] = sqnum(op->sqr);
- }
- names[num_good++] = "done";
- names[num_good--] = 0;
- return num_good;
-}
-/*
- * This routine actually unmortgages the property
- */
-unm(prop)
-reg int prop; {
-
- reg int price;
-
- price = board[prop].cost/2;
- board[prop].desc->morg = FALSE;
- price += price/10;
- printf("That cost you $%d\n",price);
- cur_p->money -= price;
- set_umlist();
-}
-/*
- * This routine forces the indebted player to fix his
- * financial woes.
- */
-force_morg() {
-
- told_em = fixing = TRUE;
- while (cur_p->money <= 0)
- fix_ex(getinp("How are you going to fix it up? ",morg_coms));
- fixing = FALSE;
-}
-/*
- * This routine is a special execute for the force_morg routine
- */
-fix_ex(com_num)
-reg int com_num; {
-
- told_em = FALSE;
- (*func[com_num])();
- notify();
-}
diff --git a/games/monop/pathnames.h b/games/monop/pathnames.h
deleted file mode 100644
index 60c098882de8..000000000000
--- a/games/monop/pathnames.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)pathnames.h 8.1 (Berkeley) 5/31/93
- */
-
-#define _PATH_CARDS "/usr/share/games/cards.pck"
diff --git a/games/monop/print.c b/games/monop/print.c
deleted file mode 100644
index 121f79eed2d8..000000000000
--- a/games/monop/print.c
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-static char buf[80], /* output buffer */
- *header = "Name Own Price Mg # Rent";
-
-/*
- * This routine prints out the current board
- */
-printboard() {
-
- reg int i;
-
- printf("%s\t%s\n", header, header);
- for (i = 0; i < N_SQRS/2; i++) {
- printsq(i, FALSE);
- putchar('\t');
- printsq(i+N_SQRS/2, TRUE);
- }
-}
-/*
- * This routine lists where each player is.
- */
-where() {
-
- reg int i;
- char *bsp;
-
- printf("%s Player\n", header);
- for (i = 0; i < num_play; i++) {
- printsq(play[i].loc, FALSE);
- printf(" %s (%d)", play[i].name, i+1);
- if (cur_p == &play[i])
- printf(" *");
- putchar('\n');
- }
-}
-/*
- * This routine prints out an individual square
- */
-printsq(sqn, eoln)
-int sqn;
-reg bool eoln; {
-
- reg int rnt;
- reg PROP *pp;
- reg SQUARE *sqp;
- int i;
-
- sqp = &board[sqn];
- printf("%-10.10s", sqp->name);
- switch (sqp->type) {
- case SAFE:
- case CC:
- case CHANCE:
- case INC_TAX:
- case GOTO_J:
- case LUX_TAX:
- case IN_JAIL:
-spec:
- if (!eoln)
- printf(" ");
- break;
- case PRPTY:
- pp = sqp->desc;
- if (sqp->owner < 0) {
- printf(" - %-8.8s %3d", pp->mon_desc->name, sqp->cost);
- if (!eoln)
- printf(" ");
- break;
- }
- printf(" %d %-8.8s %3d", sqp->owner+1, pp->mon_desc->name,
- sqp->cost);
- printmorg(sqp);
- if (pp->monop) {
- if (pp->houses < 5)
- if (pp->houses > 0)
- printf("%d %4d", pp->houses,
- pp->rent[pp->houses]);
- else
- printf("0 %4d", pp->rent[0] * 2);
- else
- printf("H %4d", pp->rent[5]);
- }
- else
- printf(" %4d", pp->rent[0]);
- break;
- case UTIL:
- if (sqp->owner < 0) {
- printf(" - 150");
- if (!eoln)
- printf(" ");
- break;
- }
- printf(" %d 150", sqp->owner+1);
- printmorg(sqp);
- printf("%d", play[sqp->owner].num_util);
- if (!eoln)
- printf(" ");
- break;
- case RR:
- if (sqp->owner < 0) {
- printf(" - Railroad 200");
- if (!eoln)
- printf(" ");
- break;
- }
- printf(" %d Railroad 200", sqp->owner+1);
- printmorg(sqp);
- rnt = 25;
- rnt <<= play[sqp->owner].num_rr - 1;
- printf("%d %4d", play[sqp->owner].num_rr, 25 << (play[sqp->owner].num_rr - 1));
- break;
- }
- if (eoln)
- putchar('\n');
-}
-/*
- * This routine prints out the mortgage flag.
- */
-printmorg(sqp)
-reg SQUARE *sqp; {
-
- if (sqp->desc->morg)
- printf(" * ");
- else
- printf(" ");
-}
-/*
- * This routine lists the holdings of the player given
- */
-printhold(pl)
-reg int pl; {
-
- reg OWN *op;
- reg PLAY *pp;
- char *bsp;
-
- pp = &play[pl];
- printf("%s's (%d) holdings (Total worth: $%d):\n", name_list[pl], pl+1,
- pp->money + prop_worth(pp));
- printf("\t$%d", pp->money);
- if (pp->num_gojf) {
- printf(", %d get-out-of-jail-free card", pp->num_gojf);
- if (pp->num_gojf > 1)
- putchar('s');
- }
- putchar('\n');
- if (pp->own_list) {
- printf("\t%s\n", header);
- for (op = pp->own_list; op; op = op->next) {
- putchar('\t');
- printsq(sqnum(op->sqr), TRUE);
- }
- }
-}
diff --git a/games/monop/prop.c b/games/monop/prop.c
deleted file mode 100644
index 0feb498a62d3..000000000000
--- a/games/monop/prop.c
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-extern char *calloc();
-
-/*
- * This routine deals with buying property, setting all the
- * appropriate flags.
- */
-buy(player, sqrp)
-reg int player;
-reg SQUARE *sqrp; {
-
- trading = FALSE;
- sqrp->owner = player;
- add_list(player, &(play[player].own_list), cur_p->loc);
-}
-/*
- * This routine adds an item to the list.
- */
-add_list(plr, head, op_sqr)
-int plr;
-OWN **head;
-int op_sqr; {
-
- reg int val;
- reg OWN *tp, *last_tp;
- MON *mp;
- OWN *op;
-
- op = (OWN *)calloc(1, sizeof (OWN));
- op->sqr = &board[op_sqr];
- val = value(op->sqr);
- last_tp = NULL;
- for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next)
- if (val == value(tp->sqr)) {
- cfree(op);
- return;
- }
- else
- last_tp = tp;
- op->next = tp;
- if (last_tp != NULL)
- last_tp->next = op;
- else
- *head = op;
- if (!trading)
- set_ownlist(plr);
-}
-/*
- * This routine deletes property from the list.
- */
-del_list(plr, head, op_sqr)
-int plr;
-OWN **head;
-shrt op_sqr; {
-
- reg int i;
- reg OWN *op, *last_op;
-
- switch (board[op_sqr].type) {
- case PRPTY:
- board[op_sqr].desc->mon_desc->num_own--;
- break;
- case RR:
- play[plr].num_rr--;
- break;
- case UTIL:
- play[plr].num_util--;
- break;
- }
- last_op = NULL;
- for (op = *head; op; op = op->next)
- if (op->sqr == &board[op_sqr])
- break;
- else
- last_op = op;
- if (last_op == NULL)
- *head = op->next;
- else {
- last_op->next = op->next;
- cfree(op);
- }
-}
-/*
- * This routine calculates the value for sorting of the
- * given square.
- */
-value(sqp)
-reg SQUARE *sqp; {
-
- reg int sqr;
-
- sqr = sqnum(sqp);
- switch (sqp->type) {
- case SAFE:
- return 0;
- default: /* Specials, etc */
- return 1;
- case UTIL:
- if (sqr == 12)
- return 2;
- else
- return 3;
- case RR:
- return 4 + sqr/10;
- case PRPTY:
- return 8 + (sqp->desc) - prop;
- }
-}
-/*
- * This routine accepts bids for the current peice
- * of property.
- */
-bid() {
-
- static bool in[MAX_PL];
- reg int i, num_in, cur_max;
- char buf[80];
- int cur_bid;
-
- printf("\nSo it goes up for auction. Type your bid after your name\n");
- for (i = 0; i < num_play; i++)
- in[i] = TRUE;
- i = -1;
- cur_max = 0;
- num_in = num_play;
- while (num_in > 1 || (cur_max == 0 && num_in > 0)) {
- i = ++i % num_play;
- if (in[i]) {
- do {
- (void)sprintf(buf, "%s: ", name_list[i]);
- cur_bid = get_int(buf);
- if (cur_bid == 0) {
- in[i] = FALSE;
- if (--num_in == 0)
- break;
- }
- else if (cur_bid <= cur_max) {
- printf("You must bid higher than %d to stay in\n", cur_max);
- printf("(bid of 0 drops you out)\n");
- }
- } while (cur_bid != 0 && cur_bid <= cur_max);
- cur_max = (cur_bid ? cur_bid : cur_max);
- }
- }
- if (cur_max != 0) {
- while (!in[i])
- i = ++i % num_play;
- printf("It goes to %s (%d) for $%d\n",play[i].name,i+1,cur_max);
- buy(i, &board[cur_p->loc]);
- play[i].money -= cur_max;
- }
- else
- printf("Nobody seems to want it, so we'll leave it for later\n");
-}
-/*
- * This routine calculates the value of the property
- * of given player.
- */
-prop_worth(plp)
-reg PLAY *plp; {
-
- reg OWN *op;
- reg int worth;
-
- worth = 0;
- for (op = plp->own_list; op; op = op->next) {
- if (op->sqr->type == PRPTY && op->sqr->desc->monop)
- worth += op->sqr->desc->mon_desc->h_cost * 50 *
- op->sqr->desc->houses;
- worth += op->sqr->cost;
- }
- return worth;
-}
diff --git a/games/monop/prop.dat b/games/monop/prop.dat
deleted file mode 100644
index f9fc072d2f91..000000000000
--- a/games/monop/prop.dat
+++ /dev/null
@@ -1,58 +0,0 @@
-/*-
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)prop.dat 5.4 (Berkeley) 5/31/93
- */
-
-/* morg monop square houses mon_desc rent */
-{0, 0, 1, 0, &mon[0], { 2, 10, 30, 90, 160, 250} },
-{0, 0, 3, 0, &mon[0], { 4, 20, 60, 180, 320, 450} },
-{0, 0, 6, 0, &mon[1], { 6, 30, 90, 270, 400, 550} },
-{0, 0, 7, 0, &mon[1], { 6, 30, 90, 270, 400, 550} },
-{0, 0, 9, 0, &mon[1], { 8, 40,100, 300, 450, 600} },
-{0, 0, 11, 0, &mon[2], {10, 50,150, 450, 625, 750} },
-{0, 0, 13, 0, &mon[2], {10, 50,150, 450, 625, 750} },
-{0, 0, 14, 0, &mon[2], {12, 60,180, 500, 700, 900} },
-{0, 0, 16, 0, &mon[3], {14, 70,200, 550, 750, 950} },
-{0, 0, 17, 0, &mon[3], {14, 70,200, 550, 750, 950} },
-{0, 0, 19, 0, &mon[3], {16, 80,220, 600, 800,1000} },
-{0, 0, 21, 0, &mon[4], {18, 90,250, 700, 875,1050} },
-{0, 0, 23, 0, &mon[4], {18, 90,250, 700, 875,1050} },
-{0, 0, 24, 0, &mon[4], {20,100,300, 750, 925,1100} },
-{0, 0, 26, 0, &mon[5], {22,110,330, 800, 975,1150} },
-{0, 0, 27, 0, &mon[5], {22,110,330, 800, 975,1150} },
-{0, 0, 29, 0, &mon[5], {24,120,360, 850,1025,1200} },
-{0, 0, 31, 0, &mon[6], {26,130,390, 900,1100,1275} },
-{0, 0, 32, 0, &mon[6], {26,130,390, 900,1100,1275} },
-{0, 0, 34, 0, &mon[6], {28,150,450,1000,1200,1400} },
-{0, 0, 37, 0, &mon[7], {35,175,500,1100,1300,1500} },
-{0, 0, 39, 0, &mon[7], {50,200,600,1400,1700,2000} }
diff --git a/games/monop/rent.c b/games/monop/rent.c
deleted file mode 100644
index 4954279edc39..000000000000
--- a/games/monop/rent.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)rent.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-/*
- * This routine has the player pay rent
- */
-rent(sqp)
-reg SQUARE *sqp; {
-
- reg int rnt;
- reg PROP *pp;
- PLAY *plp;
-
- plp = &play[sqp->owner];
- printf("Owned by %s\n", plp->name);
- if (sqp->desc->morg) {
- lucky("The thing is mortgaged. ");
- return;
- }
- switch (sqp->type) {
- case PRPTY:
- pp = sqp->desc;
- if (pp->monop)
- if (pp->houses == 0)
- printf("rent is %d\n", rnt=pp->rent[0] * 2);
- else if (pp->houses < 5)
- printf("with %d houses, rent is %d\n",
- pp->houses, rnt=pp->rent[pp->houses]);
- else
- printf("with a hotel, rent is %d\n",
- rnt=pp->rent[pp->houses]);
- else
- printf("rent is %d\n", rnt = pp->rent[0]);
- break;
- case RR:
- rnt = 25;
- rnt <<= (plp->num_rr - 1);
- if (spec)
- rnt <<= 1;
- printf("rent is %d\n", rnt);
- break;
- case UTIL:
- rnt = roll(2, 6);
- if (plp->num_util == 2 || spec) {
- printf("rent is 10 * roll (%d) = %d\n", rnt, rnt * 10);
- rnt *= 10;
- }
- else {
- printf("rent is 4 * roll (%d) = %d\n", rnt, rnt * 4);
- rnt *= 4;
- }
- break;
- }
- cur_p->money -= rnt;
- plp->money += rnt;
-}
diff --git a/games/monop/roll.c b/games/monop/roll.c
deleted file mode 100644
index 633dfea54aeb..000000000000
--- a/games/monop/roll.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)roll.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-/*
- * This routine rolls ndie nside-sided dice.
- */
-
-# define reg register
-
-# if defined(pdp11)
-# define MAXRAND 32767L
-
-roll(ndie, nsides)
-int ndie, nsides; {
-
- reg long tot;
- reg unsigned n, r;
-
- tot = 0;
- n = ndie;
- while (n--)
- tot += rand();
- return (int) ((tot * (long) nsides) / ((long) MAXRAND + 1)) + ndie;
-}
-
-# else
-
-roll(ndie, nsides)
-reg int ndie, nsides; {
-
- reg int tot, r;
- reg double num_sides;
-
- num_sides = nsides;
- tot = 0;
- while (ndie--)
- tot += (r = rand()) * (num_sides / 017777777777) + 1;
- return tot;
-}
-# endif
diff --git a/games/monop/spec.c b/games/monop/spec.c
deleted file mode 100644
index 958ce613331a..000000000000
--- a/games/monop/spec.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-static char *perc[] = {
- "10%", "ten percent", "%", "$200", "200", 0
- };
-
-inc_tax() { /* collect income tax */
-
- reg int worth, com_num;
-
- com_num = getinp("Do you wish to lose 10%% of your total worth or $200? ", perc);
- worth = cur_p->money + prop_worth(cur_p);
- printf("You were worth $%d", worth);
- worth /= 10;
- if (com_num > 2) {
- if (worth < 200)
- printf(". Good try, but not quite.\n");
- else if (worth > 200)
- lucky(".\nGood guess. ");
- cur_p->money -= 200;
- }
- else {
- printf(", so you pay $%d", worth);
- if (worth > 200)
- printf(" OUCH!!!!.\n");
- else if (worth < 200)
- lucky("\nGood guess. ");
- cur_p->money -= worth;
- }
- if (worth == 200)
- lucky("\nIt makes no difference! ");
-}
-goto_jail() { /* move player to jail */
-
- cur_p->loc = JAIL;
-}
-lux_tax() { /* landing on luxury tax */
-
- printf("You lose $75\n");
- cur_p->money -= 75;
-}
-cc() { /* draw community chest card */
-
- get_card(&CC_D);
-}
-chance() { /* draw chance card */
-
- get_card(&CH_D);
-}
diff --git a/games/monop/trade.c b/games/monop/trade.c
deleted file mode 100644
index 4c356a861b71..000000000000
--- a/games/monop/trade.c
+++ /dev/null
@@ -1,306 +0,0 @@
-/*
- * Copyright (c) 1980, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char sccsid[] = "@(#)trade.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-# include "monop.ext"
-
-struct trd_st { /* how much to give to other player */
- int trader; /* trader number */
- int cash; /* amount of cash */
- int gojf; /* # get-out-of-jail-free cards */
- OWN *prop_list; /* property list */
-};
-
-typedef struct trd_st TRADE;
-
-static char *list[MAX_PRP+2];
-
-static int used[MAX_PRP];
-
-static TRADE trades[2];
-
-trade() {
-
- reg int tradee, i;
-
- trading = TRUE;
- for (i = 0; i < 2; i++) {
- trades[i].cash = 0;
- trades[i].gojf = FALSE;
- trades[i].prop_list = NULL;
- }
-over:
- if (num_play == 1) {
- printf("There ain't no-one around to trade WITH!!\n");
- return;
- }
- if (num_play > 2) {
- tradee = getinp("Which player do you wish to trade with? ",
- name_list);
- if (tradee == num_play)
- return;
- if (tradee == player) {
- printf("You can't trade with yourself!\n");
- goto over;
- }
- }
- else
- tradee = 1 - player;
- get_list(0, player);
- get_list(1, tradee);
- if (getyn("Do you wish a summary? ") == 0)
- summate();
- if (getyn("Is the trade ok? ") == 0)
- do_trade();
-}
-/*
- * This routine gets the list of things to be trader for the
- * player, and puts in the structure given.
- */
-get_list(struct_no, play_no)
-int struct_no, play_no; {
-
- reg int sn, pn;
- reg PLAY *pp;
- int numin, prop, num_prp;
- OWN *op;
- TRADE *tp;
-
- for (numin = 0; numin < MAX_PRP; numin++)
- used[numin] = FALSE;
- sn = struct_no, pn = play_no;
- pp = &play[pn];
- tp = &trades[sn];
- tp->trader = pn;
- printf("player %s (%d):\n", pp->name, pn+1);
- if (pp->own_list) {
- numin = set_list(pp->own_list);
- for (num_prp = numin; num_prp; ) {
- prop = getinp("Which property do you wish to trade? ",
- list);
- if (prop == numin)
- break;
- else if (used[prop])
- printf("You've already allocated that.\n");
- else {
- num_prp--;
- used[prop] = TRUE;
- for (op = pp->own_list; prop--; op = op->next)
- continue;
- add_list(pn, &(tp->prop_list), sqnum(op->sqr));
- }
- }
- }
- if (pp->money > 0) {
- printf("You have $%d. ", pp->money);
- tp->cash = get_int("How much are you trading? ");
- }
- if (pp->num_gojf > 0) {
-once_more:
- printf("You have %d get-out-of-jail-free cards. ",pp->num_gojf);
- tp->gojf = get_int("How many are you trading? ");
- if (tp->gojf > pp->num_gojf) {
- printf("You don't have that many. Try again.\n");
- goto once_more;
- }
- }
-}
-/*
- * This routine sets up the list of tradable property.
- */
-set_list(the_list)
-reg OWN *the_list; {
-
- reg int i;
- reg OWN *op;
-
- i = 0;
- for (op = the_list; op; op = op->next)
- if (!used[i])
- list[i++] = op->sqr->name;
- list[i++] = "done";
- list[i--] = 0;
- return i;
-}
-/*
- * This routine summates the trade.
- */
-summate() {
-
- reg bool some;
- reg int i;
- reg TRADE *tp;
- OWN *op;
-
- for (i = 0; i < 2; i++) {
- tp = &trades[i];
- some = FALSE;
- printf("Player %s (%d) gives:\n", play[tp->trader].name,
- tp->trader+1);
- if (tp->cash > 0)
- printf("\t$%d\n", tp->cash), some++;
- if (tp->gojf > 0)
- printf("\t%d get-out-of-jail-free card(s)\n", tp->gojf),
- some++;
- if (tp->prop_list) {
- for (op = tp->prop_list; op; op = op->next)
- putchar('\t'), printsq(sqnum(op->sqr), TRUE);
- some++;
- }
- if (!some)
- printf("\t-- Nothing --\n");
- }
-}
-/*
- * This routine actually executes the trade.
- */
-do_trade() {
-
- move_em(&trades[0], &trades[1]);
- move_em(&trades[1], &trades[0]);
-}
-/*
- * This routine does a switch from one player to another
- */
-move_em(from, to)
-TRADE *from, *to; {
-
- reg PLAY *pl_fr, *pl_to;
- reg OWN *op;
-
- pl_fr = &play[from->trader];
- pl_to = &play[to->trader];
-
- pl_fr->money -= from->cash;
- pl_to->money += from->cash;
- pl_fr->num_gojf -= from->gojf;
- pl_to->num_gojf += from->gojf;
- for (op = from->prop_list; op; op = op->next) {
- add_list(to->trader, &(pl_to->own_list), sqnum(op->sqr));
- op->sqr->owner = to->trader;
- del_list(from->trader, &(pl_fr->own_list), sqnum(op->sqr));
- }
- set_ownlist(to->trader);
-}
-/*
- * This routine lets a player resign
- */
-resign() {
-
- reg int i, new_own;
- reg OWN *op;
- SQUARE *sqp;
-
- if (cur_p->money <= 0) {
- switch (board[cur_p->loc].type) {
- case UTIL:
- case RR:
- case PRPTY:
- new_own = board[cur_p->loc].owner;
- break;
- default: /* Chance, taxes, etc */
- new_own = num_play;
- break;
- }
- if (new_own == num_play)
- printf("You would resign to the bank\n");
- else
- printf("You would resign to %s\n", name_list[new_own]);
- }
- else if (num_play == 1) {
- new_own = num_play;
- printf("You would resign to the bank\n");
- }
- else {
- name_list[num_play] = "bank";
- do {
- new_own = getinp("Who do you wish to resign to? ",
- name_list);
- if (new_own == player)
- printf("You can't resign to yourself!!\n");
- } while (new_own == player);
- name_list[num_play] = "done";
- }
- if (getyn("Do you really want to resign? ", yn) != 0)
- return;
- if (num_play == 1) {
- printf("Then NOBODY wins (not even YOU!)\n");
- exit(0);
- }
- if (new_own < num_play) { /* resign to player */
- printf("resigning to player\n");
- trades[0].trader = new_own;
- trades[0].cash = trades[0].gojf = 0;
- trades[0].prop_list = NULL;
- trades[1].trader = player;
- trades[1].cash = cur_p->money > 0 ? cur_p->money : 0;
- trades[1].gojf = cur_p->num_gojf;
- trades[1].prop_list = cur_p->own_list;
- do_trade();
- }
- else { /* resign to bank */
- printf("resigning to bank\n");
- for (op = cur_p->own_list; op; op = op->next) {
- sqp = op->sqr;
- sqp->owner = -1;
- sqp->desc->morg = FALSE;
- if (sqp->type == PRPTY) {
- isnot_monop(sqp->desc->mon_desc);
- sqp->desc->houses = 0;
- }
- }
- if (cur_p->num_gojf)
- ret_card(cur_p);
- }
- for (i = player; i < num_play; i++) {
- name_list[i] = name_list[i+1];
- if (i + 1 < num_play)
- cpy_st(&play[i], &play[i+1], sizeof (PLAY));
- }
- name_list[num_play--] = 0;
- for (i = 0; i < N_SQRS; i++)
- if (board[i].owner > player)
- --board[i].owner;
- player = --player < 0 ? num_play - 1 : player;
- next_play();
- if (num_play < 2) {
- printf("\nThen %s WINS!!!!!\n", play[0].name);
- printhold(0);
- printf("That's a grand worth of $%d.\n",
- play[0].money+prop_worth(&play[0]));
- exit(0);
- }
-}
diff --git a/games/x11/Makefile b/games/x11/Makefile
deleted file mode 100644
index 38183ecf7e2c..000000000000
--- a/games/x11/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-# @(#)Makefile 8.2 (Berkeley) 3/31/94
-
-SUBDIR= xneko xroach
-
-.include <bsd.subdir.mk>
diff --git a/games/x11/xneko/Makefile b/games/x11/xneko/Makefile
deleted file mode 100644
index 2ca89ba9ff3e..000000000000
--- a/games/x11/xneko/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-PROG= xneko
-MAN6= xneko.6
-DPADD+= ${X11BASE}/lib/libX11.a ${LIBM}
-CFLAGS+= -I${X11BASE}/include
-LDDESTDIR+= -L${X11BASE}/lib
-LDADD+= -lX11 -lm
-
-.include "../../Makefile.inc"
-.include <bsd.prog.mk>
diff --git a/games/x11/xneko/bitmaps/awake.xbm b/games/x11/xneko/bitmaps/awake.xbm
deleted file mode 100644
index 7ad413550c07..000000000000
--- a/games/x11/xneko/bitmaps/awake.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define awake_width 32
-#define awake_height 32
-static char awake_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04,
- 0x40, 0x10, 0x10, 0x02, 0x80, 0x28, 0x28, 0x01, 0x00, 0x49, 0x24, 0x00,
- 0x06, 0x44, 0x44, 0x60, 0x18, 0x84, 0x42, 0x18, 0x60, 0x82, 0x83, 0x06,
- 0x00, 0x02, 0x80, 0x00, 0x00, 0x22, 0x88, 0x00, 0x0f, 0x22, 0x88, 0x78,
- 0x00, 0x22, 0x88, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x3a, 0xb9, 0x00,
- 0x00, 0x04, 0x40, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x70, 0x1c, 0x02,
- 0x00, 0x40, 0x04, 0x05, 0x00, 0x20, 0x88, 0x04, 0x00, 0x10, 0x50, 0x02,
- 0x00, 0x08, 0x20, 0x01, 0x00, 0x0b, 0xa0, 0x01, 0x80, 0x0c, 0x61, 0x02,
- 0x40, 0x18, 0x31, 0x04, 0x40, 0x10, 0x11, 0x04, 0xc0, 0x11, 0x11, 0x07,
- 0x60, 0x90, 0x13, 0x0c, 0xe0, 0xff, 0xfe, 0x0f, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/cursor.xbm b/games/x11/xneko/bitmaps/cursor.xbm
deleted file mode 100644
index 2646ea7aa776..000000000000
--- a/games/x11/xneko/bitmaps/cursor.xbm
+++ /dev/null
@@ -1,8 +0,0 @@
-#define cursor_width 17
-#define cursor_height 12
-#define cursor_x_hot 8
-#define cursor_y_hot 7
-static char cursor_bits[] = {
- 0x20, 0x00, 0x00, 0x90, 0x20, 0x00, 0x40, 0x40, 0x00, 0x0c, 0x40, 0x00,
- 0x14, 0x8f, 0x00, 0x94, 0xb0, 0x00, 0x7c, 0x20, 0x01, 0x0c, 0x4c, 0x01,
- 0x0a, 0x42, 0x01, 0x42, 0x82, 0x00, 0x3b, 0x87, 0x00, 0xff, 0x7f, 0x00};
diff --git a/games/x11/xneko/bitmaps/cursor_mask.xbm b/games/x11/xneko/bitmaps/cursor_mask.xbm
deleted file mode 100644
index 2548715dd010..000000000000
--- a/games/x11/xneko/bitmaps/cursor_mask.xbm
+++ /dev/null
@@ -1,6 +0,0 @@
-#define cursor_mask_width 17
-#define cursor_mask_height 12
-static char cursor_mask_bits[] = {
- 0x20, 0x00, 0x00, 0x90, 0x20, 0x00, 0x40, 0x40, 0x00, 0x0c, 0x40, 0x00,
- 0x1c, 0x8f, 0x00, 0x9c, 0xbf, 0x00, 0xfc, 0x3f, 0x01, 0xfc, 0x7f, 0x01,
- 0xfe, 0x7f, 0x01, 0xfe, 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, 0x7f, 0x00};
diff --git a/games/x11/xneko/bitmaps/down1.xbm b/games/x11/xneko/bitmaps/down1.xbm
deleted file mode 100644
index 3a8218f18b68..000000000000
--- a/games/x11/xneko/bitmaps/down1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define down1_width 32
-#define down1_height 32
-static char down1_bits[] = {
- 0x00, 0x80, 0x01, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00,
- 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00,
- 0x00, 0x78, 0x1e, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x02, 0x40, 0x00,
- 0x00, 0x01, 0x80, 0x00, 0x80, 0x00, 0x00, 0x01, 0x80, 0x10, 0x10, 0x02,
- 0x80, 0x28, 0x28, 0x02, 0x40, 0x48, 0x24, 0x04, 0x40, 0x44, 0x44, 0x04,
- 0x40, 0x84, 0x42, 0x04, 0x40, 0x82, 0x83, 0x04, 0x40, 0x02, 0x80, 0x04,
- 0x60, 0x02, 0x80, 0x0c, 0xc0, 0x02, 0x80, 0x06, 0x20, 0x23, 0x88, 0x09,
- 0xa0, 0x23, 0x88, 0x0b, 0xe0, 0x22, 0x88, 0x0e, 0x80, 0x04, 0x41, 0x02,
- 0x00, 0x0f, 0xe0, 0x01, 0x00, 0x7c, 0x7c, 0x00, 0x00, 0xc0, 0x07, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/down2.xbm b/games/x11/xneko/bitmaps/down2.xbm
deleted file mode 100644
index dcb92e48ecf9..000000000000
--- a/games/x11/xneko/bitmaps/down2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define down2_width 32
-#define down2_height 32
-static char down2_bits[] = {
- 0x00, 0x8c, 0x61, 0x00, 0x00, 0x5a, 0xb2, 0x00, 0x00, 0x52, 0x92, 0x00,
- 0x00, 0x52, 0x92, 0x00, 0x00, 0x61, 0x0a, 0x01, 0x00, 0x61, 0x06, 0x01,
- 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01,
- 0x00, 0x01, 0x00, 0x01, 0x00, 0x02, 0x80, 0x00, 0x00, 0x12, 0x90, 0x00,
- 0x00, 0x29, 0x28, 0x01, 0x00, 0x49, 0x24, 0x01, 0x00, 0x45, 0x44, 0x01,
- 0x00, 0x85, 0x42, 0x01, 0x00, 0x83, 0x83, 0x01, 0x00, 0x03, 0x80, 0x01,
- 0x60, 0x03, 0x80, 0x0d, 0x80, 0x03, 0x80, 0x03, 0x00, 0x23, 0x88, 0x01,
- 0x00, 0x23, 0x88, 0x01, 0x00, 0x22, 0x88, 0x00, 0x00, 0x06, 0xc1, 0x00,
- 0x00, 0x0a, 0xa0, 0x00, 0x00, 0x72, 0x9c, 0x00, 0x00, 0xc2, 0x87, 0x00,
- 0x00, 0x24, 0x48, 0x00, 0x00, 0x24, 0x48, 0x00, 0x00, 0x34, 0x58, 0x00,
- 0x00, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/dtogi1.xbm b/games/x11/xneko/bitmaps/dtogi1.xbm
deleted file mode 100644
index 06cb3356b550..000000000000
--- a/games/x11/xneko/bitmaps/dtogi1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define dtogi1_width 32
-#define dtogi1_height 32
-static char dtogi1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x20, 0x01, 0x00,
- 0x00, 0x18, 0x02, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x40, 0x04, 0x00,
- 0x00, 0x78, 0x3c, 0x00, 0x00, 0x04, 0x40, 0x00, 0x00, 0x02, 0x80, 0x00,
- 0x00, 0x01, 0x00, 0x01, 0x80, 0x00, 0x00, 0x02, 0x80, 0x10, 0x10, 0x02,
- 0x80, 0x28, 0x28, 0x02, 0xc0, 0x48, 0x24, 0x06, 0x30, 0x45, 0x44, 0x19,
- 0x08, 0x84, 0x42, 0x20, 0xf8, 0x83, 0x83, 0x3f, 0x00, 0x02, 0x80, 0x00,
- 0x00, 0x02, 0x80, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x22, 0x88, 0x00,
- 0x00, 0x22, 0x88, 0x00, 0x00, 0x26, 0x88, 0x00, 0x00, 0x06, 0x41, 0x00,
- 0x00, 0x0a, 0x60, 0x00, 0x00, 0x72, 0x5c, 0x00, 0x00, 0xd2, 0x57, 0x00,
- 0x00, 0x52, 0x54, 0x00, 0x00, 0x5a, 0x54, 0x00, 0x00, 0x54, 0x54, 0x00,
- 0x00, 0x54, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/dtogi2.xbm b/games/x11/xneko/bitmaps/dtogi2.xbm
deleted file mode 100644
index 4b9105e8a7ab..000000000000
--- a/games/x11/xneko/bitmaps/dtogi2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define dtogi2_width 32
-#define dtogi2_height 32
-static char dtogi2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x12, 0x00,
- 0x00, 0x00, 0x11, 0x00, 0x00, 0x80, 0x08, 0x00, 0x00, 0x80, 0x04, 0x00,
- 0x00, 0xf0, 0x3c, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x04, 0x80, 0x00,
- 0x00, 0x02, 0x00, 0x01, 0x00, 0x01, 0x00, 0x02, 0x80, 0x10, 0x10, 0x02,
- 0x80, 0x28, 0x28, 0x02, 0xc0, 0x48, 0x24, 0x06, 0x30, 0x45, 0x44, 0x19,
- 0x08, 0x84, 0x42, 0x20, 0xf8, 0x83, 0x83, 0x3f, 0x00, 0x02, 0x80, 0x00,
- 0x00, 0x02, 0x80, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x22, 0x88, 0x00,
- 0x00, 0x22, 0x88, 0x00, 0x00, 0x22, 0xc8, 0x00, 0x00, 0x04, 0xc1, 0x00,
- 0x00, 0x0c, 0xa0, 0x00, 0x00, 0x74, 0x9c, 0x00, 0x00, 0xd4, 0x97, 0x00,
- 0x00, 0x54, 0x94, 0x00, 0x00, 0x54, 0xb4, 0x00, 0x00, 0x54, 0x54, 0x00,
- 0x00, 0x50, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/dwleft1.xbm b/games/x11/xneko/bitmaps/dwleft1.xbm
deleted file mode 100644
index d52954624e47..000000000000
--- a/games/x11/xneko/bitmaps/dwleft1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define dwleft1_width 32
-#define dwleft1_height 32
-static char dwleft1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
- 0x00, 0x00, 0x1c, 0x07, 0x00, 0xc0, 0x07, 0x08, 0x00, 0x20, 0xf0, 0x07,
- 0x00, 0x10, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x03, 0x18, 0x0f, 0x00, 0x06,
- 0x28, 0x0d, 0x00, 0x04, 0x48, 0x09, 0x10, 0x04, 0x88, 0x11, 0x08, 0x04,
- 0x08, 0x20, 0x04, 0x04, 0x08, 0x40, 0x04, 0x04, 0x08, 0x40, 0x04, 0x02,
- 0x24, 0x42, 0x04, 0x02, 0x24, 0x42, 0x04, 0x02, 0x27, 0xf2, 0x08, 0x02,
- 0x04, 0x00, 0x08, 0x02, 0x24, 0x00, 0x08, 0x02, 0x04, 0x00, 0x11, 0x01,
- 0x68, 0x20, 0x91, 0x00, 0xf0, 0x1f, 0x8a, 0x00, 0xc0, 0x1f, 0x4a, 0x00,
- 0x00, 0x3f, 0x4c, 0x00, 0x00, 0xfe, 0x24, 0x00, 0x00, 0x8c, 0x37, 0x00,
- 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/dwleft2.xbm b/games/x11/xneko/bitmaps/dwleft2.xbm
deleted file mode 100644
index 6248e70c747f..000000000000
--- a/games/x11/xneko/bitmaps/dwleft2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define dwleft2_width 32
-#define dwleft2_height 32
-static char dwleft2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x80, 0x3f, 0x00, 0x00, 0xe0, 0x40, 0x3e, 0x00, 0x90, 0x38, 0x41,
- 0x00, 0x20, 0x89, 0x38, 0x00, 0x60, 0x72, 0x04, 0x00, 0x90, 0x1c, 0x04,
- 0x00, 0x08, 0x00, 0x04, 0x80, 0x0d, 0x00, 0x04, 0x86, 0x07, 0x00, 0x04,
- 0xde, 0x0c, 0x00, 0x04, 0xf2, 0x18, 0x00, 0x02, 0xe2, 0x31, 0x00, 0x01,
- 0x86, 0x60, 0x80, 0x00, 0x04, 0x40, 0x60, 0x00, 0x04, 0x80, 0x10, 0x00,
- 0x04, 0x00, 0x08, 0x00, 0x15, 0x71, 0x08, 0x00, 0x16, 0x09, 0x04, 0x00,
- 0x14, 0x81, 0x04, 0x00, 0x04, 0x40, 0x02, 0x00, 0x2c, 0x30, 0x01, 0x00,
- 0x18, 0x8f, 0x00, 0x00, 0xf8, 0x43, 0x00, 0x00, 0x7c, 0x22, 0x00, 0x00,
- 0x3c, 0x22, 0x00, 0x00, 0x3c, 0x12, 0x00, 0x00, 0x18, 0x0e, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/dwright1.xbm b/games/x11/xneko/bitmaps/dwright1.xbm
deleted file mode 100644
index e071a2fb17a2..000000000000
--- a/games/x11/xneko/bitmaps/dwright1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define dwright1_width 32
-#define dwright1_height 32
-static char dwright1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
- 0xe0, 0x38, 0x00, 0x00, 0x10, 0xe0, 0x03, 0x00, 0xe0, 0x0f, 0x04, 0x00,
- 0x80, 0x03, 0x08, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x60, 0x00, 0xf0, 0x18,
- 0x20, 0x00, 0xb0, 0x14, 0x20, 0x08, 0x90, 0x12, 0x20, 0x10, 0x88, 0x11,
- 0x20, 0x20, 0x04, 0x10, 0x20, 0x20, 0x02, 0x10, 0x40, 0x20, 0x02, 0x10,
- 0x40, 0x20, 0x42, 0x24, 0x40, 0x20, 0x42, 0x24, 0x40, 0x10, 0x4f, 0xe4,
- 0x40, 0x10, 0x00, 0x20, 0x40, 0x10, 0x00, 0x24, 0x80, 0x88, 0x00, 0x20,
- 0x00, 0x89, 0x04, 0x16, 0x00, 0x51, 0xf8, 0x0f, 0x00, 0x52, 0xf8, 0x03,
- 0x00, 0x32, 0xfc, 0x00, 0x00, 0x24, 0x7f, 0x00, 0x00, 0xec, 0x31, 0x00,
- 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/dwright2.xbm b/games/x11/xneko/bitmaps/dwright2.xbm
deleted file mode 100644
index 6565caa04cf5..000000000000
--- a/games/x11/xneko/bitmaps/dwright2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define dwright2_width 32
-#define dwright2_height 32
-static char dwright2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0xfc, 0x01, 0x00, 0x7c, 0x02, 0x07, 0x00, 0x82, 0x1c, 0x09, 0x00,
- 0x1c, 0x91, 0x04, 0x00, 0x20, 0x4e, 0x06, 0x00, 0x20, 0x38, 0x09, 0x00,
- 0x20, 0x00, 0x10, 0x00, 0x20, 0x00, 0xb0, 0x01, 0x20, 0x00, 0xe0, 0x61,
- 0x20, 0x00, 0x30, 0x7b, 0x40, 0x00, 0x18, 0x4f, 0x80, 0x00, 0x8c, 0x47,
- 0x00, 0x01, 0x06, 0x61, 0x00, 0x06, 0x02, 0x20, 0x00, 0x08, 0x01, 0x20,
- 0x00, 0x10, 0x00, 0x20, 0x00, 0x10, 0x8e, 0xa8, 0x00, 0x20, 0x90, 0x68,
- 0x00, 0x20, 0x81, 0x28, 0x00, 0x40, 0x02, 0x20, 0x00, 0x80, 0x0c, 0x34,
- 0x00, 0x00, 0xf1, 0x18, 0x00, 0x00, 0xc2, 0x1f, 0x00, 0x00, 0x44, 0x3e,
- 0x00, 0x00, 0x44, 0x3c, 0x00, 0x00, 0x48, 0x3c, 0x00, 0x00, 0x70, 0x18,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/icon.xbm b/games/x11/xneko/bitmaps/icon.xbm
deleted file mode 100644
index f1f6f052b555..000000000000
--- a/games/x11/xneko/bitmaps/icon.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define icon_width 32
-#define icon_height 32
-static char icon_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x06, 0xc0, 0x01, 0x00, 0x07,
- 0x40, 0x03, 0x80, 0x0f, 0x60, 0x06, 0x80, 0x1f, 0xa0, 0x05, 0xc0, 0x1d,
- 0xb0, 0xea, 0xcf, 0x1f, 0x50, 0x3c, 0xf8, 0x3f, 0x58, 0x03, 0xc0, 0x3f,
- 0xc8, 0x01, 0x00, 0x3f, 0x68, 0x00, 0x00, 0x3e, 0x38, 0x00, 0x00, 0x3c,
- 0x08, 0x00, 0x00, 0x38, 0x08, 0x00, 0x00, 0x20, 0x8c, 0x0f, 0xf8, 0x20,
- 0x44, 0x10, 0x04, 0x21, 0x24, 0x28, 0x0a, 0x22, 0x26, 0x20, 0x02, 0x22,
- 0x42, 0x10, 0x04, 0x41, 0x82, 0x0f, 0xf8, 0x40, 0x02, 0x00, 0x00, 0x40,
- 0x02, 0x80, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x63, 0x00, 0x00, 0x80,
- 0x91, 0x00, 0x00, 0xc7, 0x49, 0x00, 0x80, 0xc9, 0xa9, 0x20, 0x82, 0xe2,
- 0xa1, 0xc0, 0x01, 0xa5, 0xa3, 0x00, 0x00, 0xa5, 0x05, 0x00, 0x00, 0x91,
- 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x80};
diff --git a/games/x11/xneko/bitmaps/jare2.xbm b/games/x11/xneko/bitmaps/jare2.xbm
deleted file mode 100644
index 86723f7b7566..000000000000
--- a/games/x11/xneko/bitmaps/jare2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define jare2_width 32
-#define jare2_height 32
-static char jare2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00,
- 0x00, 0xd0, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x02, 0x00,
- 0xe0, 0x10, 0x0c, 0x00, 0x20, 0x37, 0x10, 0x00, 0x20, 0x18, 0x20, 0x00,
- 0x40, 0x00, 0x41, 0x00, 0x40, 0x00, 0x42, 0x00, 0x40, 0x00, 0x50, 0x00,
- 0x40, 0x08, 0x48, 0x00, 0x80, 0x10, 0x41, 0x00, 0x80, 0x00, 0x3c, 0x00,
- 0x00, 0x39, 0x22, 0x00, 0x00, 0x02, 0x44, 0x00, 0x00, 0x7c, 0x7c, 0x00,
- 0x00, 0x40, 0x44, 0x00, 0x00, 0x20, 0x46, 0x00, 0x00, 0x10, 0x40, 0x00,
- 0x00, 0x08, 0x30, 0x00, 0x00, 0x0b, 0xa4, 0x01, 0x80, 0x0c, 0x63, 0x02,
- 0x40, 0x18, 0x01, 0x04, 0x40, 0x10, 0x01, 0x3c, 0xc0, 0x11, 0x05, 0x47,
- 0x60, 0x90, 0x03, 0x3c, 0xe0, 0xff, 0xfe, 0x0f, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/kaki1.xbm b/games/x11/xneko/bitmaps/kaki1.xbm
deleted file mode 100644
index 3f2cbdff1069..000000000000
--- a/games/x11/xneko/bitmaps/kaki1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define kaki1_width 32
-#define kaki1_height 32
-static char kaki1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00,
- 0x00, 0x62, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x02, 0x03, 0x00,
- 0x3c, 0x02, 0x34, 0x00, 0xc4, 0x03, 0x58, 0x00, 0x08, 0x00, 0x58, 0x00,
- 0x08, 0x20, 0x58, 0x00, 0x10, 0x10, 0xd8, 0x00, 0x20, 0x08, 0x18, 0x01,
- 0x20, 0xc8, 0x18, 0x02, 0xe0, 0x21, 0x18, 0x04, 0x20, 0x00, 0x34, 0x08,
- 0xe0, 0x05, 0x24, 0x08, 0xc0, 0x60, 0x38, 0x08, 0x00, 0x1f, 0x10, 0x08,
- 0x00, 0x08, 0x20, 0x08, 0x00, 0x0b, 0x20, 0x08, 0x80, 0x0c, 0x21, 0x0c,
- 0x40, 0x18, 0x31, 0x04, 0x40, 0x10, 0x11, 0x02, 0xc0, 0x11, 0x91, 0x7f,
- 0x60, 0x90, 0xf3, 0x80, 0xe0, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/kaki2.xbm b/games/x11/xneko/bitmaps/kaki2.xbm
deleted file mode 100644
index 88d9540dd7b4..000000000000
--- a/games/x11/xneko/bitmaps/kaki2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define kaki2_width 32
-#define kaki2_height 32
-static char kaki2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00,
- 0x20, 0x90, 0x00, 0x00, 0x50, 0x10, 0x01, 0x00, 0x90, 0x08, 0x02, 0x00,
- 0x10, 0x09, 0x04, 0x00, 0x10, 0x06, 0x08, 0x00, 0x10, 0x00, 0x08, 0x00,
- 0x20, 0x00, 0x10, 0x00, 0x20, 0x80, 0x10, 0x00, 0x20, 0x60, 0x10, 0x00,
- 0x20, 0x10, 0x08, 0x00, 0xe0, 0x81, 0xf9, 0x03, 0x20, 0x60, 0x18, 0x04,
- 0xe0, 0xc5, 0x0f, 0x08, 0xc0, 0xe0, 0x00, 0x08, 0x00, 0x9f, 0x11, 0x08,
- 0x00, 0x08, 0x2e, 0x08, 0x00, 0x0b, 0x20, 0x08, 0x80, 0x0c, 0x21, 0x08,
- 0x40, 0x18, 0x31, 0x04, 0x40, 0x10, 0x11, 0x04, 0xc0, 0x11, 0x91, 0x7f,
- 0x60, 0x90, 0xf3, 0x80, 0xe0, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/left1.xbm b/games/x11/xneko/bitmaps/left1.xbm
deleted file mode 100644
index 706bbff6b0d2..000000000000
--- a/games/x11/xneko/bitmaps/left1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define left1_width 32
-#define left1_height 32
-static char left1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x0e, 0x00, 0x00, 0x80, 0x31, 0x00, 0x00, 0x60, 0xc0, 0x00,
- 0x00, 0x10, 0x00, 0x01, 0x00, 0x08, 0x00, 0x01, 0x0c, 0x04, 0x00, 0x02,
- 0x14, 0x04, 0x00, 0x04, 0x64, 0x02, 0x00, 0x08, 0x88, 0x03, 0x01, 0x12,
- 0x08, 0x84, 0x00, 0x23, 0x08, 0x80, 0x00, 0x45, 0x04, 0x40, 0x00, 0x49,
- 0x12, 0x40, 0x00, 0x92, 0x12, 0x40, 0x00, 0xa4, 0x12, 0x87, 0x00, 0xc2,
- 0xc3, 0x81, 0x00, 0x01, 0x01, 0x40, 0x03, 0x01, 0x02, 0x80, 0x9e, 0x01,
- 0x04, 0x03, 0x91, 0x01, 0xf8, 0x0e, 0xce, 0x03, 0x00, 0x3c, 0xc8, 0x03,
- 0x00, 0xf8, 0x2f, 0x03, 0x00, 0xf0, 0x38, 0x00, 0x00, 0xe0, 0x18, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/left2.xbm b/games/x11/xneko/bitmaps/left2.xbm
deleted file mode 100644
index f0d1aed84136..000000000000
--- a/games/x11/xneko/bitmaps/left2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define left2_width 32
-#define left2_height 32
-static char left2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x20, 0x00, 0x00, 0xe0, 0x60, 0x00, 0x00, 0x90, 0xa0, 0x00, 0x00, 0x88,
- 0x20, 0x01, 0x00, 0x44, 0x20, 0x02, 0x00, 0x22, 0x30, 0x0c, 0x00, 0x11,
- 0x08, 0x10, 0xc0, 0x08, 0x24, 0x30, 0x38, 0x08, 0x24, 0x20, 0x06, 0x08,
- 0x24, 0x40, 0x01, 0x10, 0x02, 0xc0, 0x00, 0x10, 0xc2, 0x03, 0x00, 0x10,
- 0x02, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x10, 0x78, 0x00, 0x00, 0x20,
- 0x80, 0x07, 0x08, 0x20, 0x80, 0x01, 0x30, 0xc0, 0xc0, 0x00, 0xc0, 0x81,
- 0x60, 0x18, 0xf8, 0x9f, 0x30, 0xfc, 0x87, 0xbf, 0x18, 0x3f, 0x00, 0xf8,
- 0xcc, 0x07, 0x00, 0x30, 0x38, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/ltogi1.xbm b/games/x11/xneko/bitmaps/ltogi1.xbm
deleted file mode 100644
index a52961c35ef0..000000000000
--- a/games/x11/xneko/bitmaps/ltogi1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define ltogi1_width 32
-#define ltogi1_height 32
-static char ltogi1_bits[] = {
- 0xc0, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00,
- 0x43, 0x04, 0x00, 0x00, 0x37, 0x18, 0x00, 0x00, 0x0f, 0x20, 0x00, 0x00,
- 0x07, 0x40, 0x00, 0x00, 0x27, 0x40, 0x00, 0x00, 0x27, 0x40, 0x00, 0x00,
- 0x2d, 0x40, 0x00, 0x00, 0x31, 0x40, 0x00, 0x00, 0xc1, 0xa0, 0x0f, 0x00,
- 0x03, 0x00, 0x30, 0x00, 0x0d, 0x00, 0x40, 0x00, 0x38, 0xc0, 0x80, 0x00,
- 0x70, 0x20, 0x00, 0x01, 0x40, 0x10, 0x00, 0x02, 0x40, 0x08, 0x00, 0x02,
- 0x80, 0x09, 0x00, 0x04, 0x00, 0x0f, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x10,
- 0x00, 0x1c, 0x00, 0x20, 0x00, 0x38, 0x03, 0x46, 0x00, 0xfe, 0x01, 0x8d,
- 0x00, 0x8f, 0xe0, 0x70, 0x00, 0x0f, 0x10, 0x00, 0x00, 0xfe, 0x1f, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/ltogi2.xbm b/games/x11/xneko/bitmaps/ltogi2.xbm
deleted file mode 100644
index 11d6368c110b..000000000000
--- a/games/x11/xneko/bitmaps/ltogi2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define ltogi2_width 32
-#define ltogi2_height 32
-static char ltogi2_bits[] = {
- 0xc0, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00,
- 0x40, 0x04, 0x00, 0x00, 0x41, 0x18, 0x00, 0x00, 0x31, 0x20, 0x00, 0x00,
- 0x09, 0x40, 0x00, 0x00, 0x25, 0x40, 0x00, 0x00, 0x25, 0x40, 0x00, 0x00,
- 0x23, 0x40, 0x00, 0x00, 0x83, 0x41, 0x00, 0x00, 0x65, 0xa0, 0x0f, 0x00,
- 0x05, 0x00, 0x30, 0x00, 0xe9, 0x01, 0x40, 0x00, 0x31, 0xc0, 0x80, 0x00,
- 0x0f, 0x20, 0x00, 0x01, 0x01, 0x10, 0x00, 0xc2, 0x7e, 0x08, 0x00, 0xa2,
- 0xfe, 0x09, 0x00, 0x94, 0x0c, 0x0f, 0x00, 0x8c, 0x00, 0x0c, 0x00, 0x40,
- 0x00, 0x1c, 0x00, 0x20, 0x00, 0x38, 0x03, 0x1e, 0x00, 0xfe, 0x01, 0x01,
- 0x00, 0x8f, 0xe0, 0x00, 0x00, 0x0f, 0x10, 0x00, 0x00, 0xfe, 0x1f, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/mati2.xbm b/games/x11/xneko/bitmaps/mati2.xbm
deleted file mode 100644
index 41864ecf2696..000000000000
--- a/games/x11/xneko/bitmaps/mati2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define mati2_width 32
-#define mati2_height 32
-static char mati2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x10, 0x10, 0x00, 0x00, 0x28, 0x28, 0x00, 0x00, 0x48, 0x24, 0x00,
- 0x00, 0x44, 0x44, 0x00, 0x00, 0x84, 0x42, 0x00, 0x00, 0x82, 0x83, 0x00,
- 0x00, 0x02, 0x80, 0x00, 0x00, 0x22, 0x88, 0x00, 0x00, 0x22, 0x88, 0x00,
- 0x00, 0x22, 0x88, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x3a, 0xb9, 0x00,
- 0x00, 0x04, 0x40, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x70, 0x1c, 0x00,
- 0x00, 0x40, 0x04, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x10, 0x10, 0x00,
- 0x00, 0x08, 0x20, 0x00, 0x00, 0x0b, 0xa0, 0x01, 0x80, 0x0c, 0x61, 0x02,
- 0x40, 0x18, 0x31, 0x04, 0x40, 0x10, 0x11, 0x04, 0xc0, 0x11, 0x11, 0x7f,
- 0x60, 0x90, 0x13, 0x8c, 0xe0, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/mati3.xbm b/games/x11/xneko/bitmaps/mati3.xbm
deleted file mode 100644
index 6087cf85829d..000000000000
--- a/games/x11/xneko/bitmaps/mati3.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define mati3_width 32
-#define mati3_height 32
-static char mati3_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x10, 0x10, 0x00, 0x00, 0x28, 0x28, 0x00, 0x00, 0x48, 0x24, 0x00,
- 0x00, 0x44, 0x44, 0x00, 0x00, 0x84, 0x42, 0x00, 0x00, 0x82, 0x83, 0x00,
- 0x00, 0x3a, 0xb8, 0x00, 0x00, 0x42, 0x85, 0x00, 0x00, 0x92, 0x91, 0x00,
- 0x00, 0x4e, 0xe2, 0x00, 0x00, 0x42, 0x82, 0x00, 0x00, 0x42, 0x82, 0x00,
- 0x00, 0x44, 0x42, 0x00, 0x00, 0x88, 0x21, 0x00, 0x00, 0x70, 0x1c, 0x00,
- 0x00, 0x40, 0x04, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x10, 0x10, 0x00,
- 0x00, 0x08, 0x20, 0x00, 0x00, 0x0b, 0xa0, 0x01, 0x80, 0x0c, 0x61, 0x02,
- 0x40, 0x18, 0x31, 0x04, 0x40, 0x10, 0x11, 0x04, 0xc0, 0x11, 0x11, 0x7f,
- 0x60, 0x90, 0x13, 0x8c, 0xe0, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/right1.xbm b/games/x11/xneko/bitmaps/right1.xbm
deleted file mode 100644
index b2538e07c848..000000000000
--- a/games/x11/xneko/bitmaps/right1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define right1_width 32
-#define right1_height 32
-static char right1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x70, 0x00, 0x00, 0x00, 0x8c, 0x01, 0x00, 0x00, 0x03, 0x06, 0x00,
- 0x80, 0x00, 0x08, 0x00, 0x80, 0x00, 0x10, 0x00, 0x40, 0x00, 0x20, 0x30,
- 0x20, 0x00, 0x20, 0x28, 0x10, 0x00, 0x40, 0x26, 0x48, 0x80, 0xc0, 0x11,
- 0xc4, 0x00, 0x21, 0x10, 0xa2, 0x00, 0x01, 0x10, 0x92, 0x00, 0x02, 0x20,
- 0x49, 0x00, 0x02, 0x48, 0x25, 0x00, 0x02, 0x48, 0x43, 0x00, 0xe1, 0x48,
- 0x80, 0x00, 0x91, 0xc3, 0x80, 0xc0, 0x02, 0x80, 0x80, 0x79, 0x01, 0x40,
- 0x80, 0x89, 0xc0, 0x20, 0xc0, 0x73, 0x70, 0x1f, 0xc0, 0x13, 0x3c, 0x00,
- 0xc0, 0xf4, 0x1f, 0x00, 0x00, 0x1c, 0x0f, 0x00, 0x00, 0x18, 0x07, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/right2.xbm b/games/x11/xneko/bitmaps/right2.xbm
deleted file mode 100644
index d8b4dbe74a71..000000000000
--- a/games/x11/xneko/bitmaps/right2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define right2_width 32
-#define right2_height 32
-static char right2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x07, 0x00, 0x00, 0x04, 0x09, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x05,
- 0x22, 0x00, 0x80, 0x04, 0x44, 0x00, 0x40, 0x04, 0x88, 0x00, 0x30, 0x0c,
- 0x10, 0x03, 0x08, 0x10, 0x10, 0x1c, 0x0c, 0x24, 0x10, 0x60, 0x04, 0x24,
- 0x08, 0x80, 0x02, 0x24, 0x08, 0x00, 0x03, 0x40, 0x08, 0x00, 0xc0, 0x43,
- 0x08, 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x1e,
- 0x04, 0x10, 0x80, 0x01, 0x03, 0x0c, 0x80, 0x01, 0x81, 0x03, 0x00, 0x03,
- 0xf9, 0x0f, 0x18, 0x06, 0xfd, 0xf9, 0x3f, 0x0c, 0x1f, 0x00, 0xfc, 0x18,
- 0x0c, 0x00, 0xe0, 0x33, 0x00, 0x00, 0xc0, 0x1c, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/rtogi1.xbm b/games/x11/xneko/bitmaps/rtogi1.xbm
deleted file mode 100644
index 496c0cbb6a8f..000000000000
--- a/games/x11/xneko/bitmaps/rtogi1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define rtogi1_width 32
-#define rtogi1_height 32
-static char rtogi1_bits[] = {
- 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0x40, 0x02,
- 0x00, 0x00, 0x20, 0xc2, 0x00, 0x00, 0x18, 0xec, 0x00, 0x00, 0x04, 0xf0,
- 0x00, 0x00, 0x02, 0xe0, 0x00, 0x00, 0x02, 0xe4, 0x00, 0x00, 0x02, 0xe4,
- 0x00, 0x00, 0x02, 0xb4, 0x00, 0x00, 0x02, 0x8c, 0x00, 0xf0, 0x05, 0x83,
- 0x00, 0x0c, 0x00, 0xc0, 0x00, 0x02, 0x00, 0xb0, 0x00, 0x01, 0x03, 0x1c,
- 0x80, 0x00, 0x04, 0x0e, 0x40, 0x00, 0x08, 0x02, 0x40, 0x00, 0x10, 0x02,
- 0x20, 0x00, 0x90, 0x01, 0x30, 0x00, 0xf0, 0x00, 0x08, 0x00, 0x30, 0x00,
- 0x04, 0x00, 0x38, 0x00, 0x62, 0xc0, 0x1c, 0x00, 0xb1, 0x80, 0x7f, 0x00,
- 0x0e, 0x07, 0xf1, 0x00, 0x00, 0x08, 0xf0, 0x00, 0x00, 0xf8, 0x7f, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/rtogi2.xbm b/games/x11/xneko/bitmaps/rtogi2.xbm
deleted file mode 100644
index 7255c4d8b449..000000000000
--- a/games/x11/xneko/bitmaps/rtogi2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define rtogi2_width 32
-#define rtogi2_height 32
-static char rtogi2_bits[] = {
- 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0x40, 0x02,
- 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x18, 0x82, 0x00, 0x00, 0x04, 0x8c,
- 0x00, 0x00, 0x02, 0x90, 0x00, 0x00, 0x02, 0xa4, 0x00, 0x00, 0x02, 0xa4,
- 0x00, 0x00, 0x02, 0xc4, 0x00, 0x00, 0x82, 0xc1, 0x00, 0xf0, 0x05, 0xa6,
- 0x00, 0x0c, 0x00, 0xa0, 0x00, 0x02, 0x80, 0x97, 0x00, 0x01, 0x03, 0x8c,
- 0x80, 0x00, 0x04, 0xf0, 0x43, 0x00, 0x08, 0x80, 0x45, 0x00, 0x10, 0x7e,
- 0x29, 0x00, 0x90, 0x7f, 0x31, 0x00, 0xf0, 0x30, 0x02, 0x00, 0x30, 0x00,
- 0x04, 0x00, 0x38, 0x00, 0x78, 0xc0, 0x1c, 0x00, 0x80, 0x80, 0x7f, 0x00,
- 0x00, 0x07, 0xf1, 0x00, 0x00, 0x08, 0xf0, 0x00, 0x00, 0xf8, 0x7f, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/sleep1.xbm b/games/x11/xneko/bitmaps/sleep1.xbm
deleted file mode 100644
index 9cda30c31010..000000000000
--- a/games/x11/xneko/bitmaps/sleep1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define sleep1_width 32
-#define sleep1_height 32
-static char sleep1_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xc0, 0x1f, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00,
- 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x1f, 0x00, 0x80, 0x00, 0x08, 0x00,
- 0xc0, 0x1f, 0x04, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0x41, 0x02,
- 0x00, 0x80, 0x22, 0x02, 0x00, 0x40, 0x3e, 0x06, 0x00, 0x38, 0x14, 0x0a,
- 0x00, 0x26, 0x18, 0x14, 0x00, 0x11, 0x00, 0x18, 0x00, 0x11, 0x00, 0x18,
- 0x80, 0x10, 0x00, 0x38, 0x40, 0x10, 0x00, 0x2c, 0x40, 0xa0, 0x01, 0x2b,
- 0x40, 0x20, 0x8e, 0x68, 0x40, 0x20, 0x10, 0x54, 0x40, 0x40, 0x40, 0x5b,
- 0x80, 0x80, 0xff, 0x4c, 0x00, 0x3f, 0xf0, 0x64, 0x00, 0xe0, 0x9f, 0x3f,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/sleep2.xbm b/games/x11/xneko/bitmaps/sleep2.xbm
deleted file mode 100644
index f1a217c6dc11..000000000000
--- a/games/x11/xneko/bitmaps/sleep2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define sleep2_width 32
-#define sleep2_height 32
-static char sleep2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x3f, 0x00, 0x00, 0x00, 0x10, 0x3c, 0x00, 0x00, 0x0c, 0x10, 0x00,
- 0x00, 0x04, 0x88, 0x01, 0x00, 0x3f, 0x7c, 0x01, 0x00, 0x80, 0x60, 0x01,
- 0x00, 0xc0, 0x21, 0x02, 0x00, 0x78, 0x3f, 0x06, 0x00, 0x26, 0x12, 0x0a,
- 0x00, 0x21, 0x0c, 0x14, 0x80, 0x10, 0x00, 0x18, 0x80, 0x10, 0x00, 0x18,
- 0x80, 0x10, 0x00, 0x38, 0x40, 0x10, 0x00, 0x2a, 0x40, 0xa0, 0x03, 0x29,
- 0x40, 0x20, 0x8c, 0x68, 0x40, 0x20, 0x10, 0x54, 0x40, 0x40, 0x40, 0x5b,
- 0x80, 0x80, 0xff, 0x4c, 0x00, 0x3f, 0xf0, 0x64, 0x00, 0xe0, 0x9f, 0x3f,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/space.xbm b/games/x11/xneko/bitmaps/space.xbm
deleted file mode 100644
index 2ebb658f54b2..000000000000
--- a/games/x11/xneko/bitmaps/space.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define space_width 32
-#define space_height 32
-static char space_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/up1.xbm b/games/x11/xneko/bitmaps/up1.xbm
deleted file mode 100644
index 2011ac79b09b..000000000000
--- a/games/x11/xneko/bitmaps/up1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define up1_width 32
-#define up1_height 32
-static char up1_bits[] = {
- 0x00, 0xc0, 0x03, 0x00, 0x00, 0x3e, 0x7c, 0x00, 0x00, 0x08, 0x10, 0x00,
- 0x00, 0x26, 0x64, 0x00, 0x00, 0x22, 0x44, 0x00, 0x00, 0x22, 0x44, 0x00,
- 0x00, 0x01, 0x80, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x01, 0x80, 0x00,
- 0x00, 0x22, 0x42, 0x00, 0x00, 0x1e, 0x7c, 0x00, 0x00, 0x06, 0x60, 0x00,
- 0x80, 0x3f, 0xfc, 0x01, 0xc0, 0x07, 0xe0, 0x02, 0x40, 0x02, 0x40, 0x02,
- 0x40, 0x02, 0x40, 0x02, 0x40, 0x01, 0x80, 0x02, 0x40, 0x00, 0x00, 0x02,
- 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01,
- 0x80, 0x00, 0x00, 0x01, 0x00, 0x01, 0x80, 0x00, 0x00, 0x06, 0x60, 0x00,
- 0x00, 0x78, 0x1e, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00,
- 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x80, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/up2.xbm b/games/x11/xneko/bitmaps/up2.xbm
deleted file mode 100644
index a8619d598fce..000000000000
--- a/games/x11/xneko/bitmaps/up2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define up2_width 32
-#define up2_height 32
-static char up2_bits[] = {
- 0x00, 0xc0, 0x03, 0x00, 0x80, 0x3f, 0xfc, 0x01, 0x40, 0x0b, 0xd0, 0x02,
- 0x40, 0x26, 0x64, 0x02, 0x40, 0x22, 0x44, 0x02, 0x40, 0x22, 0x44, 0x02,
- 0x40, 0x01, 0x80, 0x02, 0x40, 0x1f, 0xf8, 0x02, 0x40, 0x01, 0x80, 0x02,
- 0x40, 0x22, 0x42, 0x02, 0x80, 0x1e, 0x7c, 0x01, 0x80, 0x04, 0x20, 0x01,
- 0x80, 0x38, 0x1c, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x01, 0x80, 0x00,
- 0x00, 0x0d, 0xb0, 0x00, 0x00, 0x83, 0xc1, 0x00, 0x00, 0x41, 0x82, 0x00,
- 0x80, 0x40, 0x02, 0x01, 0x80, 0x40, 0x02, 0x01, 0x80, 0x40, 0x02, 0x01,
- 0x80, 0x40, 0x02, 0x01, 0x80, 0x40, 0x02, 0x01, 0x80, 0x00, 0x00, 0x01,
- 0x80, 0xc0, 0x03, 0x01, 0x00, 0x41, 0x82, 0x00, 0x00, 0x21, 0x84, 0x00,
- 0x00, 0x11, 0x88, 0x00, 0x00, 0x09, 0x90, 0x00, 0x00, 0x06, 0x60, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/upleft1.xbm b/games/x11/xneko/bitmaps/upleft1.xbm
deleted file mode 100644
index 62ae6c7e7bde..000000000000
--- a/games/x11/xneko/bitmaps/upleft1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define upleft1_width 32
-#define upleft1_height 32
-static char upleft1_bits[] = {
- 0x00, 0x00, 0x07, 0x00, 0x80, 0xff, 0x04, 0x00, 0x40, 0x78, 0x04, 0x00,
- 0xe0, 0x25, 0x04, 0x00, 0x36, 0x22, 0x04, 0x00, 0x18, 0x21, 0x04, 0x00,
- 0x10, 0x20, 0x04, 0x00, 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 0x3e, 0x00,
- 0x20, 0x00, 0xc1, 0x01, 0x20, 0x00, 0x00, 0x02, 0xc0, 0x00, 0x00, 0x04,
- 0x00, 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x10,
- 0x00, 0x01, 0x00, 0x20, 0x00, 0xc3, 0x00, 0x20, 0x00, 0x22, 0x00, 0x20,
- 0x00, 0x32, 0x00, 0x20, 0x00, 0x22, 0x00, 0x30, 0x00, 0x24, 0x00, 0x30,
- 0x00, 0x64, 0x00, 0x20, 0x00, 0xd8, 0xc0, 0x64, 0x00, 0xd0, 0xc1, 0x4f,
- 0x00, 0xf0, 0xc3, 0x9b, 0x00, 0x70, 0xf0, 0x93, 0x00, 0x10, 0x1e, 0x60,
- 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/upleft2.xbm b/games/x11/xneko/bitmaps/upleft2.xbm
deleted file mode 100644
index 0f3ddd324e11..000000000000
--- a/games/x11/xneko/bitmaps/upleft2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define upleft2_width 32
-#define upleft2_height 32
-static char upleft2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00,
- 0x80, 0xb0, 0x01, 0x00, 0x40, 0x07, 0x3e, 0x00, 0x60, 0xc0, 0x20, 0x00,
- 0x58, 0xb8, 0x10, 0x00, 0x40, 0x88, 0x10, 0x00, 0x5e, 0x80, 0x08, 0x00,
- 0xf2, 0x80, 0x08, 0x00, 0xc6, 0x00, 0x14, 0x00, 0x8c, 0x03, 0x24, 0x00,
- 0x18, 0x00, 0x42, 0x0e, 0x30, 0x50, 0x81, 0x09, 0x40, 0x00, 0x00, 0x09,
- 0x80, 0x01, 0x80, 0x04, 0x00, 0x02, 0x80, 0x0c, 0x00, 0x04, 0x40, 0x0a,
- 0x00, 0x08, 0x00, 0x32, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x20, 0x40,
- 0x00, 0x10, 0x40, 0x40, 0x00, 0x10, 0x80, 0x40, 0x00, 0x20, 0x80, 0x87,
- 0x00, 0x20, 0x80, 0x88, 0x00, 0x40, 0x80, 0x90, 0x00, 0x80, 0x8f, 0x90,
- 0x00, 0x00, 0x90, 0xa0, 0x00, 0x00, 0x90, 0xc0, 0x00, 0x00, 0x90, 0x00,
- 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x60, 0x00};
diff --git a/games/x11/xneko/bitmaps/upright1.xbm b/games/x11/xneko/bitmaps/upright1.xbm
deleted file mode 100644
index c01d84043f2d..000000000000
--- a/games/x11/xneko/bitmaps/upright1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define upright1_width 32
-#define upright1_height 32
-static char upright1_bits[] = {
- 0x00, 0xe0, 0x00, 0x00, 0x00, 0x20, 0xff, 0x01, 0x00, 0x20, 0x1e, 0x02,
- 0x00, 0x20, 0xa4, 0x07, 0x00, 0x20, 0x44, 0x6c, 0x00, 0x20, 0x84, 0x18,
- 0x00, 0x20, 0x04, 0x08, 0x00, 0x20, 0x00, 0x08, 0x00, 0x7c, 0x00, 0x08,
- 0x80, 0x83, 0x00, 0x04, 0x40, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x03,
- 0x10, 0x00, 0x80, 0x00, 0x10, 0x00, 0x80, 0x00, 0x08, 0x00, 0x80, 0x00,
- 0x04, 0x00, 0x80, 0x00, 0x04, 0x00, 0xc3, 0x00, 0x04, 0x00, 0x44, 0x00,
- 0x04, 0x00, 0x4c, 0x00, 0x0c, 0x00, 0x44, 0x00, 0x0c, 0x00, 0x24, 0x00,
- 0x04, 0x00, 0x26, 0x00, 0x26, 0x03, 0x1b, 0x00, 0xf2, 0x83, 0x0b, 0x00,
- 0xd9, 0xc3, 0x0f, 0x00, 0xc9, 0x0f, 0x0e, 0x00, 0x06, 0x78, 0x08, 0x00,
- 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/upright2.xbm b/games/x11/xneko/bitmaps/upright2.xbm
deleted file mode 100644
index 4c43d25ebcab..000000000000
--- a/games/x11/xneko/bitmaps/upright2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define upright2_width 32
-#define upright2_height 32
-static char upright2_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
- 0x00, 0x80, 0x0d, 0x01, 0x00, 0x7c, 0xe0, 0x02, 0x00, 0x04, 0x03, 0x06,
- 0x00, 0x08, 0x1d, 0x1a, 0x00, 0x08, 0x11, 0x02, 0x00, 0x10, 0x01, 0x7a,
- 0x00, 0x10, 0x01, 0x4f, 0x00, 0x28, 0x00, 0x63, 0x00, 0x24, 0xc0, 0x31,
- 0x70, 0x42, 0x00, 0x18, 0x90, 0x81, 0x0a, 0x0c, 0x90, 0x00, 0x00, 0x02,
- 0x20, 0x01, 0x80, 0x01, 0x30, 0x01, 0x40, 0x00, 0x50, 0x02, 0x20, 0x00,
- 0x4c, 0x00, 0x10, 0x00, 0x02, 0x00, 0x08, 0x00, 0x02, 0x04, 0x08, 0x00,
- 0x02, 0x02, 0x08, 0x00, 0x02, 0x01, 0x08, 0x00, 0xe1, 0x01, 0x04, 0x00,
- 0x11, 0x01, 0x04, 0x00, 0x09, 0x01, 0x02, 0x00, 0x09, 0xf1, 0x01, 0x00,
- 0x05, 0x09, 0x00, 0x00, 0x03, 0x09, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00,
- 0x00, 0x09, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/utogi1.xbm b/games/x11/xneko/bitmaps/utogi1.xbm
deleted file mode 100644
index ace1af91091a..000000000000
--- a/games/x11/xneko/bitmaps/utogi1.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define utogi1_width 32
-#define utogi1_height 32
-static char utogi1_bits[] = {
- 0x00, 0x2a, 0x32, 0x00, 0x00, 0x2a, 0x4a, 0x00, 0x80, 0xeb, 0x4b, 0x00,
- 0x00, 0x3e, 0xfc, 0x00, 0x00, 0x0a, 0x90, 0x00, 0x00, 0x26, 0xa4, 0x00,
- 0x00, 0x23, 0xc4, 0x00, 0x00, 0x23, 0xc4, 0x00, 0x00, 0x01, 0x80, 0x00,
- 0x80, 0x1f, 0xf8, 0x01, 0x80, 0x01, 0x80, 0x00, 0x00, 0x27, 0x62, 0x00,
- 0x00, 0x1d, 0x5c, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x1e, 0x78, 0x00,
- 0x00, 0x02, 0x40, 0x00, 0x00, 0x01, 0x80, 0x00, 0x80, 0x00, 0x00, 0x01,
- 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0xb0, 0x00, 0x00, 0x0d,
- 0xe8, 0x01, 0x80, 0x13, 0x08, 0x03, 0xc0, 0x10, 0x10, 0x00, 0x00, 0x08,
- 0xe0, 0x78, 0x1e, 0x07, 0x00, 0x47, 0xe2, 0x00, 0x00, 0x20, 0x02, 0x00,
- 0x00, 0x10, 0x01, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/bitmaps/utogi2.xbm b/games/x11/xneko/bitmaps/utogi2.xbm
deleted file mode 100644
index 08adba470ea7..000000000000
--- a/games/x11/xneko/bitmaps/utogi2.xbm
+++ /dev/null
@@ -1,14 +0,0 @@
-#define utogi2_width 32
-#define utogi2_height 32
-static char utogi2_bits[] = {
- 0x00, 0x26, 0x2a, 0x00, 0x00, 0x29, 0x2a, 0x00, 0x00, 0xe9, 0xeb, 0x00,
- 0x00, 0x3d, 0x3c, 0x00, 0x00, 0x09, 0x30, 0x00, 0x00, 0x25, 0x44, 0x00,
- 0x00, 0x23, 0x44, 0x00, 0x00, 0x23, 0x44, 0x00, 0x00, 0x01, 0x80, 0x00,
- 0x80, 0x1f, 0xf8, 0x01, 0x80, 0x00, 0x80, 0x00, 0x00, 0x27, 0x62, 0x00,
- 0x00, 0x1d, 0x5c, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x1e, 0x78, 0x00,
- 0x00, 0x02, 0x40, 0x00, 0x00, 0x01, 0x80, 0x00, 0x80, 0x00, 0x00, 0x01,
- 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0xb0, 0x00, 0x00, 0x0d,
- 0xe8, 0x01, 0x80, 0x13, 0x08, 0x03, 0xc0, 0x10, 0x10, 0x00, 0x00, 0x08,
- 0xe0, 0x78, 0x1e, 0x07, 0x00, 0x47, 0xe2, 0x00, 0x00, 0x40, 0x04, 0x00,
- 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x06, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/games/x11/xneko/xneko.6 b/games/x11/xneko/xneko.6
deleted file mode 100644
index d9567b8dc25f..000000000000
--- a/games/x11/xneko/xneko.6
+++ /dev/null
@@ -1,84 +0,0 @@
-.\" Copyright (c) 1991, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" @(#)xneko.6 8.1 (Berkeley) 5/31/93
-.\"
-.TH XNEKO 6 "May 31, 1993"
-.SH NAME
-xneko \- cat-and-mouse chase in an X window
-.SH SYNOPSIS
-xneko [
-.B -display
-.I display
-] [
-.B -geometry
-.I geometry
-] [
-.B -title
-.I title
-] [
-.B -name
-.I name
-] [
-.B -iconic
-] [
-.B -speed
-.I speed
-] [
-.B -time
-.I time
-] [
-.B -help
-]
-.SH DESCRIPTION
-.I Xneko
-displays a window in which a cat chases your ``mouse'' cursor.
-.PP
-All options except the last three above behave in the standard manner
-for X applications (see
-.IR X (1)).
-The
-.B -speed
-option controls the speed of the cat (the default is 16).
-The
-.B -time
-option controls the interval (in microseconds) between updates of the
-.I xneko
-window (the default is 125000).
-The
-.B -help
-option provides a usage message and exits.
-.PP
-The word ``neko'' means ``cat'' in Japanese.
-.SH SEE ALSO
-X(1)
-.SH AUTHOR
-Masayuki Koba, 1990
diff --git a/games/x11/xneko/xneko.c b/games/x11/xneko/xneko.c
deleted file mode 100644
index 7f6615ec1971..000000000000
--- a/games/x11/xneko/xneko.c
+++ /dev/null
@@ -1,1765 +0,0 @@
-/*-
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1991, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static char sccsid[] = "@(#)xneko.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-
-/*--------------------------------------------------------------
- *
- * xneko - X11 G-
- *
- * Original Writer: Masayuki Koba
- * Programmed by Masayuki Koba, 1990
- *
- *--------------------------------------------------------------
- *
- *!!Introduction:
- *
- *!!!!K\@(#)xneko.c 8.1m%0%i%`$O Macintosh $N5/31/939%/%"%/%;%5%j!< "neko" $N
- *!!F0:n$r X11 $G%^%M$?$b$N$G$9!#
- *
- *!!!!Macintosh "neko" $N=(0o$J5/31/936%$%s$K7I0U$rI=$7$D$D!"$3$N
- *!!@(#)xneko.c 8.1m%0%i%`$r3'$5$s$KJ{$2$^$9!#
- *
- *--------------------------------------------------------------
- *
- *!!Special Thanks to
- *
- * toshi-w !D!!Macintosh neko $N>R2p<T
- * shio-m !D!!!VX11 $N neko $,M_$7$$!*!W$H%?%@$r$3$M$??M
- * disco !D!!X11 SCCS/s.xneko.c/%K%+%k!&%"8.1P%$%6!<
- *
- * HOMY !D!!/usr/src/games/xneko/SCCS/s.xneko.c0;XE&<T
- * BNS !D!!J#?t@(#)xneko.c 8.1l!<%sBP1~May 31, 1993C%ADs6!<T
- *
- * "xneko" Presented by Masayuki Koba (masa-k).
- *
- *--------------------------------------------------------------
- *
- *!!Manifest:
- *
- *!!!!K\@(#)xneko.c 8.1m%0%i%`$O Public Domain Software $G$9!#E>:\!&2~NI$O
- *!!<+M3$K9T$C$F2<$5$$!#
- *
- *!!!!$J$*!"86:n<T$O!"K\@(#)xneko.c 8.1m%0%i%`$r;HMQ$9$k$3$H$K$h$C$F@8$8$?
- *!!>c32$dITMx1W$K$D$$$F$$$C$5$$@UG$$r;}$A$^$;$s!#
- *
- *--------------------------------------------------------------
- *
- *!!Bugs:
- *
- *!!!!!J#1!KX11 $N .Xdefaults $N@_Dj$r$^$k$C$-$jL5;k$7$F$$$^$9!#
- *
- *!!!!!J#2!KG-$NF0:n$,;~4V$HF14|$7$F$$$k$?$a!"%^%&%9$N0\F0>pJs
- *!!!!!!!!$r%]!<%j%s%0$7$F$$$^$9!#=>$C$F!"%^%&%9$,A4$/F0:n$7$F
- *!!!!!!!!$$$J$$;~$OL5BL$J%^%&%9:BI8FI$_<h$j$r9T$C$F$7$^$$$^$9!#
- *
- *!!!!!J#3!K%&%#%s8.1&$,%"%$%3%s2=$5$l$F$b!"$7$i$s$W$j$GIA2h$7
- *!!!!!!!!$D$E$1$^$9!#$3$NItJ,$O!"8=:_$N%&%#%s8.1&$N>uBV$r@(#) xneko.c 8.1@(#)'
- *!!!!!!!!70/$7$F!"%"%$%3%s2=$5$l$F$$$k;~$O40A4$K%$s%HBT$A
- *!!!!!!!!$K$J$k$h$&$K=q$-JQ$($J$1$l$P$J$j$^$;$s!# ($=$s$J$3$H!"
- *!!!!!!!!$G$-$k$N$+$J$!!#X10 $G$O$G$-$^$7$?$,!#)
- *
- *!!!!!J#4!K%j%5%$%:8e$N%&%#%s8.1&$,6KC<$K>.$5$/$J$C$?;~$NF0:n
- *!!!!!!!!$OJ]>Z$G$-$^$;$s!#
- *
- *!!!!!J#5!KK\Mh$J$i$P3NJ]$7$?%&%#%s8.1&$d Pixmap $O@(#)xneko.c 8.1m%0%i%`
- *!!!!!!!!=*N;;~$K2rJ|$9$kI,MW$,$"$j$^$9$,!"K\@(#)xneko.c 8.1m%0%i%`$O$=$N
- *!!!!!!!!$X$s$r%5%\$C$F$*$j!"Hs>o$K$*9T57$,0-$/$J$C$F$$$^$9!#
- *!!!!!!!!IaDL$O exit() ;~$K%7%9SCCS/s.xneko.c`$,M>J,$J%j%=!<%9$r2rJ|$7$F
- *!!!!!!!!$/$l$^$9$,!"#O#S$K/usr/src/games/xneko/SCCS/s.xneko.c0$,$"$k>l9g$O xneko $r2?EY$b5/
- *!!!!!!!!F0$9$k$H!"$=$N$&$A%9%o82WNN0h$,ITB-$7$F$7$^$&$3$H$K
- *!!!!!!!!$J$k$+$b$7$l$^$;$s!#
- *
- *!!!!!J#6!K;~4V$KF14|$7$FI,$:IA2h=hM}$r<B9T$9$k$?$a!"0BDj>uBV
- *!!!!!!!!$G$b Idle 90 !A 95% $H$J$j!"%7%9SCCS/s.xneko.c`#C#P#U$r 5 !A 10%
- *!!!!!!!!Dx>CHq$7$^$9!#!Jxtachos $GD4$Y$^$7$?!#!K
- *
- *--------------------------------------------------------------
- *
- *!!System (Machine):
- *
- *!!!!K\@(#)xneko.c 8.1m%0%i%`$NF0:n$r3NG'$7$?%7%9SCCS/s.xneko.c`9=@.$O0J2<$NDL$j!#
- *
- * !&NWS-1750!"NWS-1720 (NEWS)!"NWP-512D
- * !!NEWS-OS 3.2a (UNIX 4.3BSD)!"X11 Release 2
- *
- * !&NWS-1750!"NWS-1720 (NEWS)!"NWP-512D
- * !!NEWS-OS 3.3 (UNIX 4.3BSD)!"X11 Release 3
- *
- * !&Sun 3!"X11 Release 4
- *
- * !&LUNA!"X11 Release 3
- *
- * !&DECstation 3100!"ULTRIX!"X11
- *
- *--------------------------------------------------------------*/
-
-
-#include <X11/Xlib.h>
-#include <X11/Xutil.h>
-#include <X11/keysym.h>
-
-#include <stdio.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <signal.h>
-#include <math.h>
-#include <sys/time.h>
-
-
-#ifndef lint
-static char
- rcsid[] = "$Header: /home/ncvs/src/games/x11/xneko/xneko.c,v 1.2 1995/05/30 03:37:35 rgrimes Exp $";
-static char WriterMessage[] = "xneko: Programmed by Masayuki Koba, 1990";
-#endif
-
-
-/*
- * X11 G- 0C5/31/93^129W18:45:36!%$%k0lMw!'
- *
- * "icon.xbm" !D!!%"%$%3%s
- * "cursor.xbm" !D!!%+!<%=%k
- * "cursor_mask.xbm" !D!!%+!<%=%k!J%^%9%/!K
- *
- * "space.xbm" !D!!%9%Z!<%9
- *
- * "mati2.xbm" !D!!BT$A#2
- * "jare2.xbm" !D!!$8$c$l#2
- * "kaki1.xbm" !D!!A_$-#1
- * "kaki2.xbm" !D!!A_$-#2
- * "mati3.xbm" !D!!BT$A#3!J$"$/$S!K
- * "sleep1.xbm" !D!!?2$k#1
- * "sleep2.xbm" !D!!?2$k#2
- *
- * "awake.xbm" !D!!L\3P$a
- *
- * "up1.xbm" !D!!>e#1
- * "up2.xbm" !D!!>e#2
- * "down1.xbm" !D!!2<#1
- * "down2.xbm" !D!!2<#2
- * "left1.xbm" !D!!:8#1
- * "left2.xbm" !D!!:8#2
- * "right1.xbm" !D!!1&#1
- * "right2.xbm" !D!!1&#2
- * "upleft1.xbm" !D!!:8>e#1
- * "upleft2.xbm" !D!!:8>e#2
- * "upright1.xbm" !D!!1&>e#1
- * "upright2.xbm" !D!!1&>e#2
- * "dwleft1.xbm" !D!!:82<#1
- * "dwleft2.xbm" !D!!:82<#2
- * "dwright1.xbm" !D!!1&2<#1
- * "dwright2.xbm" !D!!1&2<#2
- *
- * "utogi1.xbm" !D!!>eKa$.#1
- * "utogi2.xbm" !D!!>eKa$.#2
- * "dtogi1.xbm" !D!!2<Ka$.#1
- * "dtogi2.xbm" !D!!2<Ka$.#2
- * "ltogi1.xbm" !D!!:8Ka$.#1
- * "ltogi2.xbm" !D!!:8Ka$.#2
- * "rtogi1.xbm" !D!!1&Ka$.#1
- * "rtogi2.xbm" !D!!1&Ka$.#2
- *
- * !!$3$l$i$N18:45:36!%$%k$O bitmap %3%^%s%I$GJT=82DG=$G$9!#
- *
- * (bitmap size "* 32x32 ... Macintosh ICON resource size.)
- *
- */
-
-
-#include "bitmaps/icon.xbm"
-#include "bitmaps/cursor.xbm"
-#include "bitmaps/cursor_mask.xbm"
-
-#include "bitmaps/space.xbm"
-
-#include "bitmaps/mati2.xbm"
-#include "bitmaps/jare2.xbm"
-#include "bitmaps/kaki1.xbm"
-#include "bitmaps/kaki2.xbm"
-#include "bitmaps/mati3.xbm"
-#include "bitmaps/sleep1.xbm"
-#include "bitmaps/sleep2.xbm"
-
-#include "bitmaps/awake.xbm"
-
-#include "bitmaps/up1.xbm"
-#include "bitmaps/up2.xbm"
-#include "bitmaps/down1.xbm"
-#include "bitmaps/down2.xbm"
-#include "bitmaps/left1.xbm"
-#include "bitmaps/left2.xbm"
-#include "bitmaps/right1.xbm"
-#include "bitmaps/right2.xbm"
-#include "bitmaps/upright1.xbm"
-#include "bitmaps/upright2.xbm"
-#include "bitmaps/upleft1.xbm"
-#include "bitmaps/upleft2.xbm"
-#include "bitmaps/dwleft1.xbm"
-#include "bitmaps/dwleft2.xbm"
-#include "bitmaps/dwright1.xbm"
-#include "bitmaps/dwright2.xbm"
-
-#include "bitmaps/utogi1.xbm"
-#include "bitmaps/utogi2.xbm"
-#include "bitmaps/dtogi1.xbm"
-#include "bitmaps/dtogi2.xbm"
-#include "bitmaps/ltogi1.xbm"
-#include "bitmaps/ltogi2.xbm"
-#include "bitmaps/rtogi1.xbm"
-#include "bitmaps/rtogi2.xbm"
-
-
-/*
- * Dj?tDj5A
- */
-
-#define BITMAP_WIDTH 32 /* #1%-%c%i%/%?$NI} (18:45:53/%;%k) */
-#define BITMAP_HEIGHT 32 /* #1%-%c%i%/%?$N9b$5 (18:45:53/%;%k) */
-
-#define WINDOW_WIDTH 320 /* %&%#%s8.1&$NI} (18:45:53/%;%k) */
-#define WINDOW_HEIGHT 256 /* %&%#%s8.1&$N9b$5 (18:45:53/%;%k) */
-
-#define DEFAULT_BORDER 2 /* %\!<%@!<%5%$%: */
-
-#define DEFAULT_WIN_X 1 /* %&%#%s8.1&@8@.#X:BI8 */
-#define DEFAULT_WIN_Y 1 /* %&%#%s8.1&@8@.#Y:BI8 */
-
-#define AVAIL_KEYBUF 255
-
-#define EVENT_MASK1 ( KeyPressMask | StructureNotifyMask )
-
-#define EVENT_MASK2 ( KeyPressMask | \
- ExposureMask | \
- StructureNotifyMask )
-
-#define MAX_TICK 9999 /* Odd Only! */
-
-#define INTERVAL 125000L /* %$%s%?!</usr/src/games/xneko/SCCS/s.xneko.ck%?%$%` */
-
-#define NEKO_SPEED 16
-
-#define IDLE_SPACE 6
-
-#define NORMAL_STATE 1
-#define DEBUG_LIST 2
-#define DEBUG_MOVE 3
-
-/* G-$N>uBVDj?t */
-
-#define NEKO_STOP 0 /* N)$A;_$^$C$? */
-#define NEKO_JARE 1 /* 4i$r@v$C$F$$$k */
-#define NEKO_KAKI 2 /* F,$rA_$$$F$$$k */
-#define NEKO_AKUBI 3 /* $"$/$S$r$7$F$$$k */
-#define NEKO_SLEEP 4 /* ?2$F$7$^$C$? */
-#define NEKO_AWAKE 5 /* L\$,3P$a$? */
-#define NEKO_U_MOVE 6 /* >e$K0\F0Cf */
-#define NEKO_D_MOVE 7 /* 2<$K0\F0Cf */
-#define NEKO_L_MOVE 8 /* :8$K0\F0Cf */
-#define NEKO_R_MOVE 9 /* 1&$K0\F0Cf */
-#define NEKO_UL_MOVE 10 /* :8>e$K0\F0Cf */
-#define NEKO_UR_MOVE 11 /* 1&>e$K0\F0Cf */
-#define NEKO_DL_MOVE 12 /* :82<$K0\F0Cf */
-#define NEKO_DR_MOVE 13 /* 1&2<$K0\F0Cf */
-#define NEKO_U_TOGI 14 /* >e$NJI$r0z$CA_$$$F$$$k */
-#define NEKO_D_TOGI 15 /* 2<$NJI$r0z$CA_$$$F$$$k */
-#define NEKO_L_TOGI 16 /* :8$NJI$r0z$CA_$$$F$$$k */
-#define NEKO_R_TOGI 17 /* 1&$NJI$r0z$CA_$$$F$$$k */
-
-/* G-$N%"%K%a!<%7%g%s7+$jJV$72s?t */
-
-#define NEKO_STOP_TIME 4
-#define NEKO_JARE_TIME 10
-#define NEKO_KAKI_TIME 4
-#define NEKO_AKUBI_TIME 3
-#define NEKO_AWAKE_TIME 3
-#define NEKO_TOGI_TIME 10
-
-#define PI_PER8 ((double)3.1415926535/(double)8)
-
-#define DIRNAMELEN 255
-
-
-/*
- * %0%m!</usr/src/games/xneko/SCCS/s.xneko.ckJQ?t
- */
-
-static char *ProgramName; /* %3%^%s%IL>>N */
-
-Display *theDisplay;
-int theScreen;
-unsigned int theDepth;
-unsigned long theBlackPixel;
-unsigned long theWhitePixel;
-Window theWindow;
-Cursor theCursor;
-
-static unsigned int WindowWidth;
-static unsigned int WindowHeight;
-
-static int WindowPointX;
-static int WindowPointY;
-
-static unsigned int BorderWidth = DEFAULT_BORDER;
-
-long IntervalTime = INTERVAL;
-
-int EventState; /* %$s%H=hM}MQ >uBVJQ?t */
-
-int NekoTickCount; /* G-F0:n%+%&%s%? */
-int NekoStateCount; /* G-F10l>uBV%+%&%s%? */
-int NekoState; /* G-$N>uBV */
-
-int MouseX; /* %^%&%9#X:BI8 */
-int MouseY; /* %^%&%9#Y:BI8 */
-
-int PrevMouseX = 0; /* D>A0$N%^%&%9#X:BI8 */
-int PrevMouseY = 0; /* D>A0$N%^%&%9#Y:BI8 */
-
-int NekoX; /* G-#X:BI8 */
-int NekoY; /* G-#Y:BI8 */
-
-int NekoMoveDx; /* G-0\F05wN%#X */
-int NekoMoveDy; /* G-0\F05wN%#Y */
-
-int NekoLastX; /* G-:G=*IA2h#X:BI8 */
-int NekoLastY; /* G-:G=*IA2h#Y:BI8 */
-GC NekoLastGC; /* G-:G=*IA2h GC */
-
-double NekoSpeed = (double)NEKO_SPEED;
-
-double SinPiPer8Times3; /* sin( #3&P!?#8 ) */
-double SinPiPer8; /* sin( &P!?#8 ) */
-
-Pixmap SpaceXbm;
-
-Pixmap Mati2Xbm;
-Pixmap Jare2Xbm;
-Pixmap Kaki1Xbm;
-Pixmap Kaki2Xbm;
-Pixmap Mati3Xbm;
-Pixmap Sleep1Xbm;
-Pixmap Sleep2Xbm;
-
-Pixmap AwakeXbm;
-
-Pixmap Up1Xbm;
-Pixmap Up2Xbm;
-Pixmap Down1Xbm;
-Pixmap Down2Xbm;
-Pixmap Left1Xbm;
-Pixmap Left2Xbm;
-Pixmap Right1Xbm;
-Pixmap Right2Xbm;
-Pixmap UpLeft1Xbm;
-Pixmap UpLeft2Xbm;
-Pixmap UpRight1Xbm;
-Pixmap UpRight2Xbm;
-Pixmap DownLeft1Xbm;
-Pixmap DownLeft2Xbm;
-Pixmap DownRight1Xbm;
-Pixmap DownRight2Xbm;
-
-Pixmap UpTogi1Xbm;
-Pixmap UpTogi2Xbm;
-Pixmap DownTogi1Xbm;
-Pixmap DownTogi2Xbm;
-Pixmap LeftTogi1Xbm;
-Pixmap LeftTogi2Xbm;
-Pixmap RightTogi1Xbm;
-Pixmap RightTogi2Xbm;
-
-GC SpaceGC;
-
-GC Mati2GC;
-GC Jare2GC;
-GC Kaki1GC;
-GC Kaki2GC;
-GC Mati3GC;
-GC Sleep1GC;
-GC Sleep2GC;
-
-GC AwakeGC;
-
-GC Up1GC;
-GC Up2GC;
-GC Down1GC;
-GC Down2GC;
-GC Left1GC;
-GC Left2GC;
-GC Right1GC;
-GC Right2GC;
-GC UpLeft1GC;
-GC UpLeft2GC;
-GC UpRight1GC;
-GC UpRight2GC;
-GC DownLeft1GC;
-GC DownLeft2GC;
-GC DownRight1GC;
-GC DownRight2GC;
-
-GC UpTogi1GC;
-GC UpTogi2GC;
-GC DownTogi1GC;
-GC DownTogi2GC;
-GC LeftTogi1GC;
-GC LeftTogi2GC;
-GC RightTogi1GC;
-GC RightTogi2GC;
-
-typedef struct {
- GC *GCCreatePtr;
- Pixmap *BitmapCreatePtr;
- char *PixelPattern;
- unsigned int PixelWidth;
- unsigned int PixelHeight;
-} BitmapGCData;
-
-BitmapGCData BitmapGCDataTable[] =
-{
- { &SpaceGC, &SpaceXbm, space_bits, space_width, space_height },
- { &Mati2GC, &Mati2Xbm, mati2_bits, mati2_width, mati2_height },
- { &Jare2GC, &Jare2Xbm, jare2_bits, jare2_width, jare2_height },
- { &Kaki1GC, &Kaki1Xbm, kaki1_bits, kaki1_width, kaki1_height },
- { &Kaki2GC, &Kaki2Xbm, kaki2_bits, kaki2_width, kaki2_height },
- { &Mati3GC, &Mati3Xbm, mati3_bits, mati3_width, mati3_height },
- { &Sleep1GC, &Sleep1Xbm, sleep1_bits, sleep1_width, sleep1_height },
- { &Sleep2GC, &Sleep2Xbm, sleep2_bits, sleep2_width, sleep2_height },
- { &AwakeGC, &AwakeXbm, awake_bits, awake_width, awake_height },
- { &Up1GC, &Up1Xbm, up1_bits, up1_width, up1_height },
- { &Up2GC, &Up2Xbm, up2_bits, up2_width, up2_height },
- { &Down1GC, &Down1Xbm, down1_bits, down1_width, down1_height },
- { &Down2GC, &Down2Xbm, down2_bits, down2_width, down2_height },
- { &Left1GC, &Left1Xbm, left1_bits, left1_width, left1_height },
- { &Left2GC, &Left2Xbm, left2_bits, left2_width, left2_height },
- { &Right1GC, &Right1Xbm, right1_bits, right1_width, right1_height },
- { &Right2GC, &Right2Xbm, right2_bits, right2_width, right2_height },
- { &UpLeft1GC, &UpLeft1Xbm, upleft1_bits, upleft1_width, upleft1_height },
- { &UpLeft2GC, &UpLeft2Xbm, upleft2_bits, upleft2_width, upleft2_height },
- { &UpRight1GC,
- &UpRight1Xbm, upright1_bits, upright1_width, upright1_height },
- { &UpRight2GC,
- &UpRight2Xbm, upright2_bits, upright2_width, upright2_height },
- { &DownLeft1GC,
- &DownLeft1Xbm, dwleft1_bits, dwleft1_width, dwleft1_height },
- { &DownLeft2GC,
- &DownLeft2Xbm, dwleft2_bits, dwleft2_width, dwleft2_height },
- { &DownRight1GC,
- &DownRight1Xbm, dwright1_bits, dwright1_width, dwright1_height },
- { &DownRight2GC,
- &DownRight2Xbm, dwright2_bits, dwright2_width, dwright2_height },
- { &UpTogi1GC, &UpTogi1Xbm, utogi1_bits, utogi1_width, utogi1_height },
- { &UpTogi2GC, &UpTogi2Xbm, utogi2_bits, utogi2_width, utogi2_height },
- { &DownTogi1GC, &DownTogi1Xbm, dtogi1_bits, dtogi1_width, dtogi1_height },
- { &DownTogi2GC, &DownTogi2Xbm, dtogi2_bits, dtogi2_width, dtogi2_height },
- { &LeftTogi1GC, &LeftTogi1Xbm, ltogi1_bits, ltogi1_width, ltogi1_height },
- { &LeftTogi2GC, &LeftTogi2Xbm, ltogi2_bits, ltogi2_width, ltogi2_height },
- { &RightTogi1GC,
- &RightTogi1Xbm, rtogi1_bits, rtogi1_width, rtogi1_height },
- { &RightTogi2GC,
- &RightTogi2Xbm, rtogi2_bits, rtogi2_width, rtogi2_height },
- { NULL, NULL, NULL, NULL, NULL }
-};
-
-typedef struct {
- GC *TickEvenGCPtr;
- GC *TickOddGCPtr;
-} Animation;
-
-Animation AnimationPattern[] =
-{
- { &Mati2GC, &Mati2GC }, /* NekoState == NEKO_STOP */
- { &Jare2GC, &Mati2GC }, /* NekoState == NEKO_JARE */
- { &Kaki1GC, &Kaki2GC }, /* NekoState == NEKO_KAKI */
- { &Mati3GC, &Mati3GC }, /* NekoState == NEKO_AKUBI */
- { &Sleep1GC, &Sleep2GC }, /* NekoState == NEKO_SLEEP */
- { &AwakeGC, &AwakeGC }, /* NekoState == NEKO_AWAKE */
- { &Up1GC, &Up2GC } , /* NekoState == NEKO_U_MOVE */
- { &Down1GC, &Down2GC }, /* NekoState == NEKO_D_MOVE */
- { &Left1GC, &Left2GC }, /* NekoState == NEKO_L_MOVE */
- { &Right1GC, &Right2GC }, /* NekoState == NEKO_R_MOVE */
- { &UpLeft1GC, &UpLeft2GC }, /* NekoState == NEKO_UL_MOVE */
- { &UpRight1GC, &UpRight2GC }, /* NekoState == NEKO_UR_MOVE */
- { &DownLeft1GC, &DownLeft2GC }, /* NekoState == NEKO_DL_MOVE */
- { &DownRight1GC, &DownRight2GC }, /* NekoState == NEKO_DR_MOVE */
- { &UpTogi1GC, &UpTogi2GC }, /* NekoState == NEKO_U_TOGI */
- { &DownTogi1GC, &DownTogi2GC }, /* NekoState == NEKO_D_TOGI */
- { &LeftTogi1GC, &LeftTogi2GC }, /* NekoState == NEKO_L_TOGI */
- { &RightTogi1GC, &RightTogi2GC }, /* NekoState == NEKO_R_TOGI */
-};
-
-
-/*--------------------------------------------------------------
- *
- * 0C5/31/93^504W%G!<%?!&GC =i4|2=
- *
- *--------------------------------------------------------------*/
-
-void
-InitBitmapAndGCs()
-{
- BitmapGCData *BitmapGCDataTablePtr;
- XGCValues theGCValues;
-
- theGCValues.function = GXcopy;
- theGCValues.foreground = BlackPixel( theDisplay, theScreen );
- theGCValues.background = WhitePixel( theDisplay, theScreen );
- theGCValues.fill_style = FillTiled;
-
- for ( BitmapGCDataTablePtr = BitmapGCDataTable;
- BitmapGCDataTablePtr->GCCreatePtr != NULL;
- BitmapGCDataTablePtr++ ) {
-
- *(BitmapGCDataTablePtr->BitmapCreatePtr)
- = XCreatePixmapFromBitmapData(
- theDisplay,
- RootWindow( theDisplay, theScreen ),
- BitmapGCDataTablePtr->PixelPattern,
- BitmapGCDataTablePtr->PixelWidth,
- BitmapGCDataTablePtr->PixelHeight,
- BlackPixel( theDisplay, theScreen ),
- WhitePixel( theDisplay, theScreen ),
- DefaultDepth( theDisplay, theScreen ) );
-
- theGCValues.tile = *(BitmapGCDataTablePtr->BitmapCreatePtr);
-
- *(BitmapGCDataTablePtr->GCCreatePtr)
- = XCreateGC( theDisplay, theWindow,
- GCFunction | GCForeground | GCBackground |
- GCTile | GCFillStyle,
- &theGCValues );
- }
-
- XFlush( theDisplay );
-}
-
-
-/*--------------------------------------------------------------
- *
- * %9%/%j!<%s4D6-=i4|2=
- *
- *--------------------------------------------------------------*/
-
-void
-InitScreen( DisplayName, theGeometry, TitleName, iconicState )
- char *DisplayName;
- char *theGeometry;
- char *TitleName;
- Bool iconicState;
-{
- int GeometryStatus;
- XSetWindowAttributes theWindowAttributes;
- XSizeHints theSizeHints;
- unsigned long theWindowMask;
- Pixmap theIconPixmap;
- Pixmap theCursorSource;
- Pixmap theCursorMask;
- XWMHints theWMHints;
- Window theRoot;
- Colormap theColormap;
- XColor theWhiteColor, theBlackColor, theExactColor;
-
- if ( ( theDisplay = XOpenDisplay( DisplayName ) ) == NULL ) {
- fprintf( stderr, "%s: Can't open display", ProgramName );
- if ( DisplayName != NULL ) {
- fprintf( stderr, " %s.\n", DisplayName );
- } else {
- fprintf( stderr, ".\n" );
- }
- exit( 1 );
- }
-
- theScreen = DefaultScreen( theDisplay );
- theDepth = DefaultDepth( theDisplay, theScreen );
-
- theBlackPixel = BlackPixel( theDisplay, theScreen );
- theWhitePixel = WhitePixel( theDisplay, theScreen );
-
- GeometryStatus = XParseGeometry( theGeometry,
- &WindowPointX, &WindowPointY,
- &WindowWidth, &WindowHeight );
-
- if ( !( GeometryStatus & XValue ) ) {
- WindowPointX = DEFAULT_WIN_X;
- }
- if ( !( GeometryStatus & YValue ) ) {
- WindowPointY = DEFAULT_WIN_Y;
- }
- if ( !( GeometryStatus & WidthValue ) ) {
- WindowWidth = WINDOW_WIDTH;
- }
- if ( !( GeometryStatus & HeightValue ) ) {
- WindowHeight = WINDOW_HEIGHT;
- }
-
- theCursorSource
- = XCreateBitmapFromData( theDisplay,
- RootWindow( theDisplay, theScreen ),
- cursor_bits,
- cursor_width,
- cursor_height );
-
- theCursorMask
- = XCreateBitmapFromData( theDisplay,
- RootWindow( theDisplay, theScreen ),
- cursor_mask_bits,
- cursor_mask_width,
- cursor_mask_height );
-
- theColormap = DefaultColormap( theDisplay, theScreen );
-
- if ( !XAllocNamedColor( theDisplay, theColormap,
- "white", &theWhiteColor, &theExactColor ) ) {
- fprintf( stderr,
- "%s: Can't XAllocNamedColor( \"white\" ).\n", ProgramName );
- exit( 1 );
- }
-
- if ( !XAllocNamedColor( theDisplay, theColormap,
- "black", &theBlackColor, &theExactColor ) ) {
- fprintf( stderr,
- "%s: Can't XAllocNamedColor( \"black\" ).\n", ProgramName );
- exit( 1 );
- }
-
- theCursor = XCreatePixmapCursor( theDisplay,
- theCursorSource, theCursorMask,
- &theBlackColor, &theWhiteColor,
- cursor_x_hot, cursor_y_hot );
-
- theWindowAttributes.border_pixel = theBlackPixel;
- theWindowAttributes.background_pixel = theWhitePixel;
- theWindowAttributes.cursor = theCursor;
- theWindowAttributes.override_redirect = False;
-
- theWindowMask = CWBackPixel |
- CWBorderPixel |
- CWCursor |
- CWOverrideRedirect;
-
- theWindow = XCreateWindow( theDisplay,
- RootWindow( theDisplay, theScreen ),
- WindowPointX, WindowPointY,
- WindowWidth, WindowHeight,
- BorderWidth,
- theDepth,
- InputOutput,
- CopyFromParent,
- theWindowMask,
- &theWindowAttributes );
-
- theIconPixmap = XCreateBitmapFromData( theDisplay, theWindow,
- icon_bits,
- icon_width,
- icon_height );
-
- theWMHints.icon_pixmap = theIconPixmap;
- if ( iconicState ) {
- theWMHints.initial_state = IconicState;
- } else {
- theWMHints.initial_state = NormalState;
- }
- theWMHints.flags = IconPixmapHint | StateHint;
-
- XSetWMHints( theDisplay, theWindow, &theWMHints );
-
- theSizeHints.flags = PPosition | PSize;
- theSizeHints.x = WindowPointX;
- theSizeHints.y = WindowPointY;
- theSizeHints.width = WindowWidth;
- theSizeHints.height = WindowHeight;
-
- XSetNormalHints( theDisplay, theWindow, &theSizeHints );
-
- if ( strlen( TitleName ) >= 1 ) {
- XStoreName( theDisplay, theWindow, TitleName );
- XSetIconName( theDisplay, theWindow, TitleName );
- } else {
- XStoreName( theDisplay, theWindow, ProgramName );
- XSetIconName( theDisplay, theWindow, ProgramName );
- }
-
- XMapWindow( theDisplay, theWindow );
-
- XFlush( theDisplay );
-
- XGetGeometry( theDisplay, theWindow,
- &theRoot,
- &WindowPointX, &WindowPointY,
- &WindowWidth, &WindowHeight,
- &BorderWidth, &theDepth );
-
- InitBitmapAndGCs();
-
- XSelectInput( theDisplay, theWindow, EVENT_MASK1 );
-
- XFlush( theDisplay );
-}
-
-
-/*--------------------------------------------------------------
- *
- * %$%s%?!</usr/src/games/xneko/SCCS/s.xneko.ck
- *
- * !!$3$N4X?t$r8F$V$H!"$"$k0lDj$N;~4VJV$C$F$3$J$/$J$k!#G-
- * $NF0:n%?%$%_%s%0D4@0$KMxMQ$9$k$3$H!#
- *
- *--------------------------------------------------------------*/
-
-void
-Interval()
-{
- pause();
-}
-
-
-/*--------------------------------------------------------------
- *
- * SCCS/s.xneko.c#728/%+%&%s%H=hM}
- *
- *--------------------------------------------------------------*/
-
-void
-TickCount()
-{
- if ( ++NekoTickCount >= MAX_TICK ) {
- NekoTickCount = 0;
- }
-
- if ( NekoTickCount % 2 == 0 ) {
- if ( NekoStateCount < MAX_TICK ) {
- NekoStateCount++;
- }
- }
-}
-
-
-/*--------------------------------------------------------------
- *
- * G->uBV@_Dj
- *
- *--------------------------------------------------------------*/
-
-void
-SetNekoState( SetValue )
- int SetValue;
-{
- NekoTickCount = 0;
- NekoStateCount = 0;
-
- NekoState = SetValue;
-
-#ifdef DEBUG
- switch ( NekoState ) {
- case NEKO_STOP:
- case NEKO_JARE:
- case NEKO_KAKI:
- case NEKO_AKUBI:
- case NEKO_SLEEP:
- case NEKO_U_TOGI:
- case NEKO_D_TOGI:
- case NEKO_L_TOGI:
- case NEKO_R_TOGI:
- NekoMoveDx = NekoMoveDy = 0;
- break;
- default:
- break;
- }
-#endif
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-IA2h=hM}
- *
- *--------------------------------------------------------------*/
-
-void
-DrawNeko( x, y, DrawGC )
- int x;
- int y;
- GC DrawGC;
-{
- if ( ( x != NekoLastX || y != NekoLastY )
- && ( EventState != DEBUG_LIST ) ) {
- XFillRectangle( theDisplay, theWindow, SpaceGC,
- NekoLastX, NekoLastY,
- BITMAP_WIDTH, BITMAP_HEIGHT );
- }
-
- XSetTSOrigin( theDisplay, DrawGC, x, y );
-
- XFillRectangle( theDisplay, theWindow, DrawGC,
- x, y, BITMAP_WIDTH, BITMAP_HEIGHT );
-
- XFlush( theDisplay );
-
- NekoLastX = x;
- NekoLastY = y;
-
- NekoLastGC = DrawGC;
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-:FIA2h=hM}
- *
- *--------------------------------------------------------------*/
-
-void
-RedrawNeko()
-{
- XFillRectangle( theDisplay, theWindow, NekoLastGC,
- NekoLastX, NekoLastY,
- BITMAP_WIDTH, BITMAP_HEIGHT );
-
- XFlush( theDisplay );
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-0\F0J}K!7hDj
- *
- *--------------------------------------------------------------*/
-
-void
-NekoDirection()
-{
- int NewState;
- double LargeX, LargeY;
- double Length;
- double SinTheta;
-
- if ( NekoMoveDx == 0 && NekoMoveDy == 0 ) {
- NewState = NEKO_STOP;
- } else {
- LargeX = (double)NekoMoveDx;
- LargeY = (double)(-NekoMoveDy);
- Length = sqrt( LargeX * LargeX + LargeY * LargeY );
- SinTheta = LargeY / Length;
-
- if ( NekoMoveDx > 0 ) {
- if ( SinTheta > SinPiPer8Times3 ) {
- NewState = NEKO_U_MOVE;
- } else if ( ( SinTheta <= SinPiPer8Times3 )
- && ( SinTheta > SinPiPer8 ) ) {
- NewState = NEKO_UR_MOVE;
- } else if ( ( SinTheta <= SinPiPer8 )
- && ( SinTheta > -( SinPiPer8 ) ) ) {
- NewState = NEKO_R_MOVE;
- } else if ( ( SinTheta <= -( SinPiPer8 ) )
- && ( SinTheta > -( SinPiPer8Times3 ) ) ) {
- NewState = NEKO_DR_MOVE;
- } else {
- NewState = NEKO_D_MOVE;
- }
- } else {
- if ( SinTheta > SinPiPer8Times3 ) {
- NewState = NEKO_U_MOVE;
- } else if ( ( SinTheta <= SinPiPer8Times3 )
- && ( SinTheta > SinPiPer8 ) ) {
- NewState = NEKO_UL_MOVE;
- } else if ( ( SinTheta <= SinPiPer8 )
- && ( SinTheta > -( SinPiPer8 ) ) ) {
- NewState = NEKO_L_MOVE;
- } else if ( ( SinTheta <= -( SinPiPer8 ) )
- && ( SinTheta > -( SinPiPer8Times3 ) ) ) {
- NewState = NEKO_DL_MOVE;
- } else {
- NewState = NEKO_D_MOVE;
- }
- }
- }
-
- if ( NekoState != NewState ) {
- SetNekoState( NewState );
- }
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-JI$V$D$+$jH=Dj
- *
- *--------------------------------------------------------------*/
-
-Bool
-IsWindowOver()
-{
- Bool ReturnValue = False;
-
- if ( NekoY <= 0 ) {
- NekoY = 0;
- ReturnValue = True;
- } else if ( NekoY >= WindowHeight - BITMAP_HEIGHT ) {
- NekoY = WindowHeight - BITMAP_HEIGHT;
- ReturnValue = True;
- }
- if ( NekoX <= 0 ) {
- NekoX = 0;
- ReturnValue = True;
- } else if ( NekoX >= WindowWidth - BITMAP_WIDTH ) {
- NekoX = WindowWidth - BITMAP_WIDTH;
- ReturnValue = True;
- }
-
- return( ReturnValue );
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-0\F0>u67H=Dj
- *
- *--------------------------------------------------------------*/
-
-Bool
-IsNekoDontMove()
-{
- if ( NekoX == NekoLastX && NekoY == NekoLastY ) {
- return( True );
- } else {
- return( False );
- }
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-0\F03+;OH=Dj
- *
- *--------------------------------------------------------------*/
-
-Bool
-IsNekoMoveStart()
-{
-#ifndef DEBUG
- if ( ( PrevMouseX >= MouseX - IDLE_SPACE
- && PrevMouseX <= MouseX + IDLE_SPACE ) &&
- ( PrevMouseY >= MouseY - IDLE_SPACE
- && PrevMouseY <= MouseY + IDLE_SPACE ) ) {
- return( False );
- } else {
- return( True );
- }
-#else
- if ( NekoMoveDx == 0 && NekoMoveDy == 0 ) {
- return( False );
- } else {
- return( True );
- }
-#endif
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-0\F0 dx, dy 7W;;
- *
- *--------------------------------------------------------------*/
-
-void
-CalcDxDy()
-{
- Window QueryRoot, QueryChild;
- int AbsoluteX, AbsoluteY;
- int RelativeX, RelativeY;
- unsigned int ModKeyMask;
- double LargeX, LargeY;
- double DoubleLength, Length;
-
- XQueryPointer( theDisplay, theWindow,
- &QueryRoot, &QueryChild,
- &AbsoluteX, &AbsoluteY,
- &RelativeX, &RelativeY,
- &ModKeyMask );
-
- PrevMouseX = MouseX;
- PrevMouseY = MouseY;
-
- MouseX = RelativeX;
- MouseY = RelativeY;
-
- LargeX = (double)( MouseX - NekoX - BITMAP_WIDTH / 2 );
- LargeY = (double)( MouseY - NekoY - BITMAP_HEIGHT );
-
- DoubleLength = LargeX * LargeX + LargeY * LargeY;
-
- if ( DoubleLength != (double)0 ) {
- Length = sqrt( DoubleLength );
- if ( Length <= NekoSpeed ) {
- NekoMoveDx = (int)LargeX;
- NekoMoveDy = (int)LargeY;
- } else {
- NekoMoveDx = (int)( ( NekoSpeed * LargeX ) / Length );
- NekoMoveDy = (int)( ( NekoSpeed * LargeY ) / Length );
- }
- } else {
- NekoMoveDx = NekoMoveDy = 0;
- }
-}
-
-
-/*--------------------------------------------------------------
- *
- * F0:n2r@OG-IA2h=hM}
- *
- *--------------------------------------------------------------*/
-
-void
-NekoThinkDraw()
-{
-#ifndef DEBUG
- CalcDxDy();
-#endif
-
- if ( NekoState != NEKO_SLEEP ) {
- DrawNeko( NekoX, NekoY,
- NekoTickCount % 2 == 0 ?
- *(AnimationPattern[ NekoState ].TickEvenGCPtr) :
- *(AnimationPattern[ NekoState ].TickOddGCPtr) );
- } else {
- DrawNeko( NekoX, NekoY,
- NekoTickCount % 8 <= 3 ?
- *(AnimationPattern[ NekoState ].TickEvenGCPtr) :
- *(AnimationPattern[ NekoState ].TickOddGCPtr) );
- }
-
- TickCount();
-
- switch ( NekoState ) {
- case NEKO_STOP:
- if ( IsNekoMoveStart() ) {
- SetNekoState( NEKO_AWAKE );
- break;
- }
- if ( NekoStateCount < NEKO_STOP_TIME ) {
- break;
- }
- if ( NekoMoveDx < 0 && NekoX <= 0 ) {
- SetNekoState( NEKO_L_TOGI );
- } else if ( NekoMoveDx > 0 && NekoX >= WindowWidth - BITMAP_WIDTH ) {
- SetNekoState( NEKO_R_TOGI );
- } else if ( NekoMoveDy < 0 && NekoY <= 0 ) {
- SetNekoState( NEKO_U_TOGI );
- } else if ( NekoMoveDy > 0 && NekoY >= WindowHeight - BITMAP_HEIGHT ) {
- SetNekoState( NEKO_D_TOGI );
- } else {
- SetNekoState( NEKO_JARE );
- }
- break;
- case NEKO_JARE:
- if ( IsNekoMoveStart() ) {
- SetNekoState( NEKO_AWAKE );
- break;
- }
- if ( NekoStateCount < NEKO_JARE_TIME ) {
- break;
- }
- SetNekoState( NEKO_KAKI );
- break;
- case NEKO_KAKI:
- if ( IsNekoMoveStart() ) {
- SetNekoState( NEKO_AWAKE );
- break;
- }
- if ( NekoStateCount < NEKO_KAKI_TIME ) {
- break;
- }
- SetNekoState( NEKO_AKUBI );
- break;
- case NEKO_AKUBI:
- if ( IsNekoMoveStart() ) {
- SetNekoState( NEKO_AWAKE );
- break;
- }
- if ( NekoStateCount < NEKO_AKUBI_TIME ) {
- break;
- }
- SetNekoState( NEKO_SLEEP );
- break;
- case NEKO_SLEEP:
- if ( IsNekoMoveStart() ) {
- SetNekoState( NEKO_AWAKE );
- break;
- }
- break;
- case NEKO_AWAKE:
- if ( NekoStateCount < NEKO_AWAKE_TIME ) {
- break;
- }
- NekoDirection(); /* G-$,F0$/8~$-$r5a$a$k */
- break;
- case NEKO_U_MOVE:
- case NEKO_D_MOVE:
- case NEKO_L_MOVE:
- case NEKO_R_MOVE:
- case NEKO_UL_MOVE:
- case NEKO_UR_MOVE:
- case NEKO_DL_MOVE:
- case NEKO_DR_MOVE:
- NekoX += NekoMoveDx;
- NekoY += NekoMoveDy;
- NekoDirection();
- if ( IsWindowOver() ) {
- if ( IsNekoDontMove() ) {
- SetNekoState( NEKO_STOP );
- }
- }
- break;
- case NEKO_U_TOGI:
- case NEKO_D_TOGI:
- case NEKO_L_TOGI:
- case NEKO_R_TOGI:
- if ( IsNekoMoveStart() ) {
- SetNekoState( NEKO_AWAKE );
- break;
- }
- if ( NekoStateCount < NEKO_TOGI_TIME ) {
- break;
- }
- SetNekoState( NEKO_KAKI );
- break;
- default:
- /* Internal Error */
- SetNekoState( NEKO_STOP );
- break;
- }
-
- Interval();
-}
-
-
-#ifdef DEBUG
-
-/*--------------------------------------------------------------
- *
- * %-%c%i%/%?!<0lMwI=<(!J5/31/93P11500MQ!K
- *
- *--------------------------------------------------------------*/
-
-void
-DisplayCharacters()
-{
- int Index;
- int x, y;
-
- for ( Index = 0, x = 0, y = 0;
- BitmapGCDataTable[ Index ].GCCreatePtr != NULL; Index++ ) {
-
- DrawNeko( x, y, *(BitmapGCDataTable[ Index ].GCCreatePtr) );
- XFlush( theDisplay );
-
- x += BITMAP_WIDTH;
-
- if ( x > WindowWidth - BITMAP_WIDTH ) {
- x = 0;
- y += BITMAP_HEIGHT;
- if ( y > WindowHeight - BITMAP_HEIGHT) {
- break;
- }
- }
- }
-}
-
-#endif /* DEBUG */
-
-
-/*--------------------------------------------------------------
- *
- * %-!<%$s%H=hM}
- *
- *--------------------------------------------------------------*/
-
-Bool
-ProcessKeyPress( theKeyEvent )
- XKeyEvent *theKeyEvent;
-{
- int Length;
- int theKeyBufferMaxLen = AVAIL_KEYBUF;
- char theKeyBuffer[ AVAIL_KEYBUF + 1 ];
- KeySym theKeySym;
- XComposeStatus theComposeStatus;
- Bool ReturnState;
-
- ReturnState = True;
-
- Length = XLookupString( theKeyEvent,
- theKeyBuffer, theKeyBufferMaxLen,
- &theKeySym, &theComposeStatus );
-
- if ( Length > 0 ) {
- switch ( theKeyBuffer[ 0 ] ) {
- case 'q':
- case 'Q':
- if ( theKeyEvent->state & Mod1Mask ) { /* META (Alt) %-!< */
- ReturnState = False;
- }
- break;
- default:
- break;
- }
- }
-
-#ifdef DEBUG
- if ( EventState == DEBUG_MOVE ) {
- switch ( theKeySym ) {
- case XK_KP_1:
- NekoMoveDx = -(int)( NekoSpeed / sqrt( (double)2 ) );
- NekoMoveDy = -NekoMoveDx;
- break;
- case XK_KP_2:
- NekoMoveDx = 0;
- NekoMoveDy = (int)NekoSpeed;
- break;
- case XK_KP_3:
- NekoMoveDx = (int)( NekoSpeed / sqrt( (double)2 ) );
- NekoMoveDy = NekoMoveDx;
- break;
- case XK_KP_4:
- NekoMoveDx = -(int)NekoSpeed;
- NekoMoveDy = 0;
- break;
- case XK_KP_5:
- NekoMoveDx = 0;
- NekoMoveDy = 0;
- break;
- case XK_KP_6:
- NekoMoveDx = (int)NekoSpeed;
- NekoMoveDy = 0;
- break;
- case XK_KP_7:
- NekoMoveDx = -(int)( NekoSpeed / sqrt( (double)2 ) );
- NekoMoveDy = NekoMoveDx;
- break;
- case XK_KP_8:
- NekoMoveDx = 0;
- NekoMoveDy = -(int)NekoSpeed;
- break;
- case XK_KP_9:
- NekoMoveDx = (int)( NekoSpeed / sqrt( (double)2 ) );
- NekoMoveDy = -NekoMoveDx;
- break;
- }
- }
-#endif
-
- return( ReturnState );
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-0LCVD4@0
- *
- *--------------------------------------------------------------*/
-
-void
-NekoAdjust()
-{
- if ( NekoX < 0 ) {
- NekoX = 0;
- } else if ( NekoX > WindowWidth - BITMAP_WIDTH ) {
- NekoX = WindowWidth - BITMAP_WIDTH;
- }
-
- if ( NekoY < 0 ) {
- NekoY = 0;
- } else if ( NekoY > WindowHeight - BITMAP_HEIGHT ) {
- NekoY = WindowHeight - BITMAP_HEIGHT;
- }
-}
-
-
-/*--------------------------------------------------------------
- *
- * %$s%H=hM}
- *
- *--------------------------------------------------------------*/
-
-Bool
-ProcessEvent()
-{
- XEvent theEvent;
- Bool ContinueState = True;
-
- switch ( EventState ) {
- case NORMAL_STATE:
- while ( XCheckMaskEvent( theDisplay, EVENT_MASK1, &theEvent ) ) {
- switch ( theEvent.type ) {
- case ConfigureNotify:
- WindowWidth = theEvent.xconfigure.width;
- WindowHeight = theEvent.xconfigure.height;
- WindowPointX = theEvent.xconfigure.x;
- WindowPointY = theEvent.xconfigure.y;
- BorderWidth = theEvent.xconfigure.border_width;
- NekoAdjust();
- break;
- case Expose:
- if ( theEvent.xexpose.count == 0 ) {
- RedrawNeko();
- }
- break;
- case MapNotify:
- RedrawNeko();
- break;
- case KeyPress:
- ContinueState = ProcessKeyPress( &theEvent.xkey );
- if ( !ContinueState ) {
- return( ContinueState );
- }
- break;
- default:
- /* Unknown Event */
- break;
- }
- }
- break;
-#ifdef DEBUG
- case DEBUG_LIST:
- XNextEvent( theDisplay, &theEvent );
- switch ( theEvent.type ) {
- case ConfigureNotify:
- WindowWidth = theEvent.xconfigure.width;
- WindowHeight = theEvent.xconfigure.height;
- WindowPointX = theEvent.xconfigure.x;
- WindowPointY = theEvent.xconfigure.y;
- BorderWidth = theEvent.xconfigure.border_width;
- break;
- case Expose:
- if ( theEvent.xexpose.count == 0 ) {
- DisplayCharacters();
- }
- break;
- case MapNotify:
- DisplayCharacters();
- break;
- case KeyPress:
- ContinueState = ProcessKeyPress( &theEvent );
- break;
- default:
- /* Unknown Event */
- break;
- }
- break;
- case DEBUG_MOVE:
- while ( XCheckMaskEvent( theDisplay, EVENT_MASK1, &theEvent ) ) {
- switch ( theEvent.type ) {
- case ConfigureNotify:
- WindowWidth = theEvent.xconfigure.width;
- WindowHeight = theEvent.xconfigure.height;
- WindowPointX = theEvent.xconfigure.x;
- WindowPointY = theEvent.xconfigure.y;
- BorderWidth = theEvent.xconfigure.border_width;
- NekoAdjust();
- break;
- case Expose:
- if ( theEvent.xexpose.count == 0 ) {
- RedrawNeko();
- }
- break;
- case MapNotify:
- RedrawNeko();
- break;
- case KeyPress:
- ContinueState = ProcessKeyPress( &theEvent );
- if ( !ContinueState ) {
- return( ContinueState );
- }
- break;
- default:
- /* Unknown Event */
- break;
- }
- }
- break;
-#endif
- default:
- /* Internal Error */
- break;
- }
-
- return( ContinueState );
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-=hM}
- *
- *--------------------------------------------------------------*/
-
-void
-ProcessNeko()
-{
- struct itimerval Value;
-
- /* 4D6-$N=i4|2= */
-
- EventState = NORMAL_STATE;
-
- /* G-$N=i4|2= */
-
- NekoX = ( WindowWidth - BITMAP_WIDTH / 2 ) / 2;
- NekoY = ( WindowHeight - BITMAP_HEIGHT / 2 ) / 2;
-
- NekoLastX = NekoX;
- NekoLastY = NekoY;
-
- SetNekoState( NEKO_STOP );
-
- /* %?%$%^!<@_Dj */
-
- timerclear( &Value.it_interval );
- timerclear( &Value.it_value );
-
- Value.it_interval.tv_usec = IntervalTime;
- Value.it_value.tv_usec = IntervalTime;
-
- setitimer( ITIMER_REAL, &Value, 0 );
-
- /* %a%$%s=hM} */
-
- do {
- NekoThinkDraw();
- } while ( ProcessEvent() );
-}
-
-
-#ifdef DEBUG
-
-/*--------------------------------------------------------------
- *
- * G-0lMw!J5/31/93P14460MQ!K
- *
- *--------------------------------------------------------------*/
-
-void
-NekoList()
-{
- EventState = DEBUG_LIST;
-
- fprintf( stderr, "\n" );
- fprintf( stderr, "G-0lMw$rI=<($7$^$9!#(Quit !D Alt-Q)\n" );
- fprintf( stderr, "\n" );
-
- XSelectInput( theDisplay, theWindow, EVENT_MASK2 );
-
- while ( ProcessEvent() );
-}
-
-
-/*--------------------------------------------------------------
- *
- * G-0\F0SCCS/s.xneko.c9%H!J5/31/93P14670MQ!K
- *
- *--------------------------------------------------------------*/
-
-void
-NekoMoveTest()
-{
- struct itimerval Value;
-
- /* 4D6-$N=i4|2= */
-
- EventState = DEBUG_MOVE;
-
- /* G-$N=i4|2= */
-
- NekoX = ( WindowWidth - BITMAP_WIDTH / 2 ) / 2;
- NekoY = ( WindowHeight - BITMAP_HEIGHT / 2 ) / 2;
-
- NekoLastX = NekoX;
- NekoLastY = NekoY;
-
- SetNekoState( NEKO_STOP );
-
- /* %?%$%^!<@_Dj */
-
- timerclear( &Value.it_interval );
- timerclear( &Value.it_value );
-
- Value.it_interval.tv_usec = IntervalTime;
- Value.it_value.tv_usec = IntervalTime;
-
- setitimer( ITIMER_REAL, &Value, 0 );
-
- /* %a%$%s=hM} */
-
- fprintf( stderr, "\n" );
- fprintf( stderr, "G-$N0\F0SCCS/s.xneko.c9%H$r9T$$$^$9!#(Quit !D Alt-Q)\n" );
- fprintf( stderr, "\n" );
- fprintf( stderr, "\t%-!<May 31, 1993C%I>e$NSCCS/s.xneko.cs%-!<$GG-$r0\F0$5$;$F2<$5$$!#\n" );
- fprintf( stderr, "\t(M-8z$J%-!<$O#1!A#9$G$9!#)\n" );
- fprintf( stderr, "\n" );
-
- do {
- NekoThinkDraw();
- } while ( ProcessEvent() );
-}
-
-
-/*--------------------------------------------------------------
- *
- * %a%K%e!<=hM}!J5/31/93P15170MQ!K
- *
- *--------------------------------------------------------------*/
-
-void
-ProcessDebugMenu()
-{
- int UserSelectNo = 0;
- char UserAnswer[ BUFSIZ ];
-
- fprintf( stderr, "\n" );
- fprintf( stderr, "!Zxneko 5/31/93P15280%a%K%e!<![\n" );
-
- while ( !( UserSelectNo >= 1 && UserSelectNo <= 2 ) ) {
- fprintf( stderr, "\n" );
- fprintf( stderr, "\t1)!!G-%-%c%i%/%?!<0lMwI=<(\n" );
- fprintf( stderr, "\t2)!!G-0\F0SCCS/s.xneko.c9%H\n" );
- fprintf( stderr, "\n" );
- fprintf( stderr, "Select: " );
-
- fgets( UserAnswer, sizeof( UserAnswer ), stdin );
-
- UserSelectNo = atoi( UserAnswer );
-
- if ( !( UserSelectNo >= 1 && UserSelectNo <= 2 ) ) {
- fprintf( stderr, "\n" );
- fprintf( stderr, "@5$7$$HV9f$rA*Br$7$F2<$5$$!#\n" );
- }
- }
-
- switch ( UserSelectNo ) {
- case 1:
- /* G-%-%c%i%/%?!<0lMwI=<( */
- NekoList();
- break;
- case 2:
- /* G-0\F0SCCS/s.xneko.c9%H */
- NekoMoveTest();
- break;
- default:
- /* Internal Error */
- break;
- }
-
- fprintf( stderr, "SCCS/s.xneko.c9%H=*N;!#\n" );
- fprintf( stderr, "\n" );
-}
-
-#endif /* DEBUG */
-
-
-/*--------------------------------------------------------------
- *
- * SIGALRM %7%0%J%k=hM}
- *
- *--------------------------------------------------------------*/
-
-void
-NullFunction()
-{
- /* No Operation */
-}
-
-
-/*--------------------------------------------------------------
- *
- * Usage
- *
- *--------------------------------------------------------------*/
-
-void
-Usage()
-{
- fprintf( stderr,
- "Usage: %s [-display <display>] [-geometry <geometry>] \\\n",
- ProgramName );
- fprintf( stderr, " [-title <title>] [-name <title>] [-iconic] \\\n" );
- fprintf( stderr, " [-speed <speed>] [-time <time>] [-help]\n" );
-}
-
-
-/*--------------------------------------------------------------
- *
- * #XMay 31, 1993i%a!<%?I>2A
- *
- *--------------------------------------------------------------*/
-
-Bool
-GetArguments( argc, argv, theDisplayName, theGeometry, theTitle,
- NekoSpeed, IntervalTime )
- int argc;
- char *argv[];
- char *theDisplayName;
- char *theGeometry;
- char *theTitle;
- double *NekoSpeed;
- long *IntervalTime;
-{
- int ArgCounter;
- Bool iconicState;
-
- theDisplayName[ 0 ] = '\0';
- theGeometry[ 0 ] = '\0';
- theTitle[ 0 ] = '\0';
-
- iconicState = False;
-
- for ( ArgCounter = 0; ArgCounter < argc; ArgCounter++ ) {
-
- if ( strncmp( argv[ ArgCounter ], "-h", 2 ) == 0 ) {
- Usage();
- exit( 0 );
- } else if ( strcmp( argv[ ArgCounter ], "-display" ) == 0 ) {
- ArgCounter++;
- if ( ArgCounter < argc ) {
- strcpy( theDisplayName, argv[ ArgCounter ] );
- } else {
- fprintf( stderr, "%s: -display option error.\n", ProgramName );
- exit( 1 );
- }
- } else if ( strncmp( argv[ ArgCounter ], "-geom", 5 ) == 0 ) {
- ArgCounter++;
- if ( ArgCounter < argc ) {
- strcpy( theGeometry, argv[ ArgCounter ] );
- } else {
- fprintf( stderr,
- "%s: -geometry option error.\n", ProgramName );
- exit( 1 );
- }
- } else if ( ( strcmp( argv[ ArgCounter ], "-title" ) == 0 )
- || ( strcmp( argv[ ArgCounter ], "-name" ) == 0 ) ) {
- ArgCounter++;
- if ( ArgCounter < argc ) {
- strcpy( theTitle, argv[ ArgCounter ] );
- } else {
- fprintf( stderr, "%s: -title option error.\n", ProgramName );
- exit( 1 );
- }
- } else if ( strcmp( argv[ ArgCounter ], "-iconic" ) == 0 ) {
- iconicState = True;
- } else if ( strcmp( argv[ ArgCounter ], "-speed" ) == 0 ) {
- ArgCounter++;
- if ( ArgCounter < argc ) {
- *NekoSpeed = atof( argv[ ArgCounter ] );
- } else {
- fprintf( stderr, "%s: -speed option error.\n", ProgramName );
- exit( 1 );
- }
- } else if ( strcmp( argv[ ArgCounter ], "-time" ) == 0 ) {
- ArgCounter++;
- if ( ArgCounter < argc ) {
- *IntervalTime = atol( argv[ ArgCounter ] );
- } else {
- fprintf( stderr, "%s: -time option error.\n", ProgramName );
- exit( 1 );
- }
- } else {
- fprintf( stderr,
- "%s: Unknown option \"%s\".\n", ProgramName,
- argv[ ArgCounter ] );
- Usage();
- exit( 1 );
- }
- }
-
- if ( strlen( theDisplayName ) < 1 ) {
- theDisplayName = NULL;
- }
-
- if ( strlen( theGeometry ) < 1 ) {
- theGeometry = NULL;
- }
-
- return( iconicState );
-}
-
-
-/*--------------------------------------------------------------
- *
- * %a%$%s4X?t
- *
- *--------------------------------------------------------------*/
-
-int
-main( argc, argv )
- int argc;
- char *argv[];
-{
- Bool iconicState;
- char theDisplayName[ DIRNAMELEN ];
- char theGeometry[ DIRNAMELEN ];
- char theTitle[ DIRNAMELEN ];
-
- ProgramName = argv[ 0 ];
-
- argc--;
- argv++;
-
- iconicState = GetArguments( argc, argv,
- theDisplayName,
- theGeometry,
- theTitle,
- &NekoSpeed,
- &IntervalTime );
-
- InitScreen( theDisplayName, theGeometry, theTitle, iconicState );
-
- signal( SIGALRM, NullFunction );
-
- SinPiPer8Times3 = sin( PI_PER8 * (double)3 );
- SinPiPer8 = sin( PI_PER8 );
-
-#ifndef DEBUG
- ProcessNeko();
-#else
- ProcessDebugMenu();
-#endif
-
- exit( 0 );
-}
diff --git a/games/x11/xroach/Makefile b/games/x11/xroach/Makefile
deleted file mode 100644
index 8447d77083bc..000000000000
--- a/games/x11/xroach/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 6/8/93
-
-PROG= xroach
-MAN6= xroach.6
-CFLAGS+= -I${.CURDIR}/bitmaps -I${X11BASE}/include
-DPADD+= ${X11BASE}/lib/libX11.a ${LIBM}
-LDDESTDIR+= -L${X11BASE}/lib
-LDADD+= -lX11 -lm
-
-.include "../../Makefile.inc"
-.include <bsd.prog.mk>
diff --git a/games/x11/xroach/bitmaps/roach000.xbm b/games/x11/xroach/bitmaps/roach000.xbm
deleted file mode 100644
index 4b04b051087c..000000000000
--- a/games/x11/xroach/bitmaps/roach000.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach000_width 48
-#define roach000_height 48
-
-static char roach000_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
- 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x06, 0x80,
- 0x00, 0x00, 0x03, 0x00, 0x03, 0x60, 0x00, 0x00, 0x7e, 0x80, 0xc1, 0x3f,
- 0x00, 0x00, 0xc0, 0x83, 0xe0, 0x0f, 0x00, 0x00, 0x00, 0xc6, 0x30, 0x00,
- 0x00, 0x00, 0x00, 0xf8, 0x1f, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xef, 0x01,
- 0x00, 0x00, 0xfe, 0xff, 0xe7, 0x11, 0x10, 0xc0, 0xff, 0xff, 0xf7, 0x03,
- 0x02, 0xf0, 0xff, 0xff, 0xf3, 0x3f, 0x00, 0xf0, 0xff, 0xff, 0xf3, 0x3b,
- 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0xe0, 0xff, 0xff, 0xf3, 0x3f,
- 0x00, 0xe0, 0xff, 0xff, 0xf3, 0x3f, 0x00, 0xe0, 0xff, 0xff, 0xf3, 0x07,
- 0x01, 0xe0, 0xff, 0xff, 0xf7, 0x13, 0x08, 0xc0, 0xff, 0xff, 0xf7, 0x03,
- 0x00, 0x00, 0xfe, 0xff, 0xe7, 0x01, 0x00, 0x00, 0x00, 0xff, 0x0f, 0x00,
- 0x00, 0x00, 0x00, 0x88, 0x18, 0x00, 0x00, 0x00, 0xf8, 0xc7, 0xf0, 0x03,
- 0x00, 0x00, 0xfe, 0x81, 0xc1, 0x3f, 0x00, 0x00, 0x06, 0x00, 0x01, 0x30,
- 0x00, 0x00, 0x03, 0x00, 0x02, 0x40, 0x00, 0x80, 0x01, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach015.xbm b/games/x11/xroach/bitmaps/roach015.xbm
deleted file mode 100644
index f5ad87e237db..000000000000
--- a/games/x11/xroach/bitmaps/roach015.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach015_width 48
-#define roach015_height 48
-
-static char roach015_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00, 0x0c,
- 0x00, 0x00, 0x00, 0x80, 0x00, 0x06, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0x07,
- 0x00, 0x00, 0x00, 0x40, 0xf8, 0x01, 0x00, 0x00, 0x00, 0x60, 0x3c, 0x00,
- 0x00, 0x00, 0x00, 0x30, 0x0c, 0x00, 0x00, 0x10, 0x00, 0x10, 0x06, 0x00,
- 0x00, 0x60, 0xfc, 0x30, 0x72, 0x04, 0x00, 0xc0, 0x9f, 0xe3, 0xf3, 0x1e,
- 0x00, 0x00, 0x00, 0xfe, 0xfb, 0x1d, 0x00, 0x00, 0xc0, 0xff, 0xfb, 0x3d,
- 0x00, 0x00, 0xf8, 0xff, 0xf9, 0x3f, 0x00, 0x00, 0xfe, 0xff, 0xfb, 0x3f,
- 0x3c, 0x00, 0xff, 0xff, 0xfb, 0x07, 0x00, 0xc0, 0xff, 0x1f, 0xf8, 0x17,
- 0x00, 0xe0, 0xff, 0xe1, 0xf7, 0x07, 0x00, 0xf0, 0x1f, 0xfe, 0xf7, 0x03,
- 0x00, 0xf0, 0xe1, 0xff, 0xe7, 0x03, 0x00, 0x00, 0xfe, 0xff, 0xcf, 0x01,
- 0x00, 0xc0, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x7f, 0xfc,
- 0x00, 0xc0, 0xff, 0x3f, 0xc3, 0x1f, 0x01, 0xc0, 0xff, 0x23, 0x03, 0x00,
- 0x00, 0x00, 0x00, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x1c, 0x00,
- 0x00, 0x00, 0x80, 0x07, 0x20, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x40, 0x00,
- 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach030.xbm b/games/x11/xroach/bitmaps/roach030.xbm
deleted file mode 100644
index ec2823645d04..000000000000
--- a/games/x11/xroach/bitmaps/roach030.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach030_width 48
-#define roach030_height 48
-
-static char roach030_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x38, 0x40, 0x00, 0x00, 0x00, 0x10, 0x1e, 0x00,
- 0x00, 0x00, 0x00, 0x18, 0x07, 0x00, 0x00, 0x00, 0x00, 0x98, 0x01, 0x09,
- 0x00, 0x00, 0x00, 0x8c, 0x01, 0x04, 0x00, 0x00, 0x00, 0x8c, 0xb8, 0x07,
- 0x00, 0x00, 0x00, 0x84, 0x7c, 0x0f, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x8e,
- 0x00, 0x00, 0x00, 0xf8, 0xfc, 0x1f, 0x00, 0x00, 0xe0, 0xff, 0xfc, 0x05,
- 0x00, 0x04, 0x1e, 0xff, 0xfd, 0x17, 0x00, 0xf8, 0x87, 0xff, 0xf9, 0x03,
- 0x00, 0xe0, 0xc0, 0xff, 0xf9, 0x07, 0x00, 0x00, 0xf0, 0x7f, 0xf0, 0x07,
- 0x00, 0x00, 0xf8, 0x1f, 0xe7, 0x03, 0x00, 0x00, 0xfe, 0xcf, 0xcf, 0xc1,
- 0x03, 0x00, 0xff, 0xf3, 0x1f, 0xe0, 0x00, 0x80, 0xff, 0xfc, 0xff, 0x3f,
- 0x00, 0x80, 0x3f, 0xfe, 0xbf, 0x07, 0x00, 0xc0, 0x9f, 0xff, 0x07, 0x00,
- 0x00, 0xc0, 0xe7, 0xff, 0x0f, 0x00, 0x00, 0xc0, 0xf9, 0xff, 0x3c, 0x00,
- 0x00, 0x00, 0xfe, 0xff, 0xf8, 0x01, 0x00, 0x00, 0xff, 0x8f, 0x00, 0x02,
- 0x00, 0x00, 0xff, 0x61, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x30, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach045.xbm b/games/x11/xroach/bitmaps/roach045.xbm
deleted file mode 100644
index 0ea6e2bcec17..000000000000
--- a/games/x11/xroach/bitmaps/roach045.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach045_width 48
-#define roach045_height 48
-
-static char roach045_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x01,
- 0x00, 0x00, 0x00, 0xc0, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x62, 0xc0, 0x43,
- 0x00, 0x00, 0x00, 0x62, 0xfe, 0x13, 0x00, 0x00, 0x00, 0x23, 0xff, 0x07,
- 0x00, 0x00, 0x00, 0x23, 0xff, 0x07, 0x00, 0x00, 0x00, 0x63, 0xff, 0x0b,
- 0x00, 0x00, 0x00, 0x73, 0xff, 0x01, 0x00, 0x00, 0x00, 0x7e, 0xfe, 0x01,
- 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x03, 0x00, 0x00, 0x40, 0xfe, 0xf9, 0x03,
- 0x07, 0x00, 0xf0, 0xff, 0xf1, 0xc3, 0x00, 0x00, 0x18, 0xff, 0xc0, 0xe3,
- 0x00, 0x00, 0x8e, 0x7f, 0x1e, 0x70, 0x00, 0x00, 0xc7, 0x3f, 0xff, 0x1f,
- 0x00, 0xfc, 0xe3, 0x9f, 0x7f, 0x07, 0x00, 0xe0, 0xe1, 0xcf, 0x3f, 0x00,
- 0x00, 0x00, 0xf0, 0xe7, 0x3f, 0x00, 0x00, 0x00, 0xf8, 0xf1, 0x1f, 0x00,
- 0x00, 0x00, 0xfc, 0xfc, 0xe7, 0x0f, 0x00, 0x00, 0x7e, 0xfe, 0x03, 0x00,
- 0x00, 0x00, 0x3e, 0xff, 0x03, 0x00, 0x00, 0x00, 0x9f, 0xff, 0x02, 0x00,
- 0x00, 0x00, 0xcf, 0x7f, 0x03, 0x00, 0x00, 0x00, 0xe7, 0x1f, 0x03, 0x00,
- 0x00, 0x00, 0xf2, 0x8f, 0x03, 0x00, 0x00, 0x00, 0xf8, 0x83, 0x01, 0x00,
- 0x00, 0x00, 0xf8, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach060.xbm b/games/x11/xroach/bitmaps/roach060.xbm
deleted file mode 100644
index 145987a95e6a..000000000000
--- a/games/x11/xroach/bitmaps/roach060.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach060_width 48
-#define roach060_height 48
-
-static char roach060_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x20, 0x10,
- 0x00, 0x00, 0x00, 0x60, 0x00, 0x08, 0x00, 0x00, 0x00, 0x30, 0x74, 0x04,
- 0x00, 0x00, 0x00, 0x30, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x18, 0xfc, 0x01,
- 0x00, 0x00, 0x00, 0x88, 0xff, 0x00, 0x00, 0x00, 0x40, 0xc8, 0xff, 0x02,
- 0x00, 0x00, 0xc0, 0xd8, 0x7f, 0x00, 0x00, 0x00, 0xc0, 0xd8, 0xff, 0x80,
- 0x01, 0x00, 0x80, 0x90, 0xff, 0xe1, 0x00, 0x00, 0x80, 0x18, 0xff, 0x61,
- 0x00, 0x00, 0x80, 0x3f, 0xfe, 0x33, 0x00, 0x00, 0x00, 0x7f, 0xfc, 0x19,
- 0x00, 0x00, 0x00, 0xfe, 0xf1, 0x18, 0x00, 0x00, 0x00, 0xfe, 0xfe, 0x0f,
- 0x00, 0x00, 0xc0, 0xff, 0xff, 0x01, 0x00, 0x00, 0xe0, 0x7f, 0x7f, 0x00,
- 0x00, 0x00, 0x90, 0xbf, 0x7f, 0x00, 0x00, 0x00, 0x98, 0xbf, 0x3f, 0x38,
- 0x00, 0x00, 0xd8, 0xdf, 0x7f, 0x0f, 0x00, 0x00, 0xcc, 0xef, 0xdf, 0x01,
- 0x00, 0x00, 0xe6, 0xef, 0x0f, 0x00, 0x00, 0xc0, 0xe3, 0xf7, 0x0f, 0x00,
- 0x00, 0x00, 0xe0, 0xf7, 0x1f, 0x00, 0x00, 0x00, 0xf0, 0xfb, 0x1f, 0x00,
- 0x00, 0x00, 0xf0, 0xf9, 0x1b, 0x00, 0x00, 0x00, 0xf0, 0xfd, 0x19, 0x00,
- 0x00, 0x00, 0xf8, 0xfe, 0x08, 0x00, 0x00, 0x00, 0x78, 0x7e, 0x0c, 0x00,
- 0x00, 0x00, 0x70, 0x3f, 0x04, 0x00, 0x00, 0x00, 0x30, 0x3f, 0x06, 0x00,
- 0x00, 0x00, 0x80, 0x1f, 0x06, 0x00, 0x00, 0x00, 0x00, 0x07, 0x06, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach075.xbm b/games/x11/xroach/bitmaps/roach075.xbm
deleted file mode 100644
index 5a85ba46a5e4..000000000000
--- a/games/x11/xroach/bitmaps/roach075.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach075_width 48
-#define roach075_height 48
-
-static char roach075_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x00,
- 0x00, 0x00, 0x00, 0x06, 0x80, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00,
- 0x00, 0x00, 0x00, 0x84, 0x06, 0x00, 0x00, 0x00, 0x00, 0x86, 0x3e, 0x00,
- 0x00, 0x00, 0x00, 0x06, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x06, 0x1e, 0x60,
- 0x00, 0x00, 0x00, 0xc6, 0x3f, 0x20, 0x00, 0x00, 0x00, 0xe6, 0x3f, 0x18,
- 0x00, 0x00, 0x00, 0xf2, 0x7f, 0x18, 0x00, 0x00, 0x08, 0xf2, 0x7f, 0x18,
- 0x00, 0x00, 0x30, 0xf6, 0xff, 0x0c, 0x00, 0x00, 0x20, 0xe4, 0xff, 0x0c,
- 0x00, 0x00, 0x60, 0x98, 0xff, 0x0c, 0x00, 0x00, 0x40, 0x38, 0x38, 0x06,
- 0x00, 0x00, 0xc0, 0xff, 0xe0, 0x01, 0x00, 0x00, 0x80, 0xff, 0xfe, 0x00,
- 0x00, 0x00, 0x00, 0x7e, 0xfe, 0x78, 0x00, 0x00, 0x00, 0x7e, 0x7f, 0x1c,
- 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x0e, 0x00, 0x00, 0xc0, 0x7f, 0xff, 0x03,
- 0x00, 0x00, 0xc0, 0x3e, 0x7f, 0x00, 0x00, 0x00, 0x20, 0xbf, 0x3f, 0x00,
- 0x00, 0x00, 0x20, 0xbf, 0x3f, 0x00, 0x00, 0x00, 0x20, 0xbf, 0x7f, 0x00,
- 0x00, 0x00, 0x10, 0x9f, 0x5f, 0x00, 0x00, 0x00, 0x10, 0xdf, 0x5f, 0x00,
- 0x00, 0x00, 0x18, 0xdf, 0x4f, 0x00, 0x00, 0x00, 0x0c, 0xdf, 0x4f, 0x00,
- 0x00, 0x00, 0x86, 0xcf, 0x47, 0x00, 0x00, 0x00, 0x80, 0xef, 0x47, 0x00,
- 0x00, 0x00, 0x80, 0xef, 0x63, 0x00, 0x00, 0x00, 0x00, 0xef, 0x63, 0x00,
- 0x00, 0x00, 0x00, 0xe7, 0x41, 0x00, 0x00, 0x00, 0x00, 0xf7, 0x81, 0x00,
- 0x00, 0x00, 0x00, 0xf0, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach090.xbm b/games/x11/xroach/bitmaps/roach090.xbm
deleted file mode 100644
index 78904ee571b4..000000000000
--- a/games/x11/xroach/bitmaps/roach090.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach090_width 48
-#define roach090_height 48
-
-static char roach090_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0xc0, 0xc0, 0x03, 0x0c, 0x00, 0x00, 0xc0, 0xd0, 0x07, 0x0c,
- 0x00, 0x00, 0xc0, 0xc0, 0x07, 0x04, 0x00, 0x00, 0xc0, 0x60, 0x07, 0x06,
- 0x00, 0x00, 0xc0, 0x80, 0x03, 0x06, 0x00, 0x00, 0xc0, 0xf0, 0x3f, 0x06,
- 0x00, 0x00, 0x80, 0xf8, 0x7f, 0x06, 0x00, 0x00, 0x80, 0xf9, 0x7f, 0x06,
- 0x00, 0x00, 0x80, 0xf9, 0x7f, 0x02, 0x00, 0x00, 0x00, 0xfb, 0x7f, 0x03,
- 0x00, 0x00, 0x00, 0xf3, 0x9f, 0x61, 0x00, 0x00, 0x18, 0x1c, 0x70, 0x30,
- 0x00, 0x00, 0x30, 0xfc, 0x7e, 0x18, 0x00, 0x00, 0x60, 0xfc, 0x7e, 0x0c,
- 0x00, 0x00, 0xc0, 0xfc, 0x7e, 0x06, 0x00, 0x00, 0xc0, 0xff, 0xfe, 0x03,
- 0x00, 0x00, 0x00, 0xfc, 0x7e, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x7e, 0x00,
- 0x00, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x01,
- 0x00, 0x00, 0x00, 0xff, 0x7e, 0x01, 0x00, 0x00, 0x80, 0xfc, 0x7e, 0x03,
- 0x00, 0x00, 0x80, 0xfc, 0x7e, 0x02, 0x00, 0x00, 0x80, 0xfc, 0x7e, 0x02,
- 0x00, 0x00, 0x80, 0xf8, 0x3e, 0x06, 0x00, 0x00, 0xc0, 0xf8, 0x3e, 0x06,
- 0x00, 0x00, 0xc0, 0xf8, 0x3e, 0x06, 0x00, 0x00, 0xc0, 0xf8, 0x3e, 0x04,
- 0x00, 0x00, 0xc0, 0xf8, 0x3e, 0x0c, 0x00, 0x00, 0x60, 0xf8, 0x3e, 0x08,
- 0x00, 0x00, 0x20, 0xf8, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x1e, 0x00,
- 0x00, 0x00, 0x00, 0xf0, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach105.xbm b/games/x11/xroach/bitmaps/roach105.xbm
deleted file mode 100644
index a0bcc80c9689..000000000000
--- a/games/x11/xroach/bitmaps/roach105.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach105_width 48
-#define roach105_height 48
-
-static char roach105_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xc1, 0x00,
- 0x00, 0x00, 0x06, 0xf8, 0xc0, 0x00, 0x00, 0x00, 0x1c, 0xfa, 0xc1, 0x00,
- 0x00, 0x00, 0x18, 0x88, 0x83, 0x00, 0x00, 0x00, 0x10, 0xe0, 0x9f, 0x00,
- 0x00, 0x00, 0x30, 0xf8, 0x9f, 0x00, 0x00, 0x00, 0x20, 0xfc, 0x9f, 0x10,
- 0x00, 0x00, 0x60, 0xfe, 0x5f, 0x18, 0x00, 0x00, 0x60, 0xfe, 0x4f, 0x0c,
- 0x00, 0x00, 0x60, 0xfc, 0x27, 0x0c, 0x00, 0x00, 0xc0, 0x78, 0x3c, 0x0e,
- 0x00, 0x00, 0x80, 0x07, 0x7c, 0x06, 0x00, 0x00, 0x00, 0xfc, 0xfe, 0x03,
- 0x00, 0x00, 0x08, 0xfc, 0xfe, 0x00, 0x00, 0x00, 0x78, 0xfc, 0xfd, 0x00,
- 0x00, 0x00, 0xe0, 0xfc, 0xfd, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xfd, 0x07,
- 0x00, 0x00, 0x00, 0xf8, 0xfd, 0x05, 0x00, 0x00, 0x00, 0xf8, 0xfb, 0x05,
- 0x00, 0x00, 0x00, 0xf8, 0xfb, 0x09, 0x00, 0x00, 0x00, 0xfc, 0xfb, 0x19,
- 0x00, 0x00, 0x00, 0xfc, 0xf3, 0x19, 0x00, 0x00, 0x00, 0xe4, 0xf7, 0x31,
- 0x00, 0x00, 0x00, 0xe4, 0xf7, 0x31, 0x00, 0x00, 0x00, 0xe4, 0xf7, 0xc1,
- 0x00, 0x00, 0x00, 0xc4, 0xe7, 0x03, 0x01, 0x00, 0x00, 0xcc, 0xef, 0x03,
- 0x00, 0x00, 0x00, 0x8c, 0xef, 0x03, 0x00, 0x00, 0x00, 0x8c, 0xef, 0x01,
- 0x00, 0x00, 0x00, 0x0c, 0xcf, 0x01, 0x00, 0x00, 0x00, 0x0c, 0xde, 0x01,
- 0x00, 0x00, 0x00, 0x06, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach120.xbm b/games/x11/xroach/bitmaps/roach120.xbm
deleted file mode 100644
index 9087d9df0670..000000000000
--- a/games/x11/xroach/bitmaps/roach120.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach120_width 48
-#define roach120_height 48
-
-static char roach120_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00,
- 0x00, 0x00, 0x10, 0x08, 0x18, 0x00, 0x00, 0x00, 0x00, 0x28, 0x18, 0x00,
- 0x00, 0x00, 0x00, 0x1e, 0x38, 0x00, 0x00, 0x00, 0x80, 0x3f, 0x30, 0x00,
- 0x00, 0x00, 0x00, 0x9f, 0x63, 0x00, 0x00, 0x00, 0x80, 0xe6, 0x67, 0x04,
- 0x00, 0x80, 0x00, 0xfa, 0x27, 0x04, 0x00, 0x00, 0x07, 0xfc, 0x2f, 0x06,
- 0x00, 0x00, 0x0c, 0xfc, 0x07, 0x06, 0x00, 0x00, 0x18, 0xfe, 0x37, 0x02,
- 0x00, 0x00, 0x18, 0xff, 0x3b, 0x02, 0x00, 0x00, 0x30, 0xfe, 0xfc, 0x03,
- 0x00, 0x00, 0x60, 0x3e, 0xfc, 0x00, 0x00, 0x00, 0x60, 0xc0, 0xfe, 0x00,
- 0x00, 0x00, 0xc0, 0xff, 0xfd, 0x07, 0x00, 0x00, 0x00, 0xfc, 0xfd, 0x0f,
- 0x00, 0x00, 0x00, 0xfc, 0xfb, 0x1b, 0x00, 0x00, 0x20, 0xf8, 0xf3, 0x37,
- 0x00, 0x00, 0xf0, 0xf9, 0xf7, 0x67, 0x00, 0x00, 0xc0, 0xff, 0xef, 0xc7,
- 0x00, 0x00, 0x00, 0xe0, 0xef, 0x8f, 0x01, 0x00, 0x00, 0xe0, 0xdf, 0x0f,
- 0x0f, 0x00, 0x00, 0xe0, 0x9f, 0x0f, 0x00, 0x00, 0x00, 0xb0, 0xbf, 0x1f,
- 0x00, 0x00, 0x00, 0x20, 0x3f, 0x1f, 0x00, 0x00, 0x00, 0x20, 0x7e, 0x1e,
- 0x00, 0x00, 0x00, 0x20, 0xfe, 0x3e, 0x00, 0x00, 0x00, 0x60, 0xfc, 0x3c,
- 0x00, 0x00, 0x00, 0x40, 0xf8, 0x3d, 0x00, 0x00, 0x00, 0xc0, 0xf8, 0x19,
- 0x00, 0x00, 0x00, 0x80, 0xf1, 0x03, 0x00, 0x00, 0x00, 0x80, 0xc1, 0x03,
- 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach135.xbm b/games/x11/xroach/bitmaps/roach135.xbm
deleted file mode 100644
index 2f330d4d539a..000000000000
--- a/games/x11/xroach/bitmaps/roach135.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach135_width 48
-#define roach135_height 48
-
-static char roach135_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0xc0, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x01, 0x02, 0x0e, 0x00,
- 0x00, 0x00, 0x04, 0x03, 0x88, 0x01, 0x00, 0x00, 0xd8, 0xef, 0x88, 0x01,
- 0x00, 0x00, 0xc0, 0xff, 0x89, 0x01, 0x00, 0x00, 0x80, 0xfd, 0x8b, 0x01,
- 0x00, 0x00, 0xa0, 0xfc, 0x9f, 0x01, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x01,
- 0x00, 0x00, 0x00, 0xfe, 0x7d, 0x00, 0x00, 0xc0, 0x01, 0xff, 0xfe, 0x00,
- 0x00, 0x00, 0x06, 0x7f, 0xfe, 0x07, 0x00, 0x00, 0x0e, 0x3f, 0xfe, 0x1f,
- 0x00, 0x00, 0x3c, 0xcf, 0xfd, 0x27, 0x00, 0x00, 0x70, 0xe0, 0xfb, 0xc7,
- 0x00, 0x00, 0xe0, 0xff, 0xf7, 0x8f, 0x7f, 0x00, 0x00, 0xf8, 0xef, 0x1f,
- 0x07, 0x00, 0x00, 0xf0, 0xdf, 0x3f, 0x00, 0x00, 0x00, 0xf0, 0xbf, 0x7f,
- 0x00, 0x00, 0x80, 0xf7, 0x7f, 0x7e, 0x00, 0x00, 0xe0, 0xdf, 0xff, 0xfc,
- 0x00, 0x00, 0x00, 0x80, 0xff, 0xf9, 0x01, 0x00, 0x00, 0x80, 0xfe, 0xf3,
- 0x01, 0x00, 0x00, 0x80, 0xfd, 0xe7, 0x01, 0x00, 0x00, 0x00, 0xf1, 0xcf,
- 0x01, 0x00, 0x00, 0x00, 0xe3, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x86, 0x3f,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach150.xbm b/games/x11/xroach/bitmaps/roach150.xbm
deleted file mode 100644
index 47d9d6f9b34a..000000000000
--- a/games/x11/xroach/bitmaps/roach150.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach150_width 48
-#define roach150_height 48
-
-static char roach150_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x04, 0x70, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0xe0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0x00,
- 0x00, 0x00, 0xc0, 0x7b, 0x42, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x42, 0x00,
- 0x00, 0x00, 0xe1, 0xfd, 0x7f, 0x00, 0x00, 0x00, 0xf0, 0xfe, 0x3f, 0x04,
- 0x00, 0x00, 0x60, 0xfe, 0xfe, 0x3f, 0x00, 0x00, 0x50, 0xff, 0xfe, 0x61,
- 0x70, 0x00, 0x00, 0x7f, 0xfe, 0x87, 0x0f, 0x00, 0x00, 0x7f, 0xff, 0x0f,
- 0x00, 0x00, 0x00, 0x3f, 0xfc, 0x3f, 0x00, 0x00, 0x07, 0xdf, 0xf3, 0x7f,
- 0x00, 0x80, 0x1f, 0xee, 0xcf, 0xff, 0x00, 0x00, 0x38, 0xf0, 0x3f, 0xff,
- 0x01, 0x00, 0xe0, 0xff, 0xff, 0xfc, 0x03, 0x00, 0x00, 0xe0, 0xff, 0xf3,
- 0x07, 0x00, 0x00, 0xc0, 0xff, 0xcf, 0x07, 0x00, 0x00, 0xc0, 0xff, 0x3f,
- 0x07, 0x00, 0x00, 0x7c, 0xfc, 0xff, 0x00, 0x00, 0x00, 0x3e, 0xfc, 0xff,
- 0x01, 0x00, 0x00, 0x00, 0xec, 0xff, 0x03, 0x00, 0x00, 0x00, 0x18, 0xff,
- 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach165.xbm b/games/x11/xroach/bitmaps/roach165.xbm
deleted file mode 100644
index 2f128761bc0a..000000000000
--- a/games/x11/xroach/bitmaps/roach165.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach165_width 48
-#define roach165_height 48
-
-static char roach165_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x06, 0x00,
- 0x00, 0x00, 0x80, 0x1f, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x1c, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x18, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x44, 0xf8, 0x1f, 0x3e,
- 0x0e, 0x00, 0x30, 0x7c, 0xff, 0xe0, 0x07, 0x00, 0xe0, 0x7e, 0xff, 0x03,
- 0x00, 0x00, 0xf0, 0x7e, 0xff, 0x07, 0x00, 0x00, 0x70, 0xff, 0xff, 0x3f,
- 0x00, 0x00, 0x70, 0xff, 0xff, 0xff, 0x00, 0x00, 0x60, 0x7f, 0xff, 0xff,
- 0x01, 0x00, 0x50, 0x7f, 0x80, 0xff, 0x0f, 0x00, 0x00, 0x3f, 0x1f, 0xf8,
- 0x1f, 0x00, 0x00, 0xbf, 0xff, 0x01, 0x1f, 0x00, 0x00, 0xde, 0xff, 0x1f,
- 0x00, 0x00, 0x00, 0xec, 0xff, 0xff, 0x01, 0x00, 0x3e, 0xf0, 0xff, 0xff,
- 0x07, 0x00, 0xff, 0x8f, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x07, 0xf9, 0xff,
- 0x07, 0x00, 0x00, 0x80, 0x11, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x30, 0x00,
- 0x00, 0x00, 0x00, 0x70, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x1f,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach180.xbm b/games/x11/xroach/bitmaps/roach180.xbm
deleted file mode 100644
index e3811dca9a8c..000000000000
--- a/games/x11/xroach/bitmaps/roach180.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach180_width 48
-#define roach180_height 48
-
-static char roach180_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00,
- 0x02, 0x00, 0x08, 0x80, 0x01, 0x00, 0x01, 0x00, 0xf8, 0x81, 0x03, 0x80,
- 0x01, 0x00, 0xe0, 0x0f, 0x06, 0xfe, 0x00, 0x00, 0x00, 0x10, 0x84, 0x07,
- 0x00, 0x00, 0x00, 0x20, 0x84, 0x01, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03,
- 0x00, 0x00, 0x00, 0x8c, 0xff, 0xff, 0x01, 0x00, 0x00, 0x9c, 0xff, 0xff,
- 0x07, 0x00, 0x20, 0xbe, 0xff, 0xff, 0x0f, 0x00, 0xe0, 0x7f, 0xff, 0xff,
- 0x1f, 0x00, 0xf0, 0x7f, 0xff, 0xff, 0x0f, 0x00, 0x70, 0x7f, 0x00, 0x00,
- 0x00, 0x00, 0x70, 0x7f, 0xff, 0xff, 0x0f, 0x00, 0x70, 0x7f, 0xff, 0xff,
- 0x1f, 0x00, 0x48, 0x7f, 0xff, 0xff, 0x1f, 0x80, 0x20, 0x7f, 0xff, 0xff,
- 0x0f, 0x00, 0x00, 0xbe, 0xff, 0xff, 0x07, 0x00, 0x00, 0x9c, 0xff, 0x1f,
- 0x00, 0x00, 0x00, 0x48, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x20, 0xc4, 0x00,
- 0x00, 0x00, 0xf0, 0x1f, 0x8c, 0xff, 0x00, 0x00, 0xf8, 0x03, 0x07, 0x80,
- 0x01, 0x00, 0x18, 0x80, 0x03, 0x00, 0x03, 0x00, 0x00, 0x80, 0x01, 0x00,
- 0x02, 0x00, 0x00, 0x80, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach195.xbm b/games/x11/xroach/bitmaps/roach195.xbm
deleted file mode 100644
index 303008b86f75..000000000000
--- a/games/x11/xroach/bitmaps/roach195.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach195_width 48
-#define roach195_height 48
-
-static char roach195_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x1c,
- 0x00, 0x00, 0x00, 0x38, 0x00, 0x07, 0x00, 0x00, 0x00, 0x70, 0xe0, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf1, 0xff,
- 0x01, 0x00, 0xe7, 0x07, 0xff, 0xff, 0x07, 0x00, 0xfc, 0x1c, 0xff, 0xff,
- 0x0f, 0x00, 0x00, 0xf0, 0xff, 0xff, 0x07, 0x00, 0x00, 0xe0, 0xff, 0x3f,
- 0x08, 0x00, 0x00, 0xde, 0xff, 0xc3, 0x1f, 0x00, 0x00, 0xbe, 0x3f, 0xfc,
- 0x1f, 0x00, 0x00, 0x7f, 0xc3, 0xff, 0x1f, 0x00, 0x20, 0x7f, 0xfc, 0xff,
- 0x0f, 0x00, 0x60, 0x7f, 0xff, 0xff, 0x01, 0x00, 0x70, 0x7f, 0xff, 0x7f,
- 0x00, 0x00, 0x70, 0xfe, 0xff, 0x3f, 0x00, 0x00, 0xf0, 0xfe, 0xff, 0x07,
- 0x00, 0x00, 0xe0, 0xfe, 0xff, 0xc1, 0x03, 0x00, 0x10, 0xfd, 0x7f, 0xff,
- 0x0f, 0x00, 0xc0, 0x78, 0x11, 0x00, 0x18, 0x00, 0x02, 0xb0, 0x20, 0x00,
- 0x00, 0x00, 0x01, 0x80, 0x30, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x38, 0x00,
- 0x00, 0x00, 0x00, 0x7c, 0x1c, 0x00, 0x00, 0x00, 0x80, 0x0f, 0x0c, 0x00,
- 0x00, 0x00, 0xc0, 0x01, 0x04, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach210.xbm b/games/x11/xroach/bitmaps/roach210.xbm
deleted file mode 100644
index 11f9b027ad83..000000000000
--- a/games/x11/xroach/bitmaps/roach210.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach210_width 48
-#define roach210_height 48
-
-static char roach210_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
- 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xf0,
- 0x00, 0x00, 0x00, 0x00, 0x18, 0xff, 0x01, 0x00, 0x00, 0x03, 0x8c, 0xff,
- 0x01, 0x00, 0x00, 0x3e, 0xfc, 0x7f, 0x00, 0x00, 0x00, 0x60, 0xfc, 0x1f,
- 0x04, 0x00, 0x00, 0xc0, 0xff, 0x0f, 0x0f, 0x00, 0x00, 0xc0, 0xff, 0xc3,
- 0x0f, 0x00, 0x80, 0xe7, 0xff, 0xf0, 0x07, 0x00, 0xf0, 0xf8, 0x3f, 0xfc,
- 0x03, 0x00, 0x7f, 0xf0, 0x1f, 0xff, 0x01, 0x00, 0x0e, 0xcc, 0xc7, 0xff,
- 0x00, 0x00, 0x00, 0x9e, 0xf1, 0x7f, 0x00, 0x00, 0x00, 0x3f, 0xfc, 0x3f,
- 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x0f, 0x0f, 0x00, 0x00, 0xff, 0xfe, 0x87,
- 0x33, 0x00, 0xa0, 0xff, 0xfe, 0xff, 0x00, 0x00, 0xe0, 0xff, 0xfd, 0x1c,
- 0x00, 0x00, 0xf0, 0xff, 0x7d, 0x00, 0x00, 0x00, 0xe3, 0xfd, 0xfd, 0x00,
- 0x00, 0x00, 0xe0, 0xf9, 0x85, 0x00, 0x00, 0x00, 0xc0, 0xf1, 0xc7, 0x00,
- 0x00, 0x00, 0x40, 0xc2, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x00,
- 0x00, 0x00, 0x20, 0x80, 0x63, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x20, 0x00,
- 0x00, 0x00, 0x08, 0x70, 0x20, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach225.xbm b/games/x11/xroach/bitmaps/roach225.xbm
deleted file mode 100644
index cd17ce108886..000000000000
--- a/games/x11/xroach/bitmaps/roach225.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach225_width 48
-#define roach225_height 48
-
-static char roach225_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x18, 0x38, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3f,
- 0x00, 0x00, 0x00, 0x00, 0xc6, 0x3f, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x9f,
- 0x01, 0x00, 0x00, 0x00, 0xf1, 0xcf, 0x01, 0x00, 0x00, 0x00, 0xf9, 0xe7,
- 0x01, 0x00, 0x00, 0x00, 0xff, 0xf3, 0x01, 0x00, 0x00, 0x0f, 0xff, 0xf9,
- 0x01, 0x00, 0xc0, 0x1f, 0xff, 0xfc, 0x00, 0x00, 0x00, 0xf0, 0x3f, 0x7e,
- 0x00, 0x00, 0x00, 0xe0, 0x9f, 0x7f, 0x00, 0x00, 0x00, 0xf0, 0xcf, 0x3f,
- 0x3e, 0x00, 0x80, 0xff, 0xe7, 0x1f, 0x07, 0x00, 0xc0, 0xf0, 0xf3, 0xdf,
- 0x03, 0x00, 0x70, 0xe0, 0xf9, 0xcf, 0x00, 0x00, 0x38, 0x3c, 0xfc, 0x67,
- 0x00, 0x00, 0x1e, 0x7e, 0xfe, 0x1f, 0x00, 0x80, 0x0f, 0xfe, 0xfc, 0x01,
- 0x00, 0x00, 0x00, 0xfe, 0xfd, 0x01, 0x00, 0x00, 0x00, 0xfe, 0xfb, 0x01,
- 0x00, 0x00, 0x00, 0xff, 0x7b, 0x03, 0x00, 0x00, 0x00, 0xfd, 0x0f, 0x03,
- 0x00, 0x00, 0x80, 0xf9, 0x1f, 0x03, 0x00, 0x00, 0xc0, 0xe3, 0x1f, 0x03,
- 0x00, 0x00, 0x80, 0x9f, 0x1b, 0x01, 0x00, 0x00, 0x00, 0x07, 0x18, 0x01,
- 0x00, 0x00, 0x02, 0x08, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
- 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach240.xbm b/games/x11/xroach/bitmaps/roach240.xbm
deleted file mode 100644
index 467ac9db2b44..000000000000
--- a/games/x11/xroach/bitmaps/roach240.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach240_width 48
-#define roach240_height 48
-
-static char roach240_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01,
- 0x00, 0x00, 0x00, 0x80, 0xc1, 0x03, 0x00, 0x00, 0x00, 0x80, 0xf1, 0x11,
- 0x00, 0x00, 0x00, 0x80, 0xf8, 0x18, 0x00, 0x00, 0x00, 0x80, 0xf8, 0x3c,
- 0x00, 0x00, 0x00, 0x40, 0x7c, 0x3c, 0x00, 0x00, 0x00, 0x40, 0x7e, 0x3e,
- 0x00, 0x00, 0x00, 0x20, 0x3f, 0x1e, 0x00, 0x00, 0x00, 0xa0, 0x3f, 0x1f,
- 0x00, 0x00, 0x00, 0xe0, 0x9f, 0x1f, 0x3e, 0x00, 0x00, 0xc0, 0x9f, 0x0f,
- 0x07, 0x00, 0x00, 0xc0, 0xcf, 0x8f, 0x00, 0x00, 0x00, 0xe6, 0xe7, 0xcf,
- 0x00, 0x00, 0xc0, 0xf9, 0xe7, 0x47, 0x00, 0x00, 0x00, 0xf0, 0xf3, 0x67,
- 0x00, 0x00, 0x00, 0xf8, 0xf3, 0x37, 0x00, 0x00, 0x00, 0xf8, 0xf9, 0x1f,
- 0x00, 0x00, 0x00, 0xff, 0xfd, 0x07, 0x00, 0x00, 0xc0, 0x03, 0xfc, 0x01,
- 0x00, 0x00, 0x60, 0x00, 0xfe, 0x01, 0x00, 0x00, 0x30, 0xfc, 0xfc, 0x03,
- 0x00, 0x00, 0x30, 0xfe, 0xfb, 0x06, 0x00, 0x00, 0x30, 0xfe, 0x77, 0x06,
- 0x00, 0x00, 0x1c, 0xfc, 0x37, 0x06, 0x00, 0x00, 0x02, 0xfc, 0x2f, 0x06,
- 0x00, 0x00, 0x00, 0xf8, 0x7f, 0x04, 0x00, 0x00, 0x00, 0xe5, 0x6f, 0x0c,
- 0x00, 0x00, 0x00, 0x8e, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x60, 0x00,
- 0x00, 0x00, 0x00, 0x3e, 0x20, 0x00, 0x00, 0x00, 0x80, 0xf0, 0x30, 0x00,
- 0x00, 0x00, 0x40, 0x10, 0x30, 0x00, 0x00, 0x00, 0x00, 0x10, 0x18, 0x00,
- 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
- 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach255.xbm b/games/x11/xroach/bitmaps/roach255.xbm
deleted file mode 100644
index de5cea64ec69..000000000000
--- a/games/x11/xroach/bitmaps/roach255.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach255_width 48
-#define roach255_height 48
-
-static char roach255_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x02, 0x18, 0x00, 0x00, 0x00, 0x00, 0x06, 0x9c, 0x01,
- 0x00, 0x00, 0x00, 0x0c, 0x9e, 0x03, 0x00, 0x00, 0x00, 0x18, 0x8f, 0x03,
- 0x00, 0x00, 0x00, 0x18, 0xcf, 0x03, 0x00, 0x00, 0x00, 0x98, 0xcf, 0x03,
- 0x00, 0x00, 0x00, 0x88, 0xcf, 0x83, 0x01, 0x00, 0x00, 0xc8, 0xc7, 0xe3,
- 0x00, 0x00, 0x00, 0xc8, 0xe7, 0x63, 0x00, 0x00, 0x00, 0xec, 0xe7, 0x33,
- 0x00, 0x00, 0x00, 0xec, 0xe7, 0x33, 0x00, 0x00, 0x00, 0xf8, 0xe3, 0x13,
- 0x00, 0x00, 0x00, 0xf8, 0xf3, 0x1b, 0x00, 0x00, 0x00, 0xf0, 0xf3, 0x1b,
- 0x00, 0x00, 0x00, 0xf0, 0xf3, 0x09, 0x00, 0x00, 0x80, 0xff, 0xf9, 0x07,
- 0x00, 0x00, 0xc0, 0xf8, 0xf9, 0x01, 0x00, 0x00, 0xe0, 0xf8, 0xf9, 0x01,
- 0x00, 0x00, 0x10, 0xfc, 0xf9, 0x01, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x07,
- 0x00, 0x00, 0x00, 0x02, 0xfc, 0x0c, 0x00, 0x00, 0x00, 0x01, 0xf8, 0x0c,
- 0x00, 0x00, 0x80, 0xf8, 0x63, 0x18, 0x00, 0x00, 0xc0, 0xfc, 0x6f, 0x18,
- 0x00, 0x00, 0x60, 0xfc, 0x9f, 0x30, 0x00, 0x00, 0x60, 0xfc, 0x3f, 0x01,
- 0x00, 0x00, 0x60, 0xf8, 0x3f, 0x01, 0x00, 0x00, 0x20, 0xe0, 0x3f, 0x01,
- 0x00, 0x00, 0x38, 0xb0, 0x8f, 0x01, 0x00, 0x00, 0x08, 0xf4, 0x83, 0x01,
- 0x00, 0x00, 0x00, 0xf0, 0x81, 0x01, 0x00, 0x00, 0x00, 0xf0, 0x85, 0x00,
- 0x00, 0x00, 0x00, 0x08, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
- 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach270.xbm b/games/x11/xroach/bitmaps/roach270.xbm
deleted file mode 100644
index d3a07875e67b..000000000000
--- a/games/x11/xroach/bitmaps/roach270.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach270_width 48
-#define roach270_height 48
-
-static char roach270_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0xc0, 0x0c, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x1c, 0x00,
- 0x00, 0x00, 0x00, 0xe0, 0x1c, 0x00, 0x00, 0x00, 0x20, 0xf0, 0x3c, 0x18,
- 0x00, 0x00, 0xc0, 0xf0, 0x3c, 0x0c, 0x00, 0x00, 0x80, 0xf1, 0x3c, 0x06,
- 0x00, 0x00, 0x00, 0xf9, 0x7c, 0x06, 0x00, 0x00, 0x00, 0xf9, 0x7c, 0x06,
- 0x00, 0x00, 0x00, 0xf9, 0x7c, 0x06, 0x00, 0x00, 0x00, 0xf9, 0x7c, 0x06,
- 0x00, 0x00, 0x00, 0xf9, 0x7c, 0x06, 0x00, 0x00, 0x00, 0xfb, 0x7c, 0x02,
- 0x00, 0x00, 0x00, 0xff, 0xfc, 0x02, 0x00, 0x00, 0x00, 0xfe, 0xfc, 0x01,
- 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xfc, 0x00,
- 0x00, 0x00, 0x00, 0xf8, 0xfc, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 0x07,
- 0x00, 0x00, 0x80, 0xfc, 0xfc, 0x0c, 0x00, 0x00, 0xc0, 0xfc, 0xfc, 0x18,
- 0x00, 0x00, 0x60, 0x78, 0xfc, 0x10, 0x00, 0x00, 0x30, 0x18, 0xc0, 0x20,
- 0x00, 0x00, 0x00, 0xc6, 0x1f, 0x01, 0x00, 0x00, 0x00, 0xe3, 0x7f, 0x02,
- 0x00, 0x00, 0x00, 0xf1, 0xff, 0x06, 0x00, 0x00, 0x80, 0xf1, 0xff, 0x06,
- 0x00, 0x00, 0x80, 0xf1, 0xff, 0x06, 0x00, 0x00, 0x80, 0xe1, 0x7f, 0x06,
- 0x00, 0x00, 0x80, 0x81, 0x1f, 0x06, 0x00, 0x00, 0x80, 0x81, 0x0f, 0x04,
- 0x00, 0x00, 0x80, 0x81, 0x2f, 0x04, 0x00, 0x00, 0xc0, 0x80, 0x0f, 0x0c,
- 0x00, 0x00, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
- 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach285.xbm b/games/x11/xroach/bitmaps/roach285.xbm
deleted file mode 100644
index 5e2af7a6bb64..000000000000
--- a/games/x11/xroach/bitmaps/roach285.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach285_width 48
-#define roach285_height 48
-
-static char roach285_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x60, 0x00, 0x01, 0x00, 0x00, 0x00, 0xe6, 0x80, 0x00,
- 0x00, 0x00, 0x00, 0xe6, 0xc1, 0x00, 0x00, 0x00, 0x00, 0xcf, 0x63, 0x00,
- 0x00, 0x00, 0x00, 0xcf, 0x47, 0x00, 0x00, 0x00, 0x00, 0xcf, 0x47, 0x00,
- 0x00, 0x00, 0x03, 0xdf, 0x4f, 0x00, 0x00, 0x00, 0x1c, 0x9f, 0xcf, 0x00,
- 0x00, 0x00, 0x30, 0x9f, 0x9f, 0x00, 0x00, 0x00, 0x30, 0xbf, 0x9f, 0x00,
- 0x00, 0x00, 0x20, 0xbf, 0xbf, 0x00, 0x00, 0x00, 0x40, 0x3e, 0xff, 0x00,
- 0x00, 0x00, 0x40, 0x3e, 0x7f, 0x00, 0x00, 0x00, 0xc0, 0x7e, 0x7f, 0x00,
- 0x00, 0x00, 0xc0, 0x7f, 0x7f, 0x03, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x07,
- 0x00, 0x00, 0x00, 0xfe, 0xfe, 0x1c, 0x00, 0x00, 0x00, 0xfc, 0xfe, 0x18,
- 0x00, 0x00, 0x00, 0xfc, 0xfe, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfd, 0x00,
- 0x00, 0x00, 0x00, 0xfd, 0x01, 0x07, 0x00, 0x00, 0x80, 0x7c, 0xf8, 0x0e,
- 0x00, 0x00, 0xc0, 0xb8, 0xff, 0x0d, 0x00, 0x00, 0x40, 0xd8, 0xff, 0x09,
- 0x00, 0x00, 0x00, 0xcc, 0xff, 0x19, 0x00, 0x00, 0x00, 0xee, 0xff, 0x19,
- 0x00, 0x00, 0x00, 0xe6, 0xff, 0x18, 0x00, 0x00, 0x00, 0xc6, 0x7f, 0x30,
- 0x00, 0x00, 0x00, 0x86, 0x7f, 0x60, 0x00, 0x00, 0x00, 0x06, 0x7e, 0xc1,
- 0x00, 0x00, 0x00, 0x04, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0xbc, 0x00,
- 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01,
- 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach300.xbm b/games/x11/xroach/bitmaps/roach300.xbm
deleted file mode 100644
index ca4e89bb7e42..000000000000
--- a/games/x11/xroach/bitmaps/roach300.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach300_width 48
-#define roach300_height 48
-
-static char roach300_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x00,
- 0x00, 0x00, 0x00, 0x1f, 0x06, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x04, 0x00,
- 0x00, 0x00, 0x60, 0x7c, 0x0c, 0x00, 0x00, 0x00, 0xe0, 0x7c, 0x0c, 0x00,
- 0x00, 0x00, 0xf0, 0xf8, 0x08, 0x00, 0x00, 0x00, 0xe0, 0xf9, 0x11, 0x00,
- 0x00, 0x00, 0xe0, 0xf3, 0x13, 0x00, 0x00, 0x00, 0xe0, 0xf3, 0x17, 0x00,
- 0x00, 0x00, 0xc0, 0xe7, 0x1f, 0x00, 0x00, 0xc0, 0xc7, 0xc7, 0x1f, 0x00,
- 0x00, 0x00, 0xcc, 0xcf, 0x9f, 0x00, 0x00, 0x00, 0x88, 0x9f, 0xff, 0x07,
- 0x00, 0x00, 0x98, 0x9f, 0xff, 0x3c, 0x00, 0x00, 0xb0, 0x3f, 0x7f, 0x00,
- 0x00, 0x00, 0x60, 0x7f, 0xff, 0x00, 0x00, 0x00, 0xe0, 0x7f, 0xfe, 0x00,
- 0x00, 0x00, 0x00, 0xfe, 0x7e, 0x0f, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x1c,
- 0x00, 0x00, 0x00, 0xfc, 0xf1, 0x19, 0x00, 0x00, 0x00, 0x7e, 0xf8, 0x33,
- 0x00, 0x00, 0x00, 0x79, 0xfc, 0x63, 0x00, 0x00, 0x80, 0x31, 0xfe, 0x63,
- 0x00, 0x00, 0x80, 0x31, 0xff, 0xc3, 0x01, 0x00, 0x80, 0x91, 0xff, 0x01,
- 0x03, 0x00, 0x80, 0x91, 0xff, 0x04, 0x00, 0x00, 0x80, 0x98, 0x7f, 0x01,
- 0x00, 0x00, 0x00, 0x18, 0xff, 0x03, 0x00, 0x00, 0x00, 0x10, 0xf0, 0x05,
- 0x00, 0x00, 0x00, 0x30, 0x60, 0x08, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x60, 0x40, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach315.xbm b/games/x11/xroach/bitmaps/roach315.xbm
deleted file mode 100644
index 922698ace4b7..000000000000
--- a/games/x11/xroach/bitmaps/roach315.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach315_width 48
-#define roach315_height 48
-
-static char roach315_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x60, 0x20, 0x00, 0x00,
- 0x00, 0x00, 0xf0, 0xe1, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xc7, 0x01, 0x00,
- 0x00, 0x00, 0xe0, 0x9f, 0x01, 0x00, 0x00, 0x00, 0xc6, 0x3f, 0x02, 0x00,
- 0x00, 0x00, 0x8e, 0x7f, 0x06, 0x00, 0x00, 0x00, 0x1e, 0xff, 0x06, 0x00,
- 0x00, 0x00, 0x3e, 0xfe, 0xc3, 0x00, 0x00, 0x00, 0x7c, 0xfc, 0xe7, 0x1f,
- 0x00, 0x00, 0xfc, 0xf8, 0x3f, 0x00, 0x00, 0x00, 0xf8, 0xf1, 0x1f, 0x00,
- 0x00, 0x00, 0xf8, 0xe7, 0x3f, 0x00, 0x00, 0x80, 0xf1, 0xcf, 0x3f, 0x02,
- 0x00, 0x00, 0xe6, 0x9f, 0xff, 0x07, 0x00, 0x00, 0xcc, 0x3f, 0x1f, 0x08,
- 0x00, 0x00, 0x9c, 0x7f, 0xce, 0x31, 0x00, 0x00, 0xf0, 0xff, 0xe0, 0x63,
- 0x00, 0x00, 0xc0, 0xfe, 0xf1, 0xe7, 0x03, 0x00, 0x00, 0xfc, 0xf9, 0xc7,
- 0x00, 0x00, 0x00, 0xf8, 0xf8, 0x07, 0x00, 0x00, 0x00, 0xfe, 0xfc, 0x03,
- 0x00, 0x00, 0x00, 0x62, 0xfe, 0x05, 0x00, 0x00, 0x00, 0x42, 0xfe, 0x0e,
- 0x00, 0x00, 0x00, 0x42, 0xfe, 0x0f, 0x00, 0x00, 0x00, 0x46, 0xfe, 0x47,
- 0x00, 0x00, 0x00, 0x66, 0x84, 0x03, 0x00, 0x00, 0x00, 0xc2, 0x40, 0x00,
- 0x04, 0x00, 0x00, 0x80, 0x00, 0x02, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach330.xbm b/games/x11/xroach/bitmaps/roach330.xbm
deleted file mode 100644
index 67735f80d6e3..000000000000
--- a/games/x11/xroach/bitmaps/roach330.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach330_width 48
-#define roach330_height 48
-
-static char roach330_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x60, 0x00, 0x00,
- 0x00, 0x00, 0xfe, 0xc1, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x8f, 0xf0, 0x01,
- 0x00, 0x00, 0xf8, 0xff, 0x38, 0x00, 0x00, 0x80, 0xe0, 0xff, 0x0f, 0x00,
- 0x00, 0x80, 0xc3, 0xff, 0x07, 0x00, 0x00, 0x80, 0x0f, 0xff, 0x1f, 0x03,
- 0x00, 0x80, 0x3f, 0xfc, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xf0, 0x7f, 0x38,
- 0x00, 0x00, 0xfe, 0xe3, 0x8f, 0xe1, 0x07, 0x00, 0xf8, 0x8f, 0xc7, 0xc3,
- 0x00, 0x00, 0xf0, 0x3f, 0xe6, 0x07, 0x00, 0x00, 0xe1, 0xff, 0xf0, 0x07,
- 0x00, 0xc0, 0xc7, 0xff, 0xf9, 0x07, 0x00, 0x30, 0xbc, 0xff, 0xf9, 0x07,
- 0x00, 0x00, 0xf0, 0xfd, 0xfd, 0x1f, 0x00, 0x00, 0x00, 0xf8, 0xfd, 0x7f,
- 0x00, 0x00, 0x00, 0xf0, 0xfc, 0x1d, 0x08, 0x00, 0x00, 0xc8, 0xfd, 0x1e,
- 0x00, 0x00, 0x00, 0x0c, 0x7d, 0x06, 0x00, 0x00, 0x00, 0x08, 0x19, 0x02,
- 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00,
- 0x00, 0x00, 0x00, 0x10, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/bitmaps/roach345.xbm b/games/x11/xroach/bitmaps/roach345.xbm
deleted file mode 100644
index af01fa58f0ba..000000000000
--- a/games/x11/xroach/bitmaps/roach345.xbm
+++ /dev/null
@@ -1,30 +0,0 @@
-#define roach345_width 48
-#define roach345_height 48
-
-static char roach345_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x40, 0x00,
- 0x00, 0x00, 0x00, 0x0e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x00,
- 0x00, 0x00, 0xff, 0x23, 0x03, 0x00, 0x00, 0x80, 0xff, 0xff, 0x83, 0x03,
- 0x00, 0xc0, 0xff, 0xff, 0xe3, 0xff, 0x03, 0x80, 0xff, 0xff, 0x3f, 0x70,
- 0x00, 0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00, 0x40, 0x00, 0xff, 0xcf, 0x03,
- 0x00, 0xe0, 0x0f, 0xf0, 0xef, 0x03, 0x00, 0xc0, 0x7f, 0x00, 0xf7, 0x07,
- 0x00, 0xc0, 0xff, 0x07, 0xf0, 0x07, 0x00, 0x00, 0xff, 0x7f, 0xf0, 0xff,
- 0x13, 0x00, 0xfe, 0xff, 0xf1, 0x3f, 0x00, 0x00, 0xf0, 0xff, 0xf9, 0x3b,
- 0x00, 0x00, 0xc0, 0xff, 0xf9, 0x1f, 0x00, 0x00, 0x82, 0xff, 0xfb, 0x1f,
- 0x00, 0x00, 0xff, 0xfb, 0xfb, 0x03, 0x00, 0x80, 0xe1, 0xe1, 0xf3, 0x81,
- 0x00, 0x40, 0x00, 0x30, 0x62, 0x00, 0x02, 0x00, 0x00, 0x30, 0x04, 0x00,
- 0x04, 0x00, 0x00, 0x60, 0x0c, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x78, 0x00,
- 0x00, 0x00, 0x00, 0xc0, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x80, 0x00, 0x06,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00};
-
diff --git a/games/x11/xroach/roachmap.h b/games/x11/xroach/roachmap.h
deleted file mode 100644
index 209bf54727cf..000000000000
--- a/games/x11/xroach/roachmap.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#include "roach000.xbm"
-#include "roach015.xbm"
-#include "roach030.xbm"
-#include "roach045.xbm"
-#include "roach060.xbm"
-#include "roach075.xbm"
-#include "roach090.xbm"
-#include "roach105.xbm"
-#include "roach120.xbm"
-#include "roach135.xbm"
-#include "roach150.xbm"
-#include "roach165.xbm"
-#include "roach180.xbm"
-#include "roach195.xbm"
-#include "roach210.xbm"
-#include "roach225.xbm"
-#include "roach240.xbm"
-#include "roach255.xbm"
-#include "roach270.xbm"
-#include "roach285.xbm"
-#include "roach300.xbm"
-#include "roach315.xbm"
-#include "roach330.xbm"
-#include "roach345.xbm"
-
-#define ROACH_HEADINGS 24 /* number of orientations */
-#define ROACH_ANGLE 15 /* angle between orientations */
-
-typedef struct RoachMap {
- char *roachBits;
- Pixmap pixmap;
- int width;
- int height;
- float sine;
- float cosine;
-} RoachMap;
-
-RoachMap roachPix[] = {
- {roach000_bits, None, roach000_height, roach000_width, 0.0, 0.0},
- {roach015_bits, None, roach015_height, roach015_width, 0.0, 0.0},
- {roach030_bits, None, roach030_height, roach030_width, 0.0, 0.0},
- {roach045_bits, None, roach045_height, roach045_width, 0.0, 0.0},
- {roach060_bits, None, roach060_height, roach060_width, 0.0, 0.0},
- {roach075_bits, None, roach075_height, roach075_width, 0.0, 0.0},
- {roach090_bits, None, roach090_height, roach090_width, 0.0, 0.0},
- {roach105_bits, None, roach105_height, roach105_width, 0.0, 0.0},
- {roach120_bits, None, roach120_height, roach120_width, 0.0, 0.0},
- {roach135_bits, None, roach135_height, roach135_width, 0.0, 0.0},
- {roach150_bits, None, roach150_height, roach150_width, 0.0, 0.0},
- {roach165_bits, None, roach165_height, roach165_width, 0.0, 0.0},
- {roach180_bits, None, roach180_height, roach180_width, 0.0, 0.0},
- {roach195_bits, None, roach195_height, roach195_width, 0.0, 0.0},
- {roach210_bits, None, roach210_height, roach210_width, 0.0, 0.0},
- {roach225_bits, None, roach225_height, roach225_width, 0.0, 0.0},
- {roach240_bits, None, roach240_height, roach240_width, 0.0, 0.0},
- {roach255_bits, None, roach255_height, roach255_width, 0.0, 0.0},
- {roach270_bits, None, roach270_height, roach270_width, 0.0, 0.0},
- {roach285_bits, None, roach285_height, roach285_width, 0.0, 0.0},
- {roach300_bits, None, roach300_height, roach300_width, 0.0, 0.0},
- {roach315_bits, None, roach315_height, roach315_width, 0.0, 0.0},
- {roach330_bits, None, roach330_height, roach330_width, 0.0, 0.0},
- {roach345_bits, None, roach345_height, roach345_width, 0.0, 0.0},
-};
-
-
diff --git a/games/x11/xroach/xroach.6 b/games/x11/xroach/xroach.6
deleted file mode 100644
index 509fc407a99d..000000000000
--- a/games/x11/xroach/xroach.6
+++ /dev/null
@@ -1,75 +0,0 @@
-.\" Copyright (c) 1991, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" from: X Version 11 Release 4, May 30, 1991
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" @(#)xroach.6 8.2 (Berkeley) 4/19/94
-.\"
-.TH XROACH 6 "April 19, 1994" "X Version 11 Release 4"
-.SH NAME
-xroach \- cockroaches hide under your windows
-.SH SYNOPSIS
-.B xroach
-[-option .,..]
-.SH DESCRIPTION
-.I Xroach
-displays disgusting cockroaches on your root window. These creepy crawlies
-scamper
-around until they find a window to hide under. Whenever you move or iconify
-a window, the exposed beetles again scamper for cover.
-.SH OPTIONS
-.TP 8
-.B \-display \fIdisplay_name\fB
-Drop the roaches on the given display. Make sure the display is nearby, so you
-can hear the screams.
-.TP 8
-.B \-rc \fIroach_color\fB
-Use the given string as the color for the bugs instead of the default "black".
-.TP 8
-.B \-speed \fIroach_speed\fB
-Use the given speed for the insects instead of the default 20.0. For example,
-in winter the speed should be set to 5.0. In summer, 30.0 might be about
-right.
-.TP 8
-.B \-roaches \fInum_roaches\fB
-This is the number of the little critters. Default is 10.
-.SH BUGS
-As given by the -roaches option. Default is 10.
-.SH COPYRIGHT
-Copyright 1991 by J.T. Anderson
-.SH AUTHORS
-J.T. Anderson
-(jta@locus.com)
-.SH DEDICATION
-Greg McFarlane
-(gregm@otc.otca.oz.au)
-.SH "SEE ALSO"
-xroachmotel(1), xddt(1)
diff --git a/games/x11/xroach/xroach.c b/games/x11/xroach/xroach.c
deleted file mode 100644
index 971e90ff5614..000000000000
--- a/games/x11/xroach/xroach.c
+++ /dev/null
@@ -1,602 +0,0 @@
-/*
- Xroach - A game of skill. Try to find the roaches under your windows.
-
- Copyright 1991 by J.T. Anderson
-
- jta@locus.com
-
- This program may be freely distributed provided that all
- copyright notices are retained.
-
- To build:
- cc -o xroach roach.c -lX11 [-lsocketorwhatever] [-lm] [-l...]
-
- Dedicated to Greg McFarlane. (gregm@otc.otca.oz.au)
-*/
-#include <X11/Xlib.h>
-#include <X11/Xutil.h>
-#include <X11/Xos.h>
-
-#include <stdio.h>
-#include <math.h>
-#include <signal.h>
-#include <stdlib.h>
-
-char Copyright[] = "Xroach\nCopyright 1991 J.T. Anderson";
-
-#include "roachmap.h"
-
-typedef unsigned long Pixel;
-typedef int ErrorHandler();
-
-#define SCAMPER_EVENT (LASTEvent + 1)
-
-#if !defined(GRAB_SERVER)
-#define GRAB_SERVER 0
-#endif
-
-Display *display;
-int screen;
-Window rootWin;
-unsigned int display_width, display_height;
-int center_x, center_y;
-GC gc;
-char *display_name = NULL;
-Pixel black, white;
-
-int done = 0;
-int eventBlock = 0;
-int errorVal = 0;
-
-typedef struct Roach {
- RoachMap *rp;
- int index;
- float x;
- float y;
- int intX;
- int intY;
- int hidden;
- int turnLeft;
- int steps;
-} Roach;
-
-Roach *roaches;
-int maxRoaches = 10;
-int curRoaches = 0;
-float roachSpeed = 20.0;
-
-Region rootVisible = NULL;
-
-void Usage();
-void SigHandler();
-void AddRoach();
-void MoveRoach();
-void DrawRoaches();
-void CoverRoot();
-int CalcRootVisible();
-int MarkHiddenRoaches();
-Pixel AllocNamedColor();
-
-void
-main(ac, av)
-int ac;
-char *av[];
-{
- XGCValues xgcv;
- int ax;
- char *arg;
- RoachMap *rp;
- int rx;
- float angle;
- XEvent ev;
- char *roachColor = "black";
- int nVis;
- int needCalc;
-
- /*
- Process command line options.
- */
- for (ax=1; ax<ac; ax++) {
- arg = av[ax];
- if (strcmp(arg, "-display") == 0) {
- display_name = av[++ax];
- }
- else if (strcmp(arg, "-rc") == 0) {
- roachColor = av[++ax];
- }
- else if (strcmp(arg, "-speed") == 0) {
- roachSpeed = atof(av[++ax]);
- }
- else if (strcmp(arg, "-roaches") == 0) {
- maxRoaches = strtol(av[++ax], (char **)NULL, 0);
- }
- else {
- Usage();
- }
- }
-
- srand((int)time((long *)NULL));
-
- /*
- Catch some signals so we can erase any visible roaches.
- */
- signal(SIGKILL, SigHandler);
- signal(SIGINT, SigHandler);
- signal(SIGTERM, SigHandler);
- signal(SIGHUP, SigHandler);
-
- display = XOpenDisplay(display_name);
- if (display == NULL) {
- if (display_name == NULL) display_name = getenv("DISPLAY");
- (void) fprintf(stderr, "%s: cannot connect to X server %s\n", av[0],
- display_name ? display_name : "(default)");
- exit(1);
- }
-
- screen = DefaultScreen(display);
- rootWin = RootWindow(display, screen);
- black = BlackPixel(display, screen);
- white = WhitePixel(display, screen);
-
- display_width = DisplayWidth(display, screen);
- display_height = DisplayHeight(display, screen);
- center_x = display_width / 2;
- center_y = display_height / 2;
-
- /*
- Create roach pixmaps at several orientations.
- */
- for (ax=0; ax<360; ax+=ROACH_ANGLE) {
- rx = ax / ROACH_ANGLE;
- angle = rx * 0.261799387799;
- rp = &roachPix[rx];
- rp->pixmap = XCreateBitmapFromData(display, rootWin,
- rp->roachBits, rp->width, rp->height);
- rp->sine = sin(angle);
- rp->cosine = cos(angle);
- }
-
- roaches = (Roach *)malloc(sizeof(Roach) * maxRoaches);
-
- gc = XCreateGC(display, rootWin, 0L, &xgcv);
- XSetForeground(display, gc, AllocNamedColor(roachColor, black));
- XSetFillStyle(display, gc, FillStippled);
-
- while (curRoaches < maxRoaches)
- AddRoach();
-
- XSelectInput(display, rootWin, ExposureMask | SubstructureNotifyMask);
-
- needCalc = 1;
- while (!done) {
- if (XPending(display)) {
- XNextEvent(display, &ev);
- }
- else {
- if (needCalc) {
- needCalc = CalcRootVisible();
- }
- nVis = MarkHiddenRoaches();
- if (nVis) {
- ev.type = SCAMPER_EVENT;
- }
- else {
- DrawRoaches();
- eventBlock = 1;
- XNextEvent(display, &ev);
- eventBlock = 0;
- }
- }
-
- switch (ev.type) {
-
- case SCAMPER_EVENT:
- for (rx=0; rx<curRoaches; rx++) {
- if (!roaches[rx].hidden)
- MoveRoach(rx);
- }
- DrawRoaches();
- XSync(display, False);
- break;
-
- case Expose:
- case MapNotify:
- case UnmapNotify:
- case ConfigureNotify:
- needCalc = 1;
- break;
-
- }
- }
-
- CoverRoot();
-
- XCloseDisplay(display);
-}
-
-#define USEPRT(msg) fprintf(stderr, msg)
-
-void
-Usage()
-{
- USEPRT("Usage: xroach [options]\n\n");
- USEPRT("Options:\n");
- USEPRT(" -display displayname\n");
- USEPRT(" -rc roachcolor\n");
- USEPRT(" -roaches numroaches\n");
- USEPRT(" -speed roachspeed\n");
-
- exit(1);
-}
-
-void
-SigHandler()
-{
-
- /*
- If we are blocked, no roaches are visible and we can just bail
- out. If we are not blocked, then let the main procedure clean
- up the root window.
- */
- if (eventBlock) {
- XCloseDisplay(display);
- exit(0);
- }
- else {
- done = 1;
- }
-}
-
-/*
- Generate random integer between 0 and maxVal-1.
-*/
-int
-RandInt(maxVal)
-int maxVal;
-{
- return rand() % maxVal;
-}
-
-/*
- Check for roach completely in specified rectangle.
-*/
-int
-RoachInRect(roach, rx, ry, x, y, width, height)
-Roach *roach;
-int rx;
-int ry;
-int x;
-int y;
-unsigned int width;
-unsigned int height;
-{
- if (rx < x) return 0;
- if ((rx + roach->rp->width) > (x + width)) return 0;
- if (ry < y) return 0;
- if ((ry + roach->rp->height) > (y + height)) return 0;
-
- return 1;
-}
-
-/*
- Check for roach overlapping specified rectangle.
-*/
-int
-RoachOverRect(roach, rx, ry, x, y, width, height)
-Roach *roach;
-int rx;
-int ry;
-int x;
-int y;
-unsigned int width;
-unsigned int height;
-{
- if (rx >= (x + width)) return 0;
- if ((rx + roach->rp->width) <= x) return 0;
- if (ry >= (y + height)) return 0;
- if ((ry + roach->rp->height) <= y) return 0;
-
- return 1;
-}
-
-/*
- Give birth to a roach.
-*/
-void
-AddRoach()
-{
- Roach *r;
-
- if (curRoaches < maxRoaches) {
- r = &roaches[curRoaches++];
- r->index = RandInt(ROACH_HEADINGS);
- r->rp = &roachPix[r->index];
- r->x = RandInt(display_width - r->rp->width);
- r->y = RandInt(display_height - r->rp->height);
- r->intX = -1;
- r->intY = -1;
- r->hidden = 0;
- r->steps = RandInt(200);
- r->turnLeft = RandInt(100) >= 50;
- }
-}
-
-/*
- Turn a roach.
-*/
-void
-TurnRoach(roach)
-Roach *roach;
-{
- if (roach->index != (roach->rp - roachPix)) return;
-
- if (roach->turnLeft) {
- roach->index += (RandInt(30) / 10) + 1;
- if (roach->index >= ROACH_HEADINGS)
- roach->index -= ROACH_HEADINGS;
- }
- else {
- roach->index -= (RandInt(30) / 10) + 1;
- if (roach->index < 0)
- roach->index += ROACH_HEADINGS;
- }
-}
-
-/*
- Move a roach.
-*/
-void
-MoveRoach(rx)
-int rx;
-{
- Roach *roach;
- Roach *r2;
- float newX;
- float newY;
- int ii;
-
- roach = &roaches[rx];
- newX = roach->x + (roachSpeed * roach->rp->cosine);
- newY = roach->y - (roachSpeed * roach->rp->sine);
-
- if (RoachInRect(roach, (int)newX, (int)newY,
- 0, 0, display_width, display_height)) {
-
- roach->x = newX;
- roach->y = newY;
-
- if (roach->steps-- <= 0) {
- TurnRoach(roach);
- roach->steps = RandInt(200);
- }
-
- for (ii=rx+1; ii<curRoaches; ii++) {
- r2 = &roaches[ii];
- if (RoachOverRect(roach, (int)newX, (int)newY,
- r2->intX, r2->intY, r2->rp->width, r2->rp->height)) {
-
- TurnRoach(roach);
- }
- }
- }
- else {
- TurnRoach(roach);
- }
-}
-
-/*
- Draw all roaches.
-*/
-void
-DrawRoaches()
-{
- Roach *roach;
- int rx;
-
- for (rx=0; rx<curRoaches; rx++) {
- roach = &roaches[rx];
-
- if (roach->intX >= 0) {
- XClearArea(display, rootWin, roach->intX, roach->intY,
- roach->rp->width, roach->rp->height, False);
- }
- }
-
- for (rx=0; rx<curRoaches; rx++) {
- roach = &roaches[rx];
-
- if (!roach->hidden) {
- roach->intX = roach->x;
- roach->intY = roach->y;
- roach->rp = &roachPix[roach->index];
-
- XSetStipple(display, gc, roach->rp->pixmap);
- XSetTSOrigin(display, gc, roach->intX, roach->intY);
- XFillRectangle(display, rootWin, gc,
- roach->intX, roach->intY, roach->rp->width, roach->rp->height);
- }
- else {
- roach->intX = -1;
- }
- }
-}
-
-/*
- Cover root window to erase roaches.
-*/
-void
-CoverRoot()
-{
- XSetWindowAttributes xswa;
- long wamask;
- Window roachWin;
-
- xswa.background_pixmap = ParentRelative;
- xswa.override_redirect = True;
- wamask = CWBackPixmap | CWOverrideRedirect;
- roachWin = XCreateWindow(display, rootWin, 0, 0,
- display_width, display_height, 0, CopyFromParent,
- InputOutput, CopyFromParent, wamask, &xswa);
- XLowerWindow(display, roachWin);
- XMapWindow(display, roachWin);
- XFlush(display);
-}
-
-#if !GRAB_SERVER
-
-int
-RoachErrors(dpy, err)
-Display *dpy;
-XErrorEvent *err;
-{
- errorVal = err->error_code;
-
- return 0;
-}
-
-#endif /* GRAB_SERVER */
-
-/*
- Calculate Visible region of root window.
-*/
-int
-CalcRootVisible()
-{
- Region covered;
- Region visible;
- Window *children;
- int nChildren;
- Window dummy;
- XWindowAttributes wa;
- int wx;
- XRectangle rect;
- int winX, winY;
- unsigned int winHeight, winWidth;
- unsigned int borderWidth;
- unsigned int depth;
-
- /*
- If we don't grab the server, the XGetWindowAttribute or XGetGeometry
- calls can abort us. On the other hand, the server grabs can make for
- some annoying delays.
- */
-#if GRAB_SERVER
- XGrabServer(display);
-#else
- XSetErrorHandler(RoachErrors);
-#endif
-
- /*
- Get children of root.
- */
- XQueryTree(display, rootWin, &dummy, &dummy, &children, &nChildren);
-
- /*
- For each mapped child, add the window rectangle to the covered
- region.
- */
- covered = XCreateRegion();
- for (wx=0; wx<nChildren; wx++) {
- if (XEventsQueued(display, QueuedAlready)) return 1;
- errorVal = 0;
- XGetWindowAttributes(display, children[wx], &wa);
- if (errorVal) continue;
- if (wa.map_state == IsViewable) {
- XGetGeometry(display, children[wx], &dummy, &winX, &winY,
- &winWidth, &winHeight, &borderWidth, &depth);
- if (errorVal) continue;
- rect.x = winX;
- rect.y = winY;
- rect.width = winWidth + (borderWidth * 2);
- rect.height = winHeight + (borderWidth * 2);
- XUnionRectWithRegion(&rect, covered, covered);
- }
- }
- XFree((char *)children);
-
-#if GRAB_SERVER
- XUngrabServer(display);
-#else
- XSetErrorHandler((ErrorHandler *)NULL);
-#endif
-
- /*
- Subtract the covered region from the root window region.
- */
- visible = XCreateRegion();
- rect.x = 0;
- rect.y = 0;
- rect.width = display_width;
- rect.height = display_height;
- XUnionRectWithRegion(&rect, visible, visible);
- XSubtractRegion(visible, covered, visible);
- XDestroyRegion(covered);
-
- /*
- Save visible region globally.
- */
- if (rootVisible)
- XDestroyRegion(rootVisible);
- rootVisible = visible;
-
-
- /*
- Mark all roaches visible.
- */
- for (wx=0; wx<curRoaches; wx++)
- roaches[wx].hidden = 0;
-
- return 0;
-}
-
-/*
- Mark hidden roaches.
-*/
-int
-MarkHiddenRoaches()
-{
- int rx;
- Roach *r;
- int nVisible;
-
- nVisible = 0;
- for (rx=0; rx<curRoaches; rx++) {
- r = &roaches[rx];
-
- if (!r->hidden) {
- if (r->intX > 0 && XRectInRegion(rootVisible, r->intX, r->intY,
- r->rp->width, r->rp->height) == RectangleOut) {
- r->hidden = 1;
- }
- else {
- nVisible++;
- }
- }
- }
-
- return nVisible;
-}
-
-/*
- Allocate a color by name.
-*/
-Pixel
-AllocNamedColor(colorName, dfltPix)
-char *colorName;
-Pixel dfltPix;
-{
- Pixel pix;
- XColor scrncolor;
- XColor exactcolor;
-
- if (XAllocNamedColor(display, DefaultColormap(display, screen),
- colorName, &scrncolor, &exactcolor)) {
- pix = scrncolor.pixel;
- }
- else {
- pix = dfltPix;
- }
-
- return pix;
-}
-