cl_inventory.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 */
00025 
00026 #ifndef CLIENT_CL_INVENTORY_H
00027 #define CLIENT_CL_INVENTORY_H
00028 
00036 typedef enum {
00037     /* All types starting with "FILTER_S_" contain items that can used on/with soldiers (i.e. personal equipment). */
00038     FILTER_S_PRIMARY,       
00039     FILTER_S_SECONDARY,     
00040     FILTER_S_HEAVY,         
00041     FILTER_S_MISC,          
00042     FILTER_S_ARMOUR,        
00043     MAX_SOLDIER_FILTERTYPES,
00044 
00045     /* Non-soldier items */
00046     FILTER_CRAFTITEM,   
00047     FILTER_UGVITEM, 
00050     FILTER_AIRCRAFT,    
00051     FILTER_DUMMY,       
00053     FILTER_DISASSEMBLY,
00054 
00055     MAX_FILTERTYPES,
00056 
00057     FILTER_ENSURE_32BIT = 0x7FFFFFFF
00058 } itemFilterTypes_t;
00059 
00060 qboolean INV_MoveItem(inventory_t* inv, const invDef_t * toContainer, int px, int py, const invDef_t * fromContainer, invList_t *fItem);
00061 void INV_LoadWeapon(invList_t *weapon, inventory_t *inv, const invDef_t *srcContainer, const invDef_t *destContainer);
00062 qboolean INV_UnloadWeapon(invList_t *weapon, inventory_t *inv, const invDef_t *container);
00063 const equipDef_t *INV_GetEquipmentDefinitionByID(const char *name);
00064 void INV_InitStartup(void);
00065 itemFilterTypes_t INV_GetFilterFromItem(const objDef_t *obj);
00066 const char *INV_GetFilterType(const int id);
00067 itemFilterTypes_t INV_GetFilterTypeID(const char * filterTypeID);
00068 qboolean INV_ItemMatchesFilter(const objDef_t *obj, const itemFilterTypes_t filterType);
00069 invList_t *INVSH_SearchInInventoryWithFilter(const inventory_t* const i, const invDef_t * container, int x, int y, objDef_t *item,  const itemFilterTypes_t filterType) __attribute__((nonnull(1)));
00070 void INV_ItemDescription(const objDef_t *od);
00071 
00072 #endif /* CLIENT_CL_INVENTORY_H */

Generated by  doxygen 1.6.2