itemname.cc File Reference

#include "AppHdr.h"
#include "itemname.h"
#include <sstream>
#include <iomanip>
#include <ctype.h>
#include <string.h>
#include "clua.h"
#include "externs.h"
#include "options.h"
#include "artefact.h"
#include "colour.h"
#include "decks.h"
#include "food.h"
#include "goditem.h"
#include "invent.h"
#include "item_use.h"
#include "itemprop.h"
#include "items.h"
#include "macro.h"
#include "makeitem.h"
#include "mon-util.h"
#include "notes.h"
#include "player.h"
#include "religion.h"
#include "quiver.h"
#include "shopping.h"
#include "showsymb.h"
#include "skills2.h"
#include "spl-book.h"
#include "spl-summoning.h"
#include "state.h"
#include "stuff.h"
#include "env.h"
#include "transform.h"

Include dependency graph for itemname.cc:


Classes

class  DiscEntry

Typedefs

typedef std::map< std::string,
item_types_pair
item_names_map
typedef std::map< unsigned,
std::vector< std::string > > 
item_names_by_glyph_map

Enumerations

enum  mbn_type { MBN_TERSE, MBN_NAME, MBN_BRAND }

Functions

bool is_vowel (const char chr)
std::string quant_name (const item_def &item, int quant, description_level_type des, bool terse)
const char * missile_brand_name (special_missile_type brand, mbn_type t)
const char * weapon_brand_name (const item_def &item, bool terse)
const char * armour_ego_name (const item_def &item, bool terse)
const char * wand_type_name (int wandtype)
const char * racial_description_string (const item_def &item, bool terse)
std::string base_type_string (const item_def &item, bool known)
std::string base_type_string (object_class_type type, bool known)
std::string sub_type_string (const item_def &item, bool known)
std::string sub_type_string (object_class_type type, int sub_type, bool known, int plus)
std::string ego_type_string (const item_def &item)
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)
id_arrget_typeid_array ()
CrawlHashTableget_type_id_props ()
void set_ident_type (item_def &item, item_type_id_state_type setting, bool force)
void set_ident_type (object_class_type basetype, int subtype, item_type_id_state_type setting, bool force)
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)
bool identified_item_names (const item_def *it1, const item_def *it2)
bool check_item_knowledge (bool quiet, bool inverted)
std::string make_name (uint32_t seed, bool all_cap, int maxlen, char start)
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)
bool is_dangerous_item (const item_def &item, bool temp)
bool is_useless_item (const item_def &item, bool temp)
std::string menu_colour_item_prefix (const item_def &item, bool temp)
std::string filtering_item_prefix (const item_def &item, bool temp)
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)
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)
bool is_named_corpse (const item_def &corpse)
std::string get_corpse_name (const item_def &corpse, uint64_t *name_type)

Variables

id_arr type_ids
CrawlHashTable type_ids_props

Typedef Documentation

typedef std::map<unsigned, std::vector<std::string> > item_names_by_glyph_map


Enumeration Type Documentation

enum mbn_type

Enumerator:
MBN_TERSE 
MBN_NAME 
MBN_BRAND 


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 ( object_class_type  type,
bool  known 
)

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

Here is the call graph for this function:

bool check_item_knowledge ( bool  quiet,
bool  inverted 
)

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 
)

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

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 
)

Here is the call graph for this function:

CrawlHashTable& get_type_id_props (  ) 

id_arr& get_typeid_array (  ) 

bool identified_item_names ( const item_def it1,
const item_def it2 
)

Here is the call graph for this function:

void init_item_name_cache (  ) 

Here is the call graph for this function:

bool is_bad_item ( const item_def item,
bool  temp 
)

Here is the call graph for this function:

bool is_dangerous_item ( const item_def item,
bool  temp 
)

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 
)

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_cap,
int  maxlen,
char  start 
)

Here is the call graph for this function:

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

const char* missile_brand_name ( special_missile_type  brand,
mbn_type  t 
)

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

Here is the call graph for this function:

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

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 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

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


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