diff options
author | nlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-08-13 02:19:00 +0000 |
---|---|---|
committer | nlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-08-13 02:19:00 +0000 |
commit | aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f (patch) | |
tree | d0551b96eaebb5b55694579fb8dae4abc7a38407 /crawl-ref/source/item_use.h | |
parent | 2b32f164e6ca1c4b3d587789f6cf46f46fe02fe8 (diff) | |
download | crawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.tar.gz crawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.zip |
Clean up a mistake in the SVN import.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.h')
-rw-r--r-- | crawl-ref/source/item_use.h | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.h b/crawl-ref/source/item_use.h new file mode 100644 index 0000000000..87c8e31455 --- /dev/null +++ b/crawl-ref/source/item_use.h @@ -0,0 +1,133 @@ +/* + * File: item_use.cc + * Summary: Functions for making use of inventory items. + * Written by: Linley Henzell + * + * Change History (most recent first): + * + * <2> 5/26/99 JDJ Exposed armour_prompt. takeoff_armour takes an index argument. + * <1> -/--/-- LRH Created + */ + + +#ifndef ITEM_USE_H +#define ITEM_USE_H + + +#include <string> + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr - item_use + * *********************************************************************** */ +bool armour_prompt(const std::string & mesg, int *index); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr - item_use - items + * *********************************************************************** */ +bool takeoff_armour(int index); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void drink(void); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void original_name(void); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +bool puton_ring(int slot = -1, bool prompt_finger = true); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void read_scroll(void); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +bool remove_ring(int slot = -1); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +int get_fire_item_index(void); +void shoot_thing(void); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void throw_anything(void); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void wear_armour( void ); + +// last updated 10Sept2001 {bwr} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +bool do_wear_armour( int item, bool quiet ); + +struct item_def; +// last updated 30May2003 {ds} +/* *********************************************************************** + * called from: food + * *********************************************************************** */ +bool can_wield(const item_def& weapon); + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +bool wield_weapon(bool auto_wield, int slot = -1, bool show_we_messages = true); + + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void zap_wand(void); + + +// last updated 15jan2001 {gdl} +/* *********************************************************************** + * called from: item_use food + * *********************************************************************** */ +void wield_effects(int item_wield_2, bool showMsgs); + +// last updated 10sept2001 {bwr} +/* *********************************************************************** + * called from: delay.cc item_use.cc it_use2.cc + * *********************************************************************** */ +void use_randart( unsigned char item_wield_2 ); + +bool puton_item(int slot, bool prompt_finger = true); + +int armour_equip_slot(const item_def &item); + +#endif |