|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T r
Length: 2216 (0x8a8)
Types: TextFile
Names: »rip.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Pm/BSD/rip.c«
/*
** 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();
}