25 #include "../../../../client.h" 26 #include "../../../cl_actor.h" 27 #include "../../../cl_localentity.h" 47 assert(container >= 0);
Item * getItemAtPos(const invDef_t *container, const int x, const int y) const
Searches if there is an item at location (x,y) in a container.
void setAmmoLeft(int value)
QGL_EXTERN GLint GLenum type
void NET_ReadFormat(dbuffer *buf, const char *format,...)
The user-friendly version of NET_ReadFormat that reads variable arguments from a buffer according to ...
Struct that defines one particular event with all its callbacks and data.
item instance data, with linked list capability
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
void CL_InvAmmo(const eventRegister_t *self, dbuffer *msg)
void Com_DPrintf(int level, const char *fmt,...)
A Com_Printf that only shows up if the "developer" cvar is set.
#define INVDEF(containerID)
void setAmmoDef(const objDef_t *od)
const objDef_t * INVSH_GetItemByIDX(int index)
Returns the item that belongs to the given index or nullptr if the index is invalid.