DEADSOFTWARE

save: move file access to files.c
[flatwaifu.git] / src / items.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 ITEMS_H_INCLUDED
19 #define ITEMS_H_INCLUDED
21 #include "view.h" // obj_t
23 #define MAXITEM 300
25 enum {
26 I_NONE, I_CLIP, I_SHEL, I_ROCKET, I_CELL, I_AMMO, I_SBOX, I_RBOX, I_CELP,
27 I_STIM, I_MEDI, I_BPACK, I_CSAW, I_SGUN, I_SGUN2, I_MGUN, I_LAUN, I_PLAS, I_BFG,
28 I_ARM1, I_ARM2, I_MEGA, I_INVL, I_AQUA, I_KEYR, I_KEYG, I_KEYB, I_SUIT, I_SUPER,
29 I_RTORCH, I_GTORCH, I_BTORCH, I_GOR1, I_FCAN, I_GUN2
30 };
32 typedef struct {
33 obj_t o;
34 int t;
35 int s;
36 } item_t;
38 extern item_t it[MAXITEM];
39 extern int itm_rtime;
41 void IT_alloc (void);
42 void IT_init (void);
43 void IT_act (void);
44 void IT_spawn (int x, int y, int t);
45 void IT_drop_ammo (int t, int n, int x, int y);
47 #endif /* ITEMS_H_INCLUDED */