itemname.h File Reference

#include "externs.h"

Include dependency graph for itemname.h:

Go to the source code of this file.

Classes

struct  item_types_pair

Defines

#define CORPSE_NAME_KEY   "corpse_name_key"
#define CORPSE_NAME_TYPE_KEY   "corpse_name_type_key"

Typedefs

typedef FixedArray
< item_type_id_state_type,
NUM_IDTYPE, NUM_ID_SUBTYPE
id_arr

Enumerations

enum  item_type_id_type {
  IDTYPE_WANDS = 0, IDTYPE_SCROLLS, IDTYPE_JEWELLERY, IDTYPE_POTIONS,
  IDTYPE_STAVES, NUM_IDTYPE
}
enum  potion_description_colour_type {
  PDC_CLEAR, PDC_BLUE, PDC_BLACK, PDC_SILVERY,
  PDC_CYAN, PDC_PURPLE, PDC_ORANGE, PDC_INKY,
  PDC_RED, PDC_YELLOW, PDC_GREEN, PDC_BROWN,
  PDC_PINK, PDC_WHITE, PDC_NCOLOURS
}
enum  potion_description_qualifier_type {
  PDQ_NONE, PDQ_BUBBLING, PDQ_FUMING, PDQ_FIZZY,
  PDQ_VISCOUS, PDQ_LUMPY, PDQ_SMOKY, PDQ_GLOWING,
  PDQ_SEDIMENTED, PDQ_METALLIC, PDQ_MURKY, PDQ_GLUGGY,
  PDQ_OILY, PDQ_SLIMY, PDQ_EMULSIFIED, PDQ_NQUALS
}
enum  {
  NDSC_JEWEL_PRI = 13, NDSC_JEWEL_SEC = 13, NDSC_STAVE_PRI = 4, NDSC_STAVE_SEC = 10,
  NDSC_WAND_PRI = 12, NDSC_WAND_SEC = 16, NDSC_POT_PRI = PDC_NCOLOURS, NDSC_POT_SEC = PDQ_NQUALS,
  NDSC_BOOK_PRI = 10, NDSC_BOOK_SEC = 8
}

Functions

bool is_vowel (const char chr)
int property (const item_def &item, int prop_type)
const char * racial_description_string (const item_def &item, bool terse=false)
bool check_item_knowledge (bool quiet=false, bool inverted=false)
std::string quant_name (const item_def &item, int quant, description_level_type des, bool terse=false)
bool item_type_known (const item_def &item)
bool item_type_unknown (const item_def &item)
bool item_type_known (const object_class_type base_type, const int sub_type)
bool item_type_tried (const item_def &item)
bool is_interesting_item (const item_def &item)
bool is_emergency_item (const item_def &item)
bool is_good_item (const item_def &item)
bool is_bad_item (const item_def &item, bool temp=false)
bool is_dangerous_item (const item_def &item, bool temp=false)
bool is_useless_item (const item_def &item, bool temp=false)
std::string make_name (uint32_t seed, bool all_caps, int maxlen=-1, char start=0)
const char * weapon_brand_name (const item_def &item, bool terse)
const char * armour_ego_name (const item_def &item, bool terse)
void init_properties ()
id_arrget_typeid_array ()
CrawlHashTableget_type_id_props ()
item_type_id_state_type get_ident_type (const item_def &item)
item_type_id_state_type get_ident_type (object_class_type basetype, int subtype)
void set_ident_type (item_def &item, item_type_id_state_type setting, bool force=false)
void set_ident_type (object_class_type basetype, int subtype, item_type_id_state_type setting, bool force=false)
std::string menu_colour_item_prefix (const item_def &item, bool temp=true)
std::string filtering_item_prefix (const item_def &item, bool temp=true)
std::string get_menu_colour_prefix_tags (const item_def &item, description_level_type desc)
std::string get_message_colour_tags (const item_def &item, description_level_type desc, msg_channel_type channel=MSGCH_PLAIN)
void init_item_name_cache ()
item_types_pair item_types_by_name (std::string name)
std::vector< std::stringitem_name_list_for_glyph (unsigned glyph)
const char * wand_type_name (int wandtype)
bool is_named_corpse (const item_def &corpse)
std::string get_corpse_name (const item_def &corpse, uint64_t *name_type=NULL)
std::string base_type_string (object_class_type type, bool known=true)
std::string base_type_string (const item_def &item, bool known=true)
std::string sub_type_string (object_class_type type, int sub_type, bool known=true, int plus=0)
std::string sub_type_string (const item_def &item, bool known=true)
std::string ego_type_string (const item_def &item)

Variables

const int NUM_ID_SUBTYPE = 50


Define Documentation

#define CORPSE_NAME_KEY   "corpse_name_key"

#define CORPSE_NAME_TYPE_KEY   "corpse_name_type_key"


Typedef Documentation


Enumeration Type Documentation

anonymous enum

Enumerator:
NDSC_JEWEL_PRI 
NDSC_JEWEL_SEC 
NDSC_STAVE_PRI 
NDSC_STAVE_SEC 
NDSC_WAND_PRI 
NDSC_WAND_SEC 
NDSC_POT_PRI 
NDSC_POT_SEC 
NDSC_BOOK_PRI 
NDSC_BOOK_SEC 

