1 //------------------------------------------------------------------------- 2 /* 3 Copyright (C) 1997, 2005 - 3D Realms Entertainment 4 5 This file is part of Shadow Warrior version 1.2 6 7 Shadow Warrior is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License 9 as published by the Free Software Foundation; either version 2 10 of the License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 16 See the GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 22 Original Source: 1997 - Frank Maddin and Jim Norwood 23 Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms 24 */ 25 //------------------------------------------------------------------------- 26 27 enum InventoryNames 28 { 29 INVENTORY_MEDKIT, 30 INVENTORY_REPAIR_KIT, 31 INVENTORY_CLOAK, // de-cloak when firing 32 INVENTORY_NIGHT_VISION, 33 INVENTORY_CHEMBOMB, 34 INVENTORY_FLASHBOMB, 35 INVENTORY_CALTROPS, 36 MAX_INVENTORY 37 }; 38 39 typedef struct 40 { 41 char *Name; 42 VOID (*Init)(PLAYERp); 43 VOID (*Stop)(PLAYERp, short); 44 PANEL_STATEp State; 45 short DecPerSec; 46 short MaxInv; 47 long Scale; 48 short Flags; 49 } INVENTORY_DATA, *INVENTORY_DATAp; 50 51 extern INVENTORY_DATA InventoryData[MAX_INVENTORY+1]; 52 53 #define INVF_AUTO_USE (BIT(0)) 54 #define INVF_TIMED (BIT(1)) 55 #define INVF_COUNT (BIT(2)) 56 57 void PlayerUpdateInventory(PLAYERp pp,short InventoryNum); 58 void UpdateMiniBar(PLAYERp pp); 59 void InventoryKeys(PLAYERp pp); 60 void UseInventoryRepairKit(PLAYERp pp); 61 void InventoryTimer(PLAYERp pp); 62