Mercurial > ~darius > hgwebdir.cgi > paradise_client
comparison enter.c @ 3:5a977ccbc7a9 default tip
Empty changelog
author | darius |
---|---|
date | Sat, 06 Dec 1997 05:41:29 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:fba0b6e6cdc7 | 3:5a977ccbc7a9 |
---|---|
1 /* $Id: enter.c,v 1.1.1.1 1997/12/06 05:41:29 darius Exp $ */ | |
2 | |
3 /* | |
4 * enter.c | |
5 * | |
6 * This version modified to work as the client in a socket based protocol. | |
7 */ | |
8 #include "copyright.h" | |
9 | |
10 #include <stdio.h> | |
11 #include <sys/types.h> | |
12 #include <errno.h> | |
13 #include <pwd.h> | |
14 #include <string.h> | |
15 #include <ctype.h> | |
16 #include "Wlib.h" | |
17 #include "defs.h" | |
18 #include "struct.h" | |
19 #include "data.h" | |
20 #include "proto.h" | |
21 #include "packets.h" | |
22 | |
23 /* Enter the game */ | |
24 | |
25 /* Prototypes */ | |
26 | |
27 void | |
28 enter() | |
29 { | |
30 redrawTstats(); | |
31 delay = 0; | |
32 } | |
33 | |
34 /* Doesn't really openmem, but it will | |
35 * set some stuff up... | |
36 */ | |
37 static struct status dummy1; | |
38 static struct status2 dummy2; | |
39 void | |
40 openmem() | |
41 { | |
42 /* players, weapons, planets are handled in build_default_configuration */ | |
43 | |
44 /* thingies allocation is handled in build_default_configuration */ | |
45 /* thingies = universe.drones; */ | |
46 | |
47 | |
48 status = &dummy1; | |
49 status2 = &dummy2; | |
50 | |
51 /* mctl->mc_current=0; */ | |
52 status->time = 1; | |
53 status->timeprod = 1; | |
54 status->kills = 1; | |
55 status->losses = 1; | |
56 status->time = 1; | |
57 status->planets = 1; | |
58 status->armsbomb = 1; | |
59 | |
60 if (ghoststart) { | |
61 me = &players[ghost_pno]; | |
62 myship = me->p_ship; | |
63 mystats = &(me->p_stats); | |
64 } | |
65 } |