Crossfire Client, Trunk  R20693
item.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  item_struct
 

Macros

#define copy_name(t, f)   strncpy(t, f, NAME_LEN-1); t[NAME_LEN-1]=0;
 
#define NAME_LEN   128
 
#define NO_ITEM_TYPE   30000
 

Typedefs

typedef struct item_struct item
 

Functions

int can_write_spell_on (item *it)
 
void item_event_container_clearing (item *container)
 
void item_event_item_changed (item *it)
 
void item_event_item_deleting (item *it)
 

Macro Definition Documentation

◆ copy_name

#define copy_name (   t,
 
)    strncpy(t, f, NAME_LEN-1); t[NAME_LEN-1]=0;

Definition at line 43 of file item.h.

Referenced by new_item(), new_player(), remove_item(), set_item_values(), and update_item().

◆ NAME_LEN

#define NAME_LEN   128

Definition at line 42 of file item.h.

◆ NO_ITEM_TYPE

#define NO_ITEM_TYPE   30000

Definition at line 45 of file item.h.

Referenced by new_item(), remove_item(), and set_item_values().

Typedef Documentation

◆ item

typedef struct item_struct item

Function Documentation

◆ can_write_spell_on()

int can_write_spell_on ( item it)

Definition at line 782 of file item.c.

◆ item_event_container_clearing()

void item_event_container_clearing ( item container)

Definition at line 678 of file inventory.c.

Referenced by remove_item_inventory().

+ Here is the caller graph for this function:

◆ item_event_item_changed()

void item_event_item_changed ( item it)

Definition at line 681 of file inventory.c.

Referenced by set_item_values().

+ Here is the caller graph for this function:

◆ item_event_item_deleting()

void item_event_item_deleting ( item it)

Definition at line 675 of file inventory.c.

Referenced by remove_item().

+ Here is the caller graph for this function: