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