Commit | Line | Data |
---|---|---|
2944b611 | 1 | #ifndef lint |
0f4556f1 | 2 | static char sccsid[] = "@(#)lose.c 4.2 (Berkeley) 5/27/83"; |
2944b611 KM |
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 | ||
06d69904 | 15 | char *Losemsg[] = |
2944b611 KM |
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 ***\a Ship's hull has imploded\a ***", | |
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 | } |