From fc3e88fdc9823a0bcd98d3480e3837231e67d9bc Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Wed, 8 Feb 1989 01:13:31 -0800 Subject: [PATCH] add Berkeley copyright notice; add Tim's copyright notice to random.c SCCS-vsn: games/rogue/curses.c 5.2 SCCS-vsn: games/rogue/hit.c 5.2 SCCS-vsn: games/rogue/init.c 5.2 SCCS-vsn: games/rogue/inventory.c 5.3 SCCS-vsn: games/rogue/level.c 5.2 SCCS-vsn: games/rogue/machdep.c 5.3 SCCS-vsn: games/rogue/main.c 5.2 SCCS-vsn: games/rogue/message.c 5.2 SCCS-vsn: games/rogue/monster.c 5.2 SCCS-vsn: games/rogue/move.c 5.2 SCCS-vsn: games/rogue/object.c 5.2 SCCS-vsn: games/rogue/pack.c 5.2 SCCS-vsn: games/rogue/play.c 5.2 SCCS-vsn: games/rogue/random.c 5.2 SCCS-vsn: games/rogue/ring.c 5.2 SCCS-vsn: games/rogue/rogue.6 6.4 SCCS-vsn: games/rogue/rogue.h 5.3 SCCS-vsn: games/rogue/room.c 5.2 SCCS-vsn: games/rogue/save.c 5.2 SCCS-vsn: games/rogue/score.c 5.3 SCCS-vsn: games/rogue/spec_hit.c 5.2 SCCS-vsn: games/rogue/throw.c 5.2 SCCS-vsn: games/rogue/trap.c 5.2 SCCS-vsn: games/rogue/use.c 5.2 SCCS-vsn: games/rogue/zap.c 5.2 --- usr/src/games/rogue/curses.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/hit.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/init.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/inventory.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/level.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/machdep.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/main.c | 34 +++++++++++++++++++++++++++++---- usr/src/games/rogue/message.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/monster.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/move.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/object.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/pack.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/play.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/random.c | 34 ++++++++++++++++++++++++++++++++- usr/src/games/rogue/ring.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/rogue.6 | 19 ++++++++++++++---- usr/src/games/rogue/rogue.h | 24 +++++++++++++++++++++-- usr/src/games/rogue/room.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/save.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/score.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/spec_hit.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/throw.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/trap.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/use.c | 28 +++++++++++++++++++++++---- usr/src/games/rogue/zap.c | 28 +++++++++++++++++++++++---- 25 files changed, 604 insertions(+), 95 deletions(-) diff --git a/usr/src/games/rogue/curses.c b/usr/src/games/rogue/curses.c index ea8c81e165..be131bf8c5 100644 --- a/usr/src/games/rogue/curses.c +++ b/usr/src/games/rogue/curses.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)curses.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * curses.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)curses.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #ifdef CURSES /* The following is a curses emulation package suitable for the rogue program diff --git a/usr/src/games/rogue/hit.c b/usr/src/games/rogue/hit.c index 5cce2bde2a..ae022d0271 100644 --- a/usr/src/games/rogue/hit.c +++ b/usr/src/games/rogue/hit.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)hit.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * hit.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)hit.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" object *fight_monster = 0; diff --git a/usr/src/games/rogue/init.c b/usr/src/games/rogue/init.c index a51ef4dc7c..8d19e362df 100644 --- a/usr/src/games/rogue/init.c +++ b/usr/src/games/rogue/init.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)init.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * init.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)init.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include #include "rogue.h" diff --git a/usr/src/games/rogue/inventory.c b/usr/src/games/rogue/inventory.c index aa8bd7d8dd..b315f74ab6 100644 --- a/usr/src/games/rogue/inventory.c +++ b/usr/src/games/rogue/inventory.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)inventory.c 5.3 (Berkeley) %G%"; +#endif /* not lint */ + /* * inventory.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)inventory.c 5.2 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" boolean is_wood[WANDS]; diff --git a/usr/src/games/rogue/level.c b/usr/src/games/rogue/level.c index 659092a9b8..b3f7dfd436 100644 --- a/usr/src/games/rogue/level.c +++ b/usr/src/games/rogue/level.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)level.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * level.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)level.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" #define swap(x,y) {t = x; x = y; y = t;} diff --git a/usr/src/games/rogue/machdep.c b/usr/src/games/rogue/machdep.c index b88fe35203..4eb706cdcb 100644 --- a/usr/src/games/rogue/machdep.c +++ b/usr/src/games/rogue/machdep.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)machdep.c 5.3 (Berkeley) %G%"; +#endif /* not lint */ + /* * machdep.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)machdep.c 5.2 (Berkeley) %G%"; -#endif /* not lint */ - /* Included in this file are all system dependent routines. Extensive use * of #ifdef's will be used to compile the appropriate code on each system: * diff --git a/usr/src/games/rogue/main.c b/usr/src/games/rogue/main.c index 667a68c247..a2efd1875c 100644 --- a/usr/src/games/rogue/main.c +++ b/usr/src/games/rogue/main.c @@ -1,3 +1,33 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +char copyright[] = +"@(#) Copyright (c) 1988 The Regents of the University of California.\n\ + All rights reserved.\n"; +#endif /* not lint */ + +#ifndef lint +static char sccsid[] = "@(#)main.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * main.c * @@ -10,10 +40,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)main.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" extern short party_room; diff --git a/usr/src/games/rogue/message.c b/usr/src/games/rogue/message.c index b3534a5926..c605711ea8 100644 --- a/usr/src/games/rogue/message.c +++ b/usr/src/games/rogue/message.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)message.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * message.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)message.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include #include "rogue.h" diff --git a/usr/src/games/rogue/monster.c b/usr/src/games/rogue/monster.c index 58db81ff7f..90a927ed2b 100644 --- a/usr/src/games/rogue/monster.c +++ b/usr/src/games/rogue/monster.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)monster.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * monster.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)monster.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" object level_monsters; diff --git a/usr/src/games/rogue/move.c b/usr/src/games/rogue/move.c index 4d3f5250c3..e0f991a2ec 100644 --- a/usr/src/games/rogue/move.c +++ b/usr/src/games/rogue/move.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)move.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * move.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)move.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" short m_moves = 0; diff --git a/usr/src/games/rogue/object.c b/usr/src/games/rogue/object.c index 48b0ad3a06..1c0d092846 100644 --- a/usr/src/games/rogue/object.c +++ b/usr/src/games/rogue/object.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)object.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * object.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)object.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" object level_objects; diff --git a/usr/src/games/rogue/pack.c b/usr/src/games/rogue/pack.c index 96f89aae30..4e3a980519 100644 --- a/usr/src/games/rogue/pack.c +++ b/usr/src/games/rogue/pack.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)pack.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * pack.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)pack.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" char *curse_message = "you can't, it appears to be cursed"; diff --git a/usr/src/games/rogue/play.c b/usr/src/games/rogue/play.c index 957e3286fa..3728f50eaf 100644 --- a/usr/src/games/rogue/play.c +++ b/usr/src/games/rogue/play.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)play.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * play.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)play.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" boolean interrupted = 0; diff --git a/usr/src/games/rogue/random.c b/usr/src/games/rogue/random.c index 176b1d6c10..88d98d38b5 100644 --- a/usr/src/games/rogue/random.c +++ b/usr/src/games/rogue/random.c @@ -1,7 +1,39 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + #ifndef lint -static char sccsid[] = "@(#)random.c 5.1 (Berkeley) %G%"; +static char sccsid[] = "@(#)random.c 5.2 (Berkeley) %G%"; #endif /* not lint */ +/* + * random.c + * + * This source herein may be modified and/or distributed by anybody who + * so desires, with the following restrictions: + * 1.) No portion of this notice shall be removed. + * 2.) Credit shall not be taken for the creation of this source. + * 3.) This code is not to be traded, sold, or used for personal + * gain or profit. + * + */ + static long rntb[32] = { 3, 0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342, 0xde3b81e0, 0xdf0a6fb5, 0xf103bc02, 0x48f340fb, 0x7449e56b, diff --git a/usr/src/games/rogue/ring.c b/usr/src/games/rogue/ring.c index 5ee572c723..5469332a88 100644 --- a/usr/src/games/rogue/ring.c +++ b/usr/src/games/rogue/ring.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)ring.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * ring.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)ring.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" char *left_or_right = "left or right hand?"; diff --git a/usr/src/games/rogue/rogue.6 b/usr/src/games/rogue/rogue.6 index 1393a66cf9..a50b88b9b2 100644 --- a/usr/src/games/rogue/rogue.6 +++ b/usr/src/games/rogue/rogue.6 @@ -1,8 +1,19 @@ -.\" Copyright (c) 1980 Regents of the University of California. -.\" All rights reserved. The Berkeley software License Agreement -.\" specifies the terms and conditions for redistribution. +.\" Copyright (c) 1988 The Regents of the University of California. +.\" All rights reserved. .\" -.\" @(#)rogue.6 6.3 (Berkeley) %G% +.\" Redistribution and use in source and binary forms are permitted +.\" provided that the above copyright notice and this paragraph are +.\" duplicated in all such forms and that any documentation, +.\" advertising materials, and other materials related to such +.\" distribution and use acknowledge that the software was developed +.\" by the University of California, Berkeley. The name of the +.\" University may not be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +.\" +.\" @(#)rogue.6 6.4 (Berkeley) %G% .\" .TH ROGUE 6 "" .UC 4 diff --git a/usr/src/games/rogue/rogue.h b/usr/src/games/rogue/rogue.h index ed987ff714..322339ddc3 100644 --- a/usr/src/games/rogue/rogue.h +++ b/usr/src/games/rogue/rogue.h @@ -1,3 +1,25 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timoth C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * @(#)rogue.h 5.3 (Berkeley) %G% + */ + /* * rogue.h * @@ -7,8 +29,6 @@ * 2.) Credit shall not be taken for the creation of this source. * 3.) This code is not to be traded, sold, or used for personal * gain or profit. - * - * @(#)rogue.h 5.2 (Berkeley) %G% */ #define boolean char diff --git a/usr/src/games/rogue/room.c b/usr/src/games/rogue/room.c index a0587371a4..51e33a3165 100644 --- a/usr/src/games/rogue/room.c +++ b/usr/src/games/rogue/room.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)room.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * room.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)room.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" room rooms[MAXROOMS]; diff --git a/usr/src/games/rogue/save.c b/usr/src/games/rogue/save.c index ae1f14efc3..0aa1bba92e 100644 --- a/usr/src/games/rogue/save.c +++ b/usr/src/games/rogue/save.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)save.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * save.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)save.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include #include "rogue.h" diff --git a/usr/src/games/rogue/score.c b/usr/src/games/rogue/score.c index 2771d7cc53..0c78998cb5 100644 --- a/usr/src/games/rogue/score.c +++ b/usr/src/games/rogue/score.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)score.c 5.3 (Berkeley) %G%"; +#endif /* not lint */ + /* * score.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)score.c 5.2 (Berkeley) %G%"; -#endif /* not lint */ - #include #include "rogue.h" diff --git a/usr/src/games/rogue/spec_hit.c b/usr/src/games/rogue/spec_hit.c index 0ecd99c5c7..eddd550140 100644 --- a/usr/src/games/rogue/spec_hit.c +++ b/usr/src/games/rogue/spec_hit.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)spec_hit.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * special_hit.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)spec_hit.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" short less_hp = 0; diff --git a/usr/src/games/rogue/throw.c b/usr/src/games/rogue/throw.c index 0197cfccbc..752899ff80 100644 --- a/usr/src/games/rogue/throw.c +++ b/usr/src/games/rogue/throw.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)throw.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * throw.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)throw.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" extern short cur_room; diff --git a/usr/src/games/rogue/trap.c b/usr/src/games/rogue/trap.c index 6f6b7b9de0..7783f79389 100644 --- a/usr/src/games/rogue/trap.c +++ b/usr/src/games/rogue/trap.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)trap.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * trap.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)trap.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" trap traps[MAX_TRAPS]; diff --git a/usr/src/games/rogue/use.c b/usr/src/games/rogue/use.c index 2c4a795e18..ce1049a89b 100644 --- a/usr/src/games/rogue/use.c +++ b/usr/src/games/rogue/use.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)use.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * use.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)use.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" short halluc = 0; diff --git a/usr/src/games/rogue/zap.c b/usr/src/games/rogue/zap.c index cbaca5169e..8d40cfc66f 100644 --- a/usr/src/games/rogue/zap.c +++ b/usr/src/games/rogue/zap.c @@ -1,3 +1,27 @@ +/* + * Copyright (c) 1988 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Timothy C. Stoehr. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef lint +static char sccsid[] = "@(#)zap.c 5.2 (Berkeley) %G%"; +#endif /* not lint */ + /* * zap.c * @@ -10,10 +34,6 @@ * */ -#ifndef lint -static char sccsid[] = "@(#)zap.c 5.1 (Berkeley) %G%"; -#endif /* not lint */ - #include "rogue.h" boolean wizard = 0; -- 2.20.1