Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

inventory.h File Reference

The hero's inventory. More...


Inventory functions

#define INV_MAXSIZE   10
void InvClear ()
 Clear the inventory out at beginning of level. Some objects may remain in inventory, such as power boots.

void InvEmpty ()
 Empty the inventory out completely, deleting all objects.

bool InvAdd (CThing *pThing)
 Add an item to the inventory. Return false if failed (e.g. if inventory full).

void InvDraw ()
 Draw the inventory.

int InvGetSize ()
 Get number of items in inventory.

CThingInvGetItem (int n)
 Get item at index n.

void InvRemove (CThing *pThing)
 Remove (and delete) an item from the inventory.


Detailed Description

The hero's inventory.

Author:
David Joffe


http://www.scorpioncity.com/djgame.html
Copyright (C) David Joffe. Generated: 15 Jul 2001