describe.cc File Reference

#include "AppHdr.h"
#include "describe.h"
#include "database.h"
#include <stdio.h>
#include <string>
#include <sstream>
#include <iomanip>
#include <numeric>
#include "externs.h"
#include "options.h"
#include "species.h"
#include "abl-show.h"
#include "artefact.h"
#include "cio.h"
#include "clua.h"
#include "debug.h"
#include "decks.h"
#include "delay.h"
#include "fight.h"
#include "food.h"
#include "ghost.h"
#include "godabil.h"
#include "goditem.h"
#include "godpassive.h"
#include "invent.h"
#include "item_use.h"
#include "itemname.h"
#include "itemprop.h"
#include "items.h"
#include "it_use3.h"
#include "jobs.h"
#include "libutil.h"
#include "macro.h"
#include "menu.h"
#include "message.h"
#include "mon-stuff.h"
#include "mon-util.h"
#include "output.h"
#include "player.h"
#include "quiver.h"
#include "random.h"
#include "religion.h"
#include "rng.h"
#include "skills2.h"
#include "spl-book.h"
#include "spl-clouds.h"
#include "stuff.h"
#include "env.h"
#include "spl-cast.h"
#include "spl-util.h"
#include "transform.h"
#include "hints.h"
#include "xom.h"
#include "mon-info.h"

Classes

class  default_desc_proc
struct  property_annotators
struct  property_descriptor

Defines

#define LONG_DESC_KEY   "long_desc_key"
#define QUOTE_KEY   "quote_key"
#define known_proprt(prop)   (proprt[(prop)] && known[(prop)])
#define NUM_BONDAGE   3

Functions

int count_desc_lines (const std::string _desc, const int width)
void print_description (const std::string &body)
void print_description (const describe_info &inf)
const char * jewellery_base_ability_string (int subtype)
void trim_randart_inscrip (item_def &item)
std::string artefact_auto_inscription (const item_def &item)
void add_autoinscription (item_def &item, std::string ainscrip)
void add_autoinscription (item_def &item)
void add_inscription (item_def &item, std::string inscrip)
const char * trap_name (trap_type trap)
int str_to_trap (const std::string &s)
void append_weapon_stats (std::string &description, const item_def &item)
void append_armour_stats (std::string &description, const item_def &item)
void append_missile_info (std::string &description)
void append_spells (std::string &desc, const item_def &item)
bool is_dumpable_artefact (const item_def &item, bool verbose)
std::string get_item_description (const item_def &item, bool verbose, bool dump, bool noquote)
void get_feature_desc (const coord_def &pos, describe_info &inf)
void describe_feature_wide (const coord_def &pos)
void set_feature_desc_long (const std::string &raw_name, const std::string &desc)
void set_feature_quote (const std::string &raw_name, const std::string &quote)
void get_item_desc (const item_def &item, describe_info &inf, bool terse)
bool describe_item (item_def &item, bool allow_inscribe, bool shopping)
void inscribe_item (item_def &item, bool msgwin)
void get_spell_desc (const spell_type spell, describe_info &inf)
void describe_spell (spell_type spelled, const item_def *item)
void get_monster_db_desc (const monster_info &mi, describe_info &inf, bool &has_stat_desc, bool force_seen)
void describe_monsters (const monster_info &mi, bool force_seen, const std::string &footer, bool wait_until_key_pressed)
std::string short_ghost_description (const monster *mon, bool abbrev)
std::string get_ghost_description (const monster_info &mi, bool concise)
std::string describe_favour (god_type which_god)
std::string god_title (god_type which_god, species_type which_species)
void describe_god (god_type which_god, bool give_title)
std::string get_skill_description (skill_type skill, bool need_title)
void describe_skill (skill_type skill)

Variables

ability_type god_abilities [MAX_NUM_GODS][MAX_GOD_ABILITIES]
const char * divine_title [NUM_GODS][8]

