Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

include/items.h File Reference


Detailed Description

Items and inventory.

Definition in file items.h.

Go to the source code of this file.

Data Structures

struct  item
struct  itemsinfo
struct  stat_mod_desc
union  item_property_desc
struct  item_property
struct  item_properties
struct  itemextension
struct  itemdesc

Defines

#define ITEMFLAG_EQUIPPED   1
#define ITEMFLAG_CURSED   2
#define ITEMFLAG_IDENTIFIED   4 /* Item (not necessarily the type) is unIDed */
#define ITEMFLAG_UNPAID   8 /* Owned by a shopkeeper */
#define ITEMFLAG_DEPLETE   16 /* Temp flag: kill a charge when it's time */
#define ITEMFLAG_TOP   32 /* This is the top of a floor stack */
#define STATMOD_ADD   1 /* [stat]+=amount */
#define STATMOD_ADDPLUS   2 /* [stat]+=amount + item.plus */
#define STATMOD_OR   3 /* [stat]|=amount */
#define STATMOD_SET   4 /* [stat]= amount */
#define PROPERTY_INHERIT   0 /* Inherit properties from another item */
#define PROPERTY_WORN_STAT_EFFECT   1 /* When equipped, apply stat_mod_desc */
#define PROPERTY_WEAR_FUNC   2 /* Function to call when equipping */
#define PROPERTY_LAUNCHER
#define PROPERTY_USE_EFFECT
#define PROPERTY_THROW_HIT_EFFECT
#define PROPERTY_SCORE   6 /* Worth [score_factor]*[item value] pts */
#define PROPERTY_CARRIED_EFFECT   7
#define PROPERTY_THROWN_EFFECT
#define PROPERTY_BURN
#define ITEMFLAG_STACK   1
#define ITEMFLAG_FRAGILE   2
#define ITEMFLAG_AUTOID   4
#define ITEMFLAG_RUSTPROOF   8
#define ITEMFLAG_CURRENCY   16
#define ITEMFLAG_CHARGED   32
#define ITEMFLAG_USABLE   64
#define ITEMFLAG_HIDECHARGE   256
#define ITEMFLAG_PLUS   512
#define ITEMFLAG_GEN_CURSED   1024
#define ITEMFLAG_BREAKABLE   2048
#define ITEMFLAG_FUELED   8192


Define Documentation

#define ITEMFLAG_AUTOID   4
 

Definition at line 153 of file items.h.

Referenced by init_discoveries().

#define ITEMFLAG_BREAKABLE   2048
 

Definition at line 161 of file items.h.

Referenced by throw_item().

#define ITEMFLAG_CHARGED   32
 

Definition at line 156 of file items.h.

Referenced by enchant_item(), filter_enchantable(), filter_unidentified(), item_value(), itemname(), randitem(), and split_item().

#define ITEMFLAG_CURRENCY   16
 

Definition at line 155 of file items.h.

Referenced by debit_gold(), do_drop_item(), and player_gold().

#define ITEMFLAG_CURSED   2
 

Definition at line 24 of file items.h.

Referenced by do_takeoff_item(), do_wear_item(), filter_cursed(), itemname(), randitem(), and removecurses().

#define ITEMFLAG_DEPLETE   16 /* Temp flag: kill a charge when it's time */
 

Definition at line 29 of file items.h.

#define ITEMFLAG_EQUIPPED   1
 

Definition at line 23 of file items.h.

Referenced by can_stack(), do_drop_item(), do_takeoff_item(), do_wear_item(), filter_wearable(), filter_worn(), itemname(), num_player_equipment(), player_equipment(), throw_item(), throw_readied_item(), and update_player().

#define ITEMFLAG_FRAGILE   2
 

Definition at line 152 of file items.h.

Referenced by throw_item().

#define ITEMFLAG_FUELED   8192
 

Definition at line 162 of file items.h.

Referenced by randitem().

#define ITEMFLAG_GEN_CURSED   1024
 

Definition at line 160 of file items.h.

Referenced by randitem().

#define ITEMFLAG_HIDECHARGE   256
 

Definition at line 158 of file items.h.

