1 typedef enum {
2     GAME_EXIT_LEVEL,      /* Get out */
3     GAME_ELIMINATE_CLASS, /* Kill off a certain class */
4     GAME_STAY_ALIVE,      /* Stay alive for x seconds */
5     NUM_GAME_OBJECTIVES
6 } game_objective_t;
7 
8 typedef struct {
9     char map_name[NETMSG_STRLEN];
10     char next_map_name[NETMSG_STRLEN];
11     char success_msg[TEXTMESSAGE_STRLEN];
12     msec_t endtime; /* Time in msecs when the level will change */
13     int changelevel;
14     int fraglimit;
15     int timelimit; /* Minutes */
16     gamemode_t mode;
17     game_objective_t objective;
18     int class; /* Class to kill if objective = ELIMINATE_CLASS */
19     int objective_complete;
20 } game_t;
21 
22 void game_start(void);
23 void game_update(void);
24 void game_close(void);
25