Define Documentation

#define known_proprt ( prop   )     (proprt[(prop)] && known[(prop)])

#define LONG_DESC_KEY   "long_desc_key"

#define NUM_BONDAGE   3

#define QUOTE_KEY   "quote_key"


Function Documentation

void add_autoinscription ( item_def item  ) 

Here is the call graph for this function:

void add_autoinscription ( item_def item,
std::string  ainscrip 
)

Here is the call graph for this function:

void add_inscription ( item_def item,
std::string  inscrip 
)

Here is the call graph for this function:

void append_armour_stats ( std::string description,
const item_def item 
)

Here is the call graph for this function:

void append_missile_info ( std::string description  ) 

void append_spells ( std::string desc,
const item_def item 
)

Here is the call graph for this function:

void append_weapon_stats ( std::string description,
const item_def item 
)

Here is the call graph for this function:

std::string artefact_auto_inscription ( const item_def item  ) 

Here is the call graph for this function:

int count_desc_lines ( const std::string  _desc,
const int  width 
)

Here is the call graph for this function:

std::string describe_favour ( god_type  which_god  ) 

Here is the call graph for this function:

void describe_feature_wide ( const coord_def pos  ) 

Here is the call graph for this function:

void describe_god ( god_type  which_god,
bool  give_title 
)

Here is the call graph for this function:

bool describe_item ( item_def item,
bool  allow_inscribe,
bool  shopping 
)

Here is the call graph for this function:

void describe_monsters ( const monster_info mi,
bool  force_seen,
const std::string footer,
bool  wait_until_key_pressed 
)

Here is the call graph for this function:

void describe_skill ( skill_type  skill  ) 

Here is the call graph for this function:

void describe_spell ( spell_type  spelled,
const item_def item 
)

Here is the call graph for this function:

void get_feature_desc ( const coord_def pos,
describe_info inf 
)

Here is the call graph for this function:

std::string get_ghost_description ( const monster_info mi,
bool  concise 
)

Here is the call graph for this function:

void get_item_desc ( const item_def item,
describe_info inf,
bool  terse 
)

Here is the call graph for this function:

std::string get_item_description ( const item_def item,
bool  verbose,
bool  dump,
bool  noquote 
)

Here is the call graph for this function:

void get_monster_db_desc ( const monster_info mi,
describe_info inf,
bool &  has_stat_desc,
bool  force_seen 
)

Here is the call graph for this function:

std::string get_skill_description ( skill_type  skill,
bool  need_title 
)

Here is the call graph for this function:

void get_spell_desc ( const spell_type  spell,
describe_info inf 
)

std::string god_title ( god_type  which_god,
species_type  which_species 
)

Here is the call graph for this function:

void inscribe_item ( item_def item,
bool  msgwin 
)

Here is the call graph for this function:

bool is_dumpable_artefact ( const item_def item,
bool  verbose 
)

Here is the call graph for this function:

const char* jewellery_base_ability_string ( int  subtype  ) 

void print_description ( const describe_info inf  ) 

Here is the call graph for this function:

void print_description ( const std::string body  ) 

Here is the call graph for this function:

void set_feature_desc_long ( const std::string raw_name,
const std::string desc 
)

Here is the call graph for this function:

void set_feature_quote ( const std::string raw_name,
const std::string quote 
)

Here is the call graph for this function:

std::string short_ghost_description ( const monster mon,
bool  abbrev 
)

Here is the call graph for this function:

int str_to_trap ( const std::string s  ) 

const char* trap_name ( trap_type  trap  ) 

void trim_randart_inscrip ( item_def item  ) 

Here is the call graph for this function:


Variable Documentation

const char* divine_title[NUM_GODS][8]

ability_type god_abilities[MAX_NUM_GODS][MAX_GOD_ABILITIES]


Generated on Thu Jan 13 13:04:12 2011 by  doxygen 1.5.6