Referenced by filter_plural(), filter_unidentified(), itemname(), and randitem().

#define ITEMFLAG_IDENTIFIED   4 /* Item (not necessarily the type) is unIDed */
 

Definition at line 25 of file items.h.

Referenced by can_stack(), do_wear_item(), filter_cursed(), filter_unidentified(), identify(), and itemname().

#define ITEMFLAG_PLUS   512
 

Definition at line 159 of file items.h.

Referenced by enchant_item(), filter_enchantable(), filter_unidentified(), and randitem().

#define ITEMFLAG_RUSTPROOF   8
 

Definition at line 154 of file items.h.

Referenced by randitem(), and rust_inventory().

#define ITEMFLAG_STACK   1
 

Definition at line 151 of file items.h.

Referenced by can_stack(), filter_plural(), give_item(), give_item_slip(), item_value(), itemname(), and randitem().

#define ITEMFLAG_TOP   32 /* This is the top of a floor stack */
 

Definition at line 31 of file items.h.

Referenced by can_stack(), pickup(), place_item(), and top_item().

#define ITEMFLAG_UNPAID   8 /* Owned by a shopkeeper */
 

Definition at line 27 of file items.h.

Referenced by do_drop_item(), item_cost(), itemname(), pickup(), place_shop(), and shortitemname().

#define ITEMFLAG_USABLE   64
 

Definition at line 157 of file items.h.

Referenced by filter_usable().

#define PROPERTY_BURN
 

Value:

9 /* int(*)(int n) Function for depleting fuel
                                     * Return value ignored */

Definition at line 124 of file items.h.

Referenced by timepass().

#define PROPERTY_CARRIED_EFFECT   7
 

Definition at line 120 of file items.h.

Referenced by update_player().

#define PROPERTY_INHERIT   0 /* Inherit properties from another item */
 

Definition at line 103 of file items.h.

Referenced by extract_item_property(), and iterate_item_property().

#define PROPERTY_LAUNCHER
 

Value:

3 /* Bit-mask of launchers that can be used
                                     *   with this ammo */

Definition at line 109 of file items.h.

Referenced by throw_item().

#define PROPERTY_SCORE   6 /* Worth [score_factor]*[item value] pts */
 

Definition at line 118 of file items.h.

Referenced by award_item_points().

#define PROPERTY_THROW_HIT_EFFECT
 

Value:

5 /* void (*)(int monst): item was thrown
                                     *   at a monster. */

Definition at line 115 of file items.h.

Referenced by thrown_item_effect().

#define PROPERTY_THROWN_EFFECT
 

Value:

8 /* Applied immediately before firing and
                                     * then undone */

Definition at line 121 of file items.h.

Referenced by append_armor_description(), and throw_item().

#define PROPERTY_USE_EFFECT
 

Value:

4 /* int (*)(int n): item n was used. Return
                                     *   non-zero to identify the item. */

Definition at line 112 of file items.h.

Referenced by use_item().

#define PROPERTY_WEAR_FUNC   2 /* Function to call when equipping */
 

Definition at line 107 of file items.h.

Referenced by do_wear_item().

#define PROPERTY_WORN_STAT_EFFECT   1 /* When equipped, apply stat_mod_desc */
 

Definition at line 105 of file items.h.

Referenced by append_armor_description(), apply_item_property(), and update_player().

#define STATMOD_ADD   1 /* [stat]+=amount */
 

Definition at line 53 of file items.h.

Referenced by apply_stat_mod_desc(), potion_numbness_effect(), spell_adrenaline_high_effect(), and spell_adrenaline_low_effect().

#define STATMOD_ADDPLUS   2 /* [stat]+=amount + item.plus */
 

Definition at line 55 of file items.h.

Referenced by apply_stat_mod_desc().

#define STATMOD_OR   3 /* [stat]|=amount */
 

Definition at line 57 of file items.h.

Referenced by apply_stat_mod_desc(), and potion_numbness_effect().

#define STATMOD_SET   4 /* [stat]= amount */
 

Definition at line 59 of file items.h.

Referenced by apply_stat_mod_desc().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6