Annotation of 42BSD/games/trek/lose.c, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char sccsid[] = "@(#)lose.c     4.2     (Berkeley)      5/27/83";
                      3: #endif not lint
                      4: 
                      5: # include      "trek.h"
                      6: 
                      7: /*
                      8: **  PRINT OUT LOSER MESSAGES
                      9: **
                     10: **     The messages are printed out, the score is computed and
                     11: **     printed, and the game is restarted.  Oh yeh, any special
                     12: **     actions which need be taken are taken.
                     13: */
                     14: 
                     15: char   *Losemsg[] =
                     16: {
                     17:        "You ran out of time",
                     18:        "You ran out of energy",
                     19:        "You have been destroyed",
                     20:        "You ran into the negative energy barrier",
                     21:        "You destroyed yourself by nova'ing that star",
                     22:        "You have been caught in a supernova",
                     23:        "You just suffocated in outer space",
                     24:        "You could not be rematerialized",
                     25:        "\n\032\014 *** Ship's hull has imploded ***",
                     26:        "You have burned up in a star",
                     27:        "Well, you destroyed yourself, but it didn't do any good",
                     28:        "You have been captured by Klingons and mercilessly tortured",
                     29:        "Your last crew member died",
                     30: };
                     31: 
                     32: lose(why)
                     33: int    why;
                     34: {
                     35:        Game.killed = 1;
                     36:        sleep(1);
                     37:        printf("\n%s\n", Losemsg[why - 1]);
                     38:        switch (why)
                     39:        {
                     40: 
                     41:          case L_NOTIME:
                     42:                Game.killed = 0;
                     43:                break;
                     44:        }
                     45:        Move.endgame = -1;
                     46:        score();
                     47:        skiptonl(0);
                     48:        reset();
                     49: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.