DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T r

⟦c8e12a86a⟧ TextFile

    Length: 2216 (0x8a8)
    Types: TextFile
    Names: »rip.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Pm/BSD/rip.c« 

TextFile

/*
** rip.c -	code dealing with the end of the game
**
**	[pm by Peter Costantinidis, Jr. @ University of California at Davis]
*/

#include "pm.h"

/*
** die()	- pm has died forever...
*/
void	die (mon)
reg	char	mon;
{
	echo();
	nocrmode();
	_puts(CL);
	tombstone(thescore, mon);
	printf("[Press return to continue]");
	getchar();
	scores(mon, FL_DIE);
	exit(0);
}

/*
** quitit()	- called when they quit
*/
void	quitit ()
{
	clear();
	move(LINES - 1, 0);
	draw();
	echo();
	nocrmode();
	printf("[Press return to continue]");
	getchar();
	scores(NULL, FL_QUIT);
	exit(0);
}

/*
** tombstone()	- print a pretty little pm
*/
static	char	*stone[] =
{	"                       @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
	"                     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
	"                   @@@@@@                            @@@@@",
	"                  @@@@@          @@@@@@@@@@@@@         @@@@",
	"                 @@@@@        @@@@@@@@@@@@@@@@@@@       @@@@",
	"                @@@@@       @@@@@            @@@@@      @@@@",
	"               @@@@@        @@@@   Eaten by    @@@      @@@@@",
	"               @@@@@        @@@@               @@@      @@@@@",
	"              @@@@@         @@@                @@@      @@@@",
	"              @@@@         @@@@                @@@      @@@@",
	"             @@@@@          @@@                @@@      @@@@",
	"             @@@@@          @@@@               @@@     @@@@@",
	"             @@@@@          @@@@               @@@    @@@@@",
	"              @@@@          @@@@@            @@@@@ @@@@@@",
	"              @@@@@           @@@@@@@@@@@@@@@@@@@@@@@@",
	"               @@@@@              @@@@@@@@@@@@  @@@@",
	"               @@@@@",
	"                @@@@@",
	"                 @@@@@",
	"                  @@@@@",
	"                   @@@@@@",
	"                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
	"                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
	0
};
void	tombstone (scr, monster)
long	scr;
reg	char	monster;
{
	reg	char	**s = stone;

	clear();
	move(0, 0);
	while (*s)
		printw("%s\n", *s++);
	move(9, 33);
	printw("%9s", mons_str(monster));
	move(18, 30);
	printw("After getting %ld points.", scr);
	move(LINES - 1, 0);
	draw();
}