diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-01-21 05:47:43 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-01-21 05:47:43 +0000 |
commit | 1a772129d4bb7fd3cbf30a9aec5043dac0dfc94f (patch) | |
tree | 44f841a07866bdf731693ed12aca0dee5905487b /games/hunt | |
parent | eb646ea9c2bfc356f1f54b102fbb1b144805a08e (diff) |
ident for OpenBSD
mandoc-ify manual pages
use -locurses
Diffstat (limited to 'games/hunt')
-rw-r--r-- | games/hunt/Makefile | 1 | ||||
-rw-r--r-- | games/hunt/hunt/Makefile | 7 | ||||
-rw-r--r-- | games/hunt/hunt/connect.c | 6 | ||||
-rw-r--r-- | games/hunt/hunt/hunt.6 | 463 | ||||
-rw-r--r-- | games/hunt/hunt/hunt.c | 6 | ||||
-rw-r--r-- | games/hunt/hunt/otto.c | 6 | ||||
-rw-r--r-- | games/hunt/hunt/playit.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/Makefile | 1 | ||||
-rw-r--r-- | games/hunt/huntd/answer.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/bsd.h | 1 | ||||
-rw-r--r-- | games/hunt/huntd/ctl.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/ctl_transact.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/draw.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/driver.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/execute.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/expl.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/extern.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/faketalk.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/get_names.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/hunt.h | 1 | ||||
-rw-r--r-- | games/hunt/huntd/huntd.6 | 106 | ||||
-rw-r--r-- | games/hunt/huntd/makemaze.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/pathname.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/shots.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/talk_ctl.h | 1 | ||||
-rw-r--r-- | games/hunt/huntd/terminal.c | 6 |
26 files changed, 326 insertions, 363 deletions
diff --git a/games/hunt/Makefile b/games/hunt/Makefile index 28a76a32599..36c0a8495ad 100644 --- a/games/hunt/Makefile +++ b/games/hunt/Makefile @@ -1,4 +1,5 @@ # $NetBSD: Makefile,v 1.1 1997/10/04 09:11:14 mrg Exp $ +# $OpenBSD: Makefile,v 1.2 1999/01/21 05:47:37 d Exp $ SUBDIR= hunt huntd diff --git a/games/hunt/hunt/Makefile b/games/hunt/hunt/Makefile index 49ea5339b93..bd1c076f86e 100644 --- a/games/hunt/hunt/Makefile +++ b/games/hunt/hunt/Makefile @@ -1,13 +1,14 @@ # $NetBSD: Makefile,v 1.5 1998/02/18 22:37:31 jtc Exp $ +# $OpenBSD: Makefile,v 1.2 1999/01/21 05:47:38 d Exp $ PROG= hunt SRCS= connect.c hunt.c otto.c playit.c pathname.c MAN= hunt.6 -LDADD= -lcurses -DPADD= ${LIBTERMCAP} +LDADD= -locurses +DPADD= ${LIBTERMCAP} ${LIBOLDCURSES} HIDEGAME=hidegame -CPPFLAGS+=-I${.CURDIR}/../huntd +CPPFLAGS+=-I${.CURDIR}/../huntd -D_USE_OLD_CURSES_ .PATH: ${.CURDIR}/../huntd diff --git a/games/hunt/hunt/connect.c b/games/hunt/hunt/connect.c index b3fcd7bd95e..d18f3c15bb4 100644 --- a/games/hunt/hunt/connect.c +++ b/games/hunt/hunt/connect.c @@ -1,15 +1,11 @@ /* $NetBSD: connect.c,v 1.3 1997/10/11 08:13:40 lukem Exp $ */ +/* $OpenBSD: connect.c,v 1.2 1999/01/21 05:47:38 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: connect.c,v 1.3 1997/10/11 08:13:40 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" # include <signal.h> # include <unistd.h> diff --git a/games/hunt/hunt/hunt.6 b/games/hunt/hunt/hunt.6 index b45d827153f..4c92d3e26e9 100644 --- a/games/hunt/hunt/hunt.6 +++ b/games/hunt/hunt/hunt.6 @@ -1,4 +1,5 @@ .\" $NetBSD: hunt.6,v 1.3 1997/10/10 16:32:30 lukem Exp $ +.\" $OpenBSD: hunt.6,v 1.2 1999/01/21 05:47:38 d Exp $ .\" .\" hunt .\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -8,98 +9,108 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.TH HUNT 6 "21 August 1986" -.UC 4 -.SH NAME -hunt \- a multi-player multi-terminal game -.SH SYNOPSIS -\fB/usr/games/hunt\fP [ \fB\-qmcsfbS\fP ] [ \fB\-n\fP name ] [ \fB\-t\fP team ] [ \fB\-p\fP port ] [ \fB\-w\fP message ] [ host ] -.SH DESCRIPTION +.Dd August 21, 1986 +.Os 4BSD +.Dt HUNT 6 +.Sh NAME +.Nm hunt +.Nd a multi-player multi-terminal game +.Sh SYNOPSIS +.Nm hunt +.Op Fl qmcsfbS +.Op Fl n Ar name +.Op Fl t Ar team +.Op Fl p Ar port +.Op Fl w Ar message +.Op Ar host +.Sh DESCRIPTION The object of the game -.I hunt +.Nm hunt is to kill off the other players. There are no rooms, no treasures, and no monsters. Instead, you wander around a maze, find grenades, trip mines, and shoot down walls and players. The more players you kill before you die, the better your score is. If the -.B \-m +.Fl m flag is given, you enter the game as a monitor (you can see the action but you cannot play). -.PP -.I Hunt +.Pp +.Nm Hunt normally looks for an active game on the local network; if none is found, it starts one up on the local host. The location of the game may be specified by giving the -.I host +.Ar host argument. This presupposes that a hunt game is already running on that host, see -.IR huntd (6) +.Xr huntd 6 for details on how to setup a game on a specific host. If more than one game if found, you may pick which game to play in. -.PP +.Pp If the -.B \-q +.Fl q flag is given, -.I hunt +.Nm hunt queries the local network (or specific host) and reports on all active games found. -This is useful for shell startup scripts, \fIe.g.\fP csh's .login. -.PP +This is useful for shell startup scripts, e.g., csh's +.Pa .login . +.Pp The player name may be specified on the command line by using the -.B \-n +.Fl n option. -.PP +.Pp The -.BR \-c , -.BR \-s , +.Fl c , +.Fl s , and -.B \-f +.Fl f options are for entering the game cloaked, scanning, or flying respectively. -.PP +.Pp The -.B \-b +.Fl b option turns off beeping when you reach the typeahead limit. -.PP +.Pp The -.B \-t +.Fl t option aids team playing by making everyone else on one's team appear as the team name. A team name is a single digit to avoid conflicting with other characters used in the game. -.PP +.Pp The -.B \-p -.I port +.Fl p +.Ar port option allows the rendezvous port number to be set. This is a useful way for people playing on dialup lines to avoid playing with people on 9600 baud terminals. -.PP +.Pp The -.B \-w -.I message +.Fl w +.Ar message option is the only way to send a message to everyone else's screen when you start up. -It is most often used to say ``eat slime death - NickD's coming in''. -.PP +It is most often used to say +.Dq eat slime death - NickD's coming in . +.Pp When you die and are asked if you wish to re-enter the game, there are other answers than just yes or no. You can also reply with a -.B w +.Ic w for write a message before continuing or -.B o +.Ic o to change how you enter the game (cloaked, scanning, or flying). -.PP +.Pp To be notified automatically when a -.I hunt +.Nm hunt starts up, add your login to the -.I hunt-players +.Pa hunt-players mailing list (see -.IR huntd (6)). -.SH "PLAYING HINTS" -.I Hunt +.Xr huntd 6 ) . +.Sh "PLAYING HINTS" +.Nm Hunt only works on crt (vdt) terminals with at least 24 lines, 80 columns, and cursor addressing. The screen is divided in to 3 areas. @@ -108,273 +119,291 @@ It shows damage sustained, charges remaining, who's in the game, who's scanning (the -.B ``*'' +.Ql \&* in front of the name), who's cloaked (the -.B ``+'' +.Ql \&+ in front of the name), and other players' scores. The rest of the screen is taken up by your map of the maze. The 24th line is used for longer messages that don't fit in the status area. -.PP -.I Hunt +.Pp +.Nm Hunt uses the same keys to move as -.IR vi (1) -does, -.IR i.e. , -.BR h , -.BR j , -.BR k , +.Xr vi 1 +does, i.e., +.Ic h , +.Ic j , +.Ic k , and -.B l +.Ic l for left, down, up, right respectively. To change which direction you're facing in the maze, -use the upper case version of the movement key (\c -.IR i.e. , -.BR HJKL ). +use the upper case version of the movement key (i.e., +.Ic HJKL ) . You can only fire or throw things in the direction you're facing. -.TP +.Pp Other commands are: -.sp -.nf -.ta -.ta \w'>\|<\|^\|v\ \ 'u -f or 1 \- Fire a bullet (Takes 1 charge) -g or 2 \- Throw grenade (Takes 9 charges) -F or 3 \- Throw satchel charge (Takes 25 charges) -G or 4 \- Throw bomb (Takes 49 charges) -5 \- Throw big bomb (Takes 81 charges) -6 \- Throw even bigger bomb (Takes 121 charges) -7 \- Throw even more big bomb (Takes 169 charges) -8 \- Throw even more bigger bomb (Takes 225 charges) -9 \- Throw very big bomb (Takes 289 charges) -0 \- Throw very, very big bomb (Takes 361 charges) -@ \- Throw biggest bomb (Takes 441 charges) -o \- Throw small slime (Takes 15 charges) -O \- Throw big slime (Takes 30 charges) -p \- Throw bigger slime (Takes 45 charges) -P \- Throw biggest slime (Takes 60 charges) -s \- Scan (show where other players are) (Takes 1 charge) -c \- Cloak (hide from scanners) (Takes 1 charge) - -^L \- Redraw screen -q \- Quit -.fi -.TP +.Bl -tag -width Ic -compact +.It Ic f No or Ic 1 +Fire a bullet (Takes 1 charge) +.It Ic g No or Ic 2 +Throw grenade (Takes 9 charges) +.It Ic F No or Ic 3 +Throw satchel charge (Takes 25 charges) +.It Ic G No or Ic 4 +Throw bomb (Takes 49 charges) +.It Ic 5 +Throw big bomb (Takes 81 charges) +.It Ic 6 +Throw even bigger bomb (Takes 121 charges) +.It Ic 7 +Throw even more big bomb (Takes 169 charges) +.It Ic 8 +Throw even more bigger bomb (Takes 225 charges) +.It Ic 9 +Throw very big bomb (Takes 289 charges) +.It Ic 0 +Throw very, very big bomb (Takes 361 charges) +.It Ic @ +Throw biggest bomb (Takes 441 charges) +.It Ic o +Throw small slime (Takes 15 charges) +.It Ic O +Throw big slime (Takes 30 charges) +.It Ic p +Throw bigger slime (Takes 45 charges) +.It Ic P +Throw biggest slime (Takes 60 charges) +.It Ic s +Scan (show where other players are) (Takes 1 charge) +.It Ic c +Cloak (hide from scanners) (Takes 1 charge) +.br +.It Ic ^L +Redraw screen +.It Ic q +Quit +.El +.Pp The symbols on the screen are: -.sp -.nf -.ta -.ta \w'>\|<\|^\|v\ \ 'u -\-\||\|+ \- walls -/\|\\ \- diagonal (deflecting) walls -# \- doors (dispersion walls) -; \- small mine -g \- large mine -: \- bullet -o \- grenade -O \- satchel charge -@ \- bomb -s \- small slime -$ \- big slime ->\|<\|^\|v \- you facing right, left, up, or down -}\|{\|i\|! \- other players facing right, left, up, or down -\(** \- explosion -.ne 3 -.cs R 24 -.cs I 24 -\fR\\|/\fP -.cs R -\fI\-\(**\-\fP \- grenade and large mine explosion -.fl -.cs R 24 -\fR/|\\\fP -.cs R -.cs I -.fi -.LP -Other helpful hints: -.sp -.ie n .ds b [] -.el .ds b \(bu -.ta -.ta \w'\*b\ \|'u -.nr In \n(.i -.de MP +.Bl -tag -width Ic -compact +.It Li \&- \&| \&+ +walls +.It Li \&/ \e +diagonal (deflecting) walls +.It Li # +doors (dispersion walls) +.It Li ; +small mine +.It Li g +large mine +.It Li : +bullet +.It Li o +grenade +.It Li O +satchel charge +.It Li @ +bomb +.It Li s +small slime +.It Li $ +big slime .br -.in \n(Inu+\w'\*b\ \|'u -.ti \n(Inu -\*b \c -.. -.MP +.It Li > < ^ v +you facing right, left, up, or down +.It Li } { i ! +other players facing right, left, up, or down +.It \&* +explosion +.It Li \&\e|/ +.It Li \&-*- +grenade and large mine explosion +.It Li \&/|\e +.El +.Pp +Other helpful hints: +.Bl -bullet -compact +.It You can only fire in the direction you are facing. -.MP +.It You can only fire three shots in a row, then the gun must cool off. -.MP +.It Shots move 5 times faster than you do. -.MP +.It To stab someone, you face that player and move at them. -.MP +.It Stabbing does 2 points worth of damage and shooting does 5 points. -.MP +.It Slime does 5 points of damage each time it hits. -.MP +.It You start with 15 charges and get 5 more every time a player enters or re-enters. -.MP +.It Grenade explosions cover a 3 by 3 area, each larger bomb cover a correspondingly larger area (ranging from 5 by 5 to 21 by 21). All explosions are centered around the square the shot hits and do the most damage in the center. -.MP +.It Slime affects all squares it oozes over. The number of squares is equal to the number of charges used. -.MP +.It One small mine and one large mine is placed in the maze for every new player. A mine has a 2% probability of tripping when you walk forward on to it; 50% when going sideways; 95% when backing up. Tripping a mine costs you 5 points or 10 points respectively. Defusing a mine is worth 1 charge or 9 charges respectively. -.MP +.It You cannot see behind you. -.MP +.It Cloaking consumes 1 ammo charge per 20 of your moves. -.MP +.It Scanning consumes 1 ammo charge per (20 \(mu the number of players) of other player moves. -.MP +.It Turning on cloaking turns off scanning \(em turning on scanning turns off cloaking. -.MP +.It When you kill someone, you get 2 more damage capacity points and 2 damage points get taken away. -.MP +.It Maximum typeahead is 5 characters. -.MP -A shot destroys normal (\c -.IR i.e., +.It +A shot destroys normal (i.e., non-diagonal, non-door) walls. -.MP +.It Diagonal walls deflect shots and change orientation. -.MP +.It Doors disperse shots in random directions (up, down, left, right). -.MP +.It Diagonal walls and doors cannot be destroyed by direct shots but may be destroyed by an adjacent grenade explosion. -.MP +.It Slime goes around walls, not through them. -.MP +.It Walls regenerate, reappearing in the order they were destroyed. One percent of the regenerated walls will be diagonal walls or doors. When a wall is generated directly beneath a player, he is thrown in a random direction for a random period of time. When he lands, he sustains damage (up to 20 percent of the amount of damage already sustained); -.IR i.e. , +i.e., the less damage he had, the more nimble he is and therefore less likely to hurt himself on landing. -.\"MP +.\"It .\"There is a volcano close to the center of the maze which goes off .\"close to every 30 deaths. -.MP +.It Every 30 deaths or so, a -.B ``?'' +.Ql ? will appear. It is a wandering bomb which will explode when it hits someone, or when it is slimed. -.MP +.It If no one moves, everything stands still. -.MP +.It The environment variable -.B HUNT +.Ev HUNT is checked to get the player name. If you don't have this variable set, -.I hunt +.Nm hunt will ask you what name you want to play under. If you wish to set other options than just your name, you can enumerate the options as follows: -.br -.ti +1i -setenv HUNT "name=Sneaky,team=1,cloak,mapkey=zoFfGg1f2g3F4G" -.br +.Dl setenv HUNT "name=Sneaky,team=1,cloak,mapkey=zoFfGg1f2g3F4G" sets the player name to Sneaky, sets the team to one, sets the enter game attribute to cloaked, -and the maps \fBz\fP to \fBo\fP, \fBF\fP to \fBf\fP, \fBG\fP to \fBg\fP, -\fB1\fP to \fBf\fP, -\fB2\fP to \fBg\fP, \fB3\fP to \fBF\fP, and \fB4\fP to \fBG\fP. -The \fImapkey\fP option must be last. -Other options are: scan, fly, nobeep, port=string, host=string, -and message=string \(em which correspond to the command line options. +and the maps +.Ic z No to Ic o , +.Ic F No to Ic f , +.Ic G No to Ic g , +.Ic 1 No to Ic f , +.Ic 2 No to Ic g , +.Ic 3 No to Ic F , +and +.Ic 4 No to Ic G . +The +.Ic mapkey +option must be last. +Other options are: +.Ic scan , fly , nobeep , +.Ic port= Ns Ar string , +.Ic host= Ns Ar string , +and +.Ic message= Ns Ar string +\(em which correspond to the command line options. String options cannot contain commas since commas are used to separate options. -.MP +.It It's a boring game if you're the only one playing. -.PP +.El +.Pp Your score is the decayed average of the ratio of number of kills to number of times you entered the game and is only kept for the duration -of a single session of \fIhunt\fP. -.PP -.I Hunt +of a single session of +.Nm hunt . +.Pp +.Nm Hunt normally drives up the load average to be approximately (number_of_players + 0.5) greater than it would be without a -.I hunt +.Nm hunt game executing. -.SH STATISTICS +.Sh STATISTICS The -.B \-S +.Fl S option fetches the current game statistics. The meaning of the column headings are as follows: -.I score -\(em the player's last score; -.I ducked -\(em -how many shots a player ducked; -.I absorb -\(em how many shots a player absorbed; -.I faced -\(em how many shots were fired at player's face; -.I shot -\(em how many shots were fired at player; -.I robbed -\(em how many of player's shots were absorbed; -.I missed -\(em how many of player's shots were ducked; -.I slimeK -\(em how many slime kills player had; -.I enemy -\(em how many enemies were killed; -.I friend -\(em how many friends were killed (self and same team); -.I deaths -\(em how many times player died; -.I still -\(em how many times player died without typing in any commands; -.I saved -\(em how many times a shot/bomb would have killed player if he hadn't -ducked or absorbed it. -.SH FILES -.nf -.ta -.ta \w'/usr/games/huntd\ \ \ 'u -/usr/games/huntd game coordinator -.DT -.fi -.SH "SEE ALSO" -huntd(6) -.SH AUTHORS +.Bl -tag -width No -compact -offset +.It score +the player's last score +.It ducked +how many shots a player ducked +.It absorb +how many shots a player absorbed +.It faced +how many shots were fired at player's face +.It shot +how many shots were fired at player +.It robbed +how many of player's shots were absorbed +.It missed +how many of player's shots were ducked +.It slimeK +how many slime kills player had +.It enemy +how many enemies were killed +.It friend +how many friends were killed (self and same team) +.It deaths +how many times player died +.It still +how many times player died without typing in any commands +.It saved +how many times a shot/bomb would have killed player if he hadn't +ducked or absorbed it +.El +.Sh FILES +.Bl -tag -width Pa -compact +.It Pa /usr/games/huntd +game coordinator +.El +.Sh "SEE ALSO" +.Xr huntd 6 +.Sh AUTHORS Conrad Huang, Ken Arnold, and Greg Couch; .br University of California, San Francisco, Computer Graphics Lab -.SH ACKNOWLEDGEMENTS +.Sh ACKNOWLEDGEMENTS We thank Don Kneller, John Thomason, Eric Pettersen, Mark Day, and Scott Weiner for providing endless hours of play-testing to improve the character of the game. We hope their significant others will forgive them; we certainly don't. -.SH BUGS +.Sh BUGS To keep up the pace, not everything is as realistic as possible. diff --git a/games/hunt/hunt/hunt.c b/games/hunt/hunt/hunt.c index e527c312af7..88e31285797 100644 --- a/games/hunt/hunt/hunt.c +++ b/games/hunt/hunt/hunt.c @@ -1,15 +1,11 @@ /* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */ +/* $OpenBSD: hunt.c,v 1.2 1999/01/21 05:47:39 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $"); -#endif /* not lint */ - # include <sys/stat.h> # include <sys/time.h> # include <ctype.h> diff --git a/games/hunt/hunt/otto.c b/games/hunt/hunt/otto.c index 773ceb7e603..e31ff1280f7 100644 --- a/games/hunt/hunt/otto.c +++ b/games/hunt/hunt/otto.c @@ -1,4 +1,5 @@ /* $NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $ */ +/* $OpenBSD: otto.c,v 1.2 1999/01/21 05:47:39 d Exp $ */ # ifdef OTTO /* * otto - a hunt otto-matic player @@ -10,11 +11,6 @@ * subroutine library. */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $"); -#endif /* not lint */ - # include <sys/time.h> # include <curses.h> # include <ctype.h> diff --git a/games/hunt/hunt/playit.c b/games/hunt/hunt/playit.c index 53fd6b34c08..fc782cc0ec8 100644 --- a/games/hunt/hunt/playit.c +++ b/games/hunt/hunt/playit.c @@ -1,15 +1,11 @@ /* $NetBSD: playit.c,v 1.4 1997/10/20 00:37:15 lukem Exp $ */ +/* $OpenBSD: playit.c,v 1.2 1999/01/21 05:47:39 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: playit.c,v 1.4 1997/10/20 00:37:15 lukem Exp $"); -#endif /* not lint */ - # include <sys/file.h> # include <err.h> # include <errno.h> diff --git a/games/hunt/huntd/Makefile b/games/hunt/huntd/Makefile index cbf07727fba..708b0bc5174 100644 --- a/games/hunt/huntd/Makefile +++ b/games/hunt/huntd/Makefile @@ -1,4 +1,5 @@ # $NetBSD: Makefile,v 1.1 1997/10/04 09:11:21 mrg Exp $ +# $OpenBSD: Makefile,v 1.2 1999/01/21 05:47:39 d Exp $ PROG= huntd SRCS= answer.c ctl.c ctl_transact.c draw.c driver.c execute.c expl.c \ diff --git a/games/hunt/huntd/answer.c b/games/hunt/huntd/answer.c index c78fcea2a64..eed0c82de46 100644 --- a/games/hunt/huntd/answer.c +++ b/games/hunt/huntd/answer.c @@ -1,15 +1,11 @@ /* $NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $ */ +/* $OpenBSD: answer.c,v 1.2 1999/01/21 05:47:39 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $"); -#endif /* not lint */ - # include <ctype.h> # include <errno.h> # include <fcntl.h> diff --git a/games/hunt/huntd/bsd.h b/games/hunt/huntd/bsd.h index 0fea1d0823f..f27a6ddfaa4 100644 --- a/games/hunt/huntd/bsd.h +++ b/games/hunt/huntd/bsd.h @@ -1,4 +1,5 @@ /* $NetBSD: bsd.h,v 1.2 1998/01/09 08:03:40 perry Exp $ */ +/* $OpenBSD: bsd.h,v 1.2 1999/01/21 05:47:39 d Exp $ */ /* * Hunt diff --git a/games/hunt/huntd/ctl.c b/games/hunt/huntd/ctl.c index b7066f65dcf..14f3261b815 100644 --- a/games/hunt/huntd/ctl.c +++ b/games/hunt/huntd/ctl.c @@ -1,4 +1,5 @@ /* $NetBSD: ctl.c,v 1.2 1997/10/10 16:32:54 lukem Exp $ */ +/* $OpenBSD: ctl.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -9,13 +10,8 @@ #if defined(TALK_43) || defined(TALK_42) -#include <sys/cdefs.h> #ifndef lint -#if 0 static char sccsid[] = "@(#)ctl.c 5.2 (Berkeley) 3/13/86"; -#else -__RCSID("$NetBSD: ctl.c,v 1.2 1997/10/10 16:32:54 lukem Exp $"); -#endif #endif /* not lint */ /* diff --git a/games/hunt/huntd/ctl_transact.c b/games/hunt/huntd/ctl_transact.c index d183bd39fa3..35f1c4fd25b 100644 --- a/games/hunt/huntd/ctl_transact.c +++ b/games/hunt/huntd/ctl_transact.c @@ -1,4 +1,5 @@ /* $NetBSD: ctl_transact.c,v 1.3 1997/10/20 00:37:16 lukem Exp $ */ +/* $OpenBSD: ctl_transact.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -9,13 +10,8 @@ #if defined(TALK_43) || defined(TALK_42) -#include <sys/cdefs.h> #ifndef lint -#if 0 static char sccsid[] = "@(#)ctl_transact.c 5.2 (Berkeley) 3/13/86"; -#else -__RCSID("$NetBSD: ctl_transact.c,v 1.3 1997/10/20 00:37:16 lukem Exp $"); -#endif #endif /* not lint */ #include <sys/time.h> diff --git a/games/hunt/huntd/draw.c b/games/hunt/huntd/draw.c index ee53641ca0e..2262407a989 100644 --- a/games/hunt/huntd/draw.c +++ b/games/hunt/huntd/draw.c @@ -1,15 +1,11 @@ /* $NetBSD: draw.c,v 1.2 1997/10/10 16:33:04 lukem Exp $ */ +/* $OpenBSD: draw.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: draw.c,v 1.2 1997/10/10 16:33:04 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" void diff --git a/games/hunt/huntd/driver.c b/games/hunt/huntd/driver.c index 4b06af9153c..c842448bc43 100644 --- a/games/hunt/huntd/driver.c +++ b/games/hunt/huntd/driver.c @@ -1,15 +1,11 @@ /* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ +/* $OpenBSD: driver.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $"); -#endif /* not lint */ - # include <sys/ioctl.h> # include <sys/stat.h> # include <sys/time.h> diff --git a/games/hunt/huntd/execute.c b/games/hunt/huntd/execute.c index 30046448c00..53695c72f88 100644 --- a/games/hunt/huntd/execute.c +++ b/games/hunt/huntd/execute.c @@ -1,15 +1,11 @@ /* $NetBSD: execute.c,v 1.2 1997/10/10 16:33:13 lukem Exp $ */ +/* $OpenBSD: execute.c,v 1.2 1999/01/21 05:47:40 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: execute.c,v 1.2 1997/10/10 16:33:13 lukem Exp $"); -#endif /* not lint */ - # include <stdlib.h> # include "hunt.h" diff --git a/games/hunt/huntd/expl.c b/games/hunt/huntd/expl.c index 74a8f585fb6..8de5adba1df 100644 --- a/games/hunt/huntd/expl.c +++ b/games/hunt/huntd/expl.c @@ -1,15 +1,11 @@ /* $NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $ */ +/* $OpenBSD: expl.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $"); -#endif /* not lint */ - # include <stdlib.h> # include "hunt.h" diff --git a/games/hunt/huntd/extern.c b/games/hunt/huntd/extern.c index e25ba836af9..7bf4290e165 100644 --- a/games/hunt/huntd/extern.c +++ b/games/hunt/huntd/extern.c @@ -1,15 +1,11 @@ /* $NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $ */ +/* $OpenBSD: extern.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" # ifdef MONITOR diff --git a/games/hunt/huntd/faketalk.c b/games/hunt/huntd/faketalk.c index 2044ce1ddf1..26365bc48fb 100644 --- a/games/hunt/huntd/faketalk.c +++ b/games/hunt/huntd/faketalk.c @@ -1,4 +1,5 @@ /* $NetBSD: faketalk.c,v 1.4 1997/10/11 08:13:48 lukem Exp $ */ +/* $OpenBSD: faketalk.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -9,11 +10,6 @@ * specifies the terms and conditions for redistribution. */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: faketalk.c,v 1.4 1997/10/11 08:13:48 lukem Exp $"); -#endif /* not lint */ - #include "bsd.h" #if defined(TALK_43) || defined(TALK_42) diff --git a/games/hunt/huntd/get_names.c b/games/hunt/huntd/get_names.c index 3e358e4f226..c32461d2de8 100644 --- a/games/hunt/huntd/get_names.c +++ b/games/hunt/huntd/get_names.c @@ -1,15 +1,11 @@ /* $NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $ */ +/* $OpenBSD: get_names.c,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: get_names.c,v 1.3 1998/07/06 07:00:31 mrg Exp $"); -#endif /* not lint */ - #include "bsd.h" #if defined(TALK_43) || defined(TALK_42) diff --git a/games/hunt/huntd/hunt.h b/games/hunt/huntd/hunt.h index 95072e55a8c..0ecfa4a569b 100644 --- a/games/hunt/huntd/hunt.h +++ b/games/hunt/huntd/hunt.h @@ -1,4 +1,5 @@ /* $NetBSD: hunt.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */ +/* $OpenBSD: hunt.h,v 1.2 1999/01/21 05:47:41 d Exp $ */ /* * Hunt diff --git a/games/hunt/huntd/huntd.6 b/games/hunt/huntd/huntd.6 index c51a8c0caaa..984736b42d1 100644 --- a/games/hunt/huntd/huntd.6 +++ b/games/hunt/huntd/huntd.6 @@ -1,4 +1,5 @@ .\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $ +.\" $OpenBSD: huntd.6,v 1.2 1999/01/21 05:47:41 d Exp $ .\" .\" Hunt .\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -8,93 +9,92 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.TH HUNTD 6 "21 August 1986" -.UC 4 -.SH NAME -huntd \- hunt daemon, back-end for hunt game -.SH SYNOPSIS -\fB/usr/games/huntd\fP [ \fB\-s\fP ] [ \fB\-p\fP port ] -.SH DESCRIPTION -.PP -.I huntd +.Dd August 21, 1986 +.Os 4BSD +.Dt HUNTD 6 +.Sh NAME +.Nm huntd +.Nd hunt daemon, back-end for hunt game +.Sh SYNOPSIS +.Nm huntd +.Op Fl s +.Op Fl p Ar port +.Sh DESCRIPTION +.Nm huntd controls the multi-player -.IR hunt (6) +.Xr hunt 6 game. When it starts up, it tries to notify all members of the -.I hunt-players +.Pa hunt-players mailing list (see -.IR sendmail (8)) +.Xr sendmail 8) by faking a -.IR talk (1) -request from user ``Hunt Game''. -.PP +.Xr talk 1 +request from user +.Sq Hunt Game . +.Pp The -.B \-s +.Fl s option is for running -.I huntd +.Nm huntd forever (server mode). This is similar to running it under the control of -.I inetd +.Xr inetd 8 (see below), but it consumes a process table entry when no one is playing. -.PP +.Pp The -.B \-p +.Fl p option changes the udp port number used to rendezvous with the player process and thus allows for private games of hunt. This option turns off the notification of players on the -.I hunt-players +.Pa hunt-players mailing list. -.SH INETD -.PP +.Sh INETD +.Pp To run -.I huntd +.Nm huntd from -.IR inetd , +.Xr inetd 8 , you'll need to put the -.I hunt +.Sq hunt service in -.BR /etc/services : -.IP -hunt 26740/udp # multi-player/multi-host mazewars -.LP +.Pa /etc/services : +.Dl hunt 26740/udp # multi-player/multi-host mazewars and add a line in -.BR /etc/inetd.conf : -.IP -hunt dgram udp wait nobody /usr/games/huntd HUNT -.LP -except for Suns which use -.BR /etc/servers : -.IP -hunt udp /usr/games/huntd -.LP +.Pa /etc/inetd.conf : +.Dl hunt dgram udp wait nobody /usr/games/huntd HUNT +.Pp Do not use any of the command line options \(em if you want -.I inetd +.Xr inetd 8 to start up -.I huntd +.Nm huntd on a private port, change the port listed in -.BR /etc/services . -.SH "NETWORK RENDEZVOUS" +.Pa /etc/services . +.Sh "NETWORK RENDEZVOUS" When -.IR hunt (6) +.Xr hunt 6 starts up, it broadcasts on the local area net (using the broadcast address for each interface) to find a -.I hunt +.Nm hunt game in progress. If a -.I huntd +.Nm huntd hears the request, it sends back the port number for the -.I hunt +.Nm hunt process to connect to. Otherwise, the -.I hunt +.Nm hunt process starts up a -.I huntd +.Nm huntd on the local machine and trys to rendezvous with it. -.SH "SEE ALSO" -hunt(6), talk(1), sendmail(8) -.SH AUTHORS +.Sh "SEE ALSO" +.Xr hunt 6 , +.Xr talk 1 , +.Xr sendmaail 8 , +.Xr inetd 8 +.Sh AUTHORS Conrad Huang, Ken Arnold, and Greg Couch; .br University of California, San Francisco, Computer Graphics Lab -.\"SH BUGS +.\"Sh BUGS diff --git a/games/hunt/huntd/makemaze.c b/games/hunt/huntd/makemaze.c index bcc21c61b27..508d0109ee0 100644 --- a/games/hunt/huntd/makemaze.c +++ b/games/hunt/huntd/makemaze.c @@ -1,15 +1,11 @@ /* $NetBSD: makemaze.c,v 1.2 1997/10/10 16:33:43 lukem Exp $ */ +/* $OpenBSD: makemaze.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: makemaze.c,v 1.2 1997/10/10 16:33:43 lukem Exp $"); -#endif /* not lint */ - # include "hunt.h" # define ISCLEAR(y,x) (Maze[y][x] == SPACE) diff --git a/games/hunt/huntd/pathname.c b/games/hunt/huntd/pathname.c index 0f909f78b88..d4ed5b2ada6 100644 --- a/games/hunt/huntd/pathname.c +++ b/games/hunt/huntd/pathname.c @@ -1,15 +1,11 @@ /* $NetBSD: pathname.c,v 1.2 1997/10/10 16:33:49 lukem Exp $ */ +/* $OpenBSD: pathname.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: pathname.c,v 1.2 1997/10/10 16:33:49 lukem Exp $"); -#endif /* not lint */ - /* * There is no particular significance to the numbers assigned * to Test_port. They're just random numbers greater than the diff --git a/games/hunt/huntd/shots.c b/games/hunt/huntd/shots.c index b4080dbd76c..18305c845ee 100644 --- a/games/hunt/huntd/shots.c +++ b/games/hunt/huntd/shots.c @@ -1,15 +1,11 @@ /* $NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $ */ +/* $OpenBSD: shots.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: shots.c,v 1.3 1997/10/11 08:13:50 lukem Exp $"); -#endif /* not lint */ - # include <err.h> # include <signal.h> # include <stdlib.h> diff --git a/games/hunt/huntd/talk_ctl.h b/games/hunt/huntd/talk_ctl.h index 3cf3a876bec..abd2f484ea0 100644 --- a/games/hunt/huntd/talk_ctl.h +++ b/games/hunt/huntd/talk_ctl.h @@ -1,4 +1,5 @@ /* $NetBSD: talk_ctl.h,v 1.4 1998/01/09 08:03:42 perry Exp $ */ +/* $OpenBSD: talk_ctl.h,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. diff --git a/games/hunt/huntd/terminal.c b/games/hunt/huntd/terminal.c index 94493531c31..f1bab1368db 100644 --- a/games/hunt/huntd/terminal.c +++ b/games/hunt/huntd/terminal.c @@ -1,15 +1,11 @@ /* $NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $ */ +/* $OpenBSD: terminal.c,v 1.2 1999/01/21 05:47:42 d Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ -#include <sys/cdefs.h> -#ifndef lint -__RCSID("$NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $"); -#endif /* not lint */ - #if __STDC__ #include <stdarg.h> #else |