DEADSOFTWARE

menu: add video settings
[flatwaifu.git] / src / items.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
5 This file is part of the Doom2D:Rembo project.
7 Doom2D:Rembo is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation.
11 Doom2D:Rembo is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/> or
18 write to the Free Software Foundation, Inc.,
19 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
22 #ifndef ITEMS_H_INCLUDED
23 #define ITEMS_H_INCLUDED
25 #include "view.h" // obj_t
26 #include <stdio.h> // FILE
28 #define MAXITEM 300
30 enum {
31 I_NONE, I_CLIP, I_SHEL, I_ROCKET, I_CELL, I_AMMO, I_SBOX, I_RBOX, I_CELP,
32 I_STIM, I_MEDI, I_BPACK, I_CSAW, I_SGUN, I_SGUN2, I_MGUN, I_LAUN, I_PLAS, I_BFG,
33 I_ARM1, I_ARM2, I_MEGA, I_INVL, I_AQUA, I_KEYR, I_KEYG, I_KEYB, I_SUIT, I_SUPER,
34 I_RTORCH, I_GTORCH, I_BTORCH, I_GOR1, I_FCAN, I_GUN2
35 };
37 typedef struct {
38 obj_t o;
39 int t;
40 int s;
41 } item_t;
43 extern item_t it[MAXITEM];
44 extern int itm_rtime;
46 void IT_savegame (FILE *h);
47 void IT_loadgame (FILE *h);
48 void IT_alloc (void);
49 void IT_init (void);
50 int IT_load (FILE *h);
51 void IT_act (void);
52 void IT_spawn (int x, int y, int t);
53 void IT_drop_ammo (int t, int n, int x, int y);
55 #endif /* ITEMS_H_INCLUDED */