cl_inventory.h
Go to the documentation of this file.00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef CLIENT_CL_INVENTORY_H
00027 #define CLIENT_CL_INVENTORY_H
00028
00036 typedef enum {
00037
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
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