Enumerator:
IDTYPE_WANDS 
IDTYPE_SCROLLS 
IDTYPE_JEWELLERY 
IDTYPE_POTIONS 
IDTYPE_STAVES 
NUM_IDTYPE 

Enumerator:
PDC_CLEAR 
PDC_BLUE 
PDC_BLACK 
PDC_SILVERY 
PDC_CYAN 
PDC_PURPLE 
PDC_ORANGE 
PDC_INKY 
PDC_RED 
PDC_YELLOW 
PDC_GREEN 
PDC_BROWN 
PDC_PINK 
PDC_WHITE 
PDC_NCOLOURS 

Enumerator:
PDQ_NONE 
PDQ_BUBBLING 
PDQ_FUMING 
PDQ_FIZZY 
PDQ_VISCOUS 
PDQ_LUMPY 
PDQ_SMOKY 
PDQ_GLOWING 
PDQ_SEDIMENTED 
PDQ_METALLIC 
PDQ_MURKY 
PDQ_GLUGGY 
PDQ_OILY 
PDQ_SLIMY 
PDQ_EMULSIFIED 
PDQ_NQUALS 


Function Documentation

const char* armour_ego_name ( const item_def item,
bool  terse 
)

Here is the call graph for this function:

std::string base_type_string ( const item_def item,
bool  known = true 
)

Here is the call graph for this function:

std::string base_type_string ( object_class_type  type,
bool  known = true 
)

bool check_item_knowledge ( bool  quiet = false,
bool  inverted = false 
)

Here is the call graph for this function:

std::string ego_type_string ( const item_def item  ) 

Here is the call graph for this function:

std::string filtering_item_prefix ( const item_def item,
bool  temp = true 
)

std::string get_corpse_name ( const item_def corpse,
uint64_t *  name_type = NULL 
)

Here is the call graph for this function:

item_type_id_state_type get_ident_type ( object_class_type  basetype,
int  subtype 
)

Here is the call graph for this function:

item_type_id_state_type get_ident_type ( const item_def item  ) 

Here is the call graph for this function:

std::string get_menu_colour_prefix_tags ( const item_def item,
description_level_type  desc 
)

Here is the call graph for this function:

std::string get_message_colour_tags ( const item_def item,
description_level_type  desc,
msg_channel_type  channel = MSGCH_PLAIN 
)

Here is the call graph for this function:

CrawlHashTable& get_type_id_props (  ) 

id_arr& get_typeid_array (  ) 

void init_item_name_cache (  ) 

Here is the call graph for this function:

void init_properties (  ) 

bool is_bad_item ( const item_def item,
bool  temp = false 
)

Here is the call graph for this function:

bool is_dangerous_item ( const item_def item,
bool  temp = false 
)

Here is the call graph for this function:

bool is_emergency_item ( const item_def item  ) 

Here is the call graph for this function:

bool is_good_item ( const item_def item  ) 

Here is the call graph for this function:

bool is_interesting_item ( const item_def item  ) 

Here is the call graph for this function:

bool is_named_corpse ( const item_def corpse  ) 

Here is the call graph for this function:

bool is_useless_item ( const item_def item,
bool  temp = false 
)

Here is the call graph for this function:

bool is_vowel ( const char  chr  ) 

std::vector<std::string> item_name_list_for_glyph ( unsigned  glyph  ) 

bool item_type_known ( const object_class_type  base_type,
const int  sub_type 
)

bool item_type_known ( const item_def item  ) 

Here is the call graph for this function:

bool item_type_tried ( const item_def item  ) 

Here is the call graph for this function:

bool item_type_unknown ( const item_def item  ) 

Here is the call graph for this function:

item_types_pair item_types_by_name ( std::string  name  ) 

Here is the call graph for this function:

std::string make_name ( uint32_t  seed,
bool  all_caps,
int  maxlen = -1,
char  start = 0 
)

Here is the call graph for this function:

std::string menu_colour_item_prefix ( const item_def item,
bool  temp = true 
)

int property ( const item_def item,
int  prop_type 
)

std::string quant_name ( const item_def item,
int  quant,
description_level_type  des,
bool  terse = false 
)

Here is the call graph for this function:

const char* racial_description_string ( const item_def item,
bool  terse = false 
)

Here is the call graph for this function:

void set_ident_type ( object_class_type  basetype,
int  subtype,
item_type_id_state_type  setting,
bool  force = false 
)

Here is the call graph for this function:

void set_ident_type ( item_def item,
item_type_id_state_type  setting,
bool  force = false 
)

Here is the call graph for this function:

std::string sub_type_string ( const item_def item,
bool  known = true 
)

Here is the call graph for this function:

std::string sub_type_string ( object_class_type  type,
int  sub_type,
bool  known = true,
int  plus = 0 
)

Here is the call graph for this function:

const char* wand_type_name ( int  wandtype  ) 

const char* weapon_brand_name ( const item_def item,
bool  terse 
)

Here is the call graph for this function:


Variable Documentation

const int NUM_ID_SUBTYPE = 50


Generated on Thu Jan 13 13:07:07 2011 by  doxygen 1.5.6