gemContainers are the public containers in the world for crafting, like forges or ovens.
More...
Classes |
class | psContainerIterator |
Public Member Functions |
bool | AddToContainer (psItem *item, Client *fromClient, int slot=-1) |
bool | CanAdd (unsigned short amountToAdd, psItem *item, int slot, csString &reason) |
| Check if a item can be added to a container.
|
bool | CanTake (Client *client, psItem *item) |
| Checks if client is allowed to remove an item from the container.
|
void | CleareWithoutDelete () |
| Clear list of items without delting them.
|
size_t | CountItems () |
psItem * | FindItemInSlot (int slot, int stackCount=-1) |
| gemContainer (GEMSupervisor *gemSupervisor, CacheManager *cachemanager, EntityManager *entitymanager, psItem *item, const char *factname, InstanceID myInstance, iSector *room, const csVector3 &pos, float xrotangle, float yrotangle, float zrotangle, int clientnum) |
psItem * | GetIndexItem (size_t i) |
psItem * | RemoveFromContainer (psItem *itemStack, int fromSlot, Client *fromClient, int stackCount) |
| Remove an item from the container.
|
bool | RemoveFromContainer (psItem *item, Client *fromClient) |
int | SlotCount () |
| ~gemContainer () |
Protected Member Functions |
bool | AddToContainer (psItem *item, Client *fromClient, int slot, bool test) |
Protected Attributes |
csArray< psItem * > | itemlist |
gemContainers are the public containers in the world for crafting, like forges or ovens.
Regular containers in inventory, like sacks, are simulated by psCharInventory.
Definition at line 931 of file gem.h.