DEADSOFTWARE

streams: use single stram object for read and write
[flatwaifu.git] / src / game.h
1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
18 #ifndef GAME_H_INLUDED
19 #define GAME_H_INLUDED
21 #include "glob.h"
22 #include "player.h" // player_t
24 typedef struct {
25 int x, y;
26 byte d;
27 } pos_t;
29 extern byte transdraw;
30 extern byte _2pl;
31 extern byte g_dm;
32 extern byte g_st;
33 extern byte g_exit;
34 extern byte g_map;
35 extern char g_music[8];
36 extern dword g_time;
37 extern int dm_pnum;
38 extern int dm_pl1p;
39 extern int dm_pl2p;
40 extern pos_t dm_pos[100];
41 extern byte cheat;
43 extern int lt_time;
44 extern int lt_type;
45 extern int lt_side;
46 extern int lt_ypos;
48 extern int g_trans;
50 void load_game (int n);
51 void G_start (void);
52 void G_init (void);
53 void G_act (void);
54 void G_respawn_player (player_t *p);
56 #endif /* GAME_H_INLUDED */