#include "item_types.h"
#include "combat.h"
Go to the source code of this file.
Data Structures | |
struct | item |
struct | food |
struct | drink |
struct | gear |
struct | weapon |
struct | text |
struct | container |
Defines | |
#define | ITEM_MEMBER_VARS |
Functions | |
void | set_item_name (struct item *item, const char *name) |
void | set_item_desc (struct item *item, const char *desc) |
void | set_text_contents (struct text *text, const char *contents) |
void | destroy_item (struct item *item) |
container * | create_container (int size) |
void | destroy_container (struct container *cont) |
|
Value: |
|
creates and initialized a container item |
|
destroys a container item |
|
destroy an item. beware, do not use this on any item that contains additional dynamic allocations except from the standard ones that all the items have |
|
sets the item description (the string is copied, you don't need to keep the old value) |
|
sets the item name (the string is copied, you don't need to keep the old value) |
|
sets the text contents (the string is copied, you don't need to keep the old value) |