|
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: 2676 (0xa74) Types: TextFile Names: »rip.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Pm/Sys3-SysV/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; { doclear(); tombstone(thescore, mon); printf("[Press return to continue]"); #if SYSV|SYSIII fcntl(0, F_SETFL, oldfl); #endif endwin(); trash(getchar()); scores(mon, FL_DIE); exit(0); } /* ** quitit() - called when they quit */ void quitit () { clear(); move(LINES - 1, 0); refresh(); #if SYSV|SYSIII fcntl(0, F_SETFL, oldfl); #endif printf("[Press return to continue]"); endwin(); trash(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(); }