invent.cc File Reference

#include "AppHdr.h"
#include "invent.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sstream>
#include <iomanip>
#include "externs.h"
#include "options.h"
#include "artefact.h"
#include "clua.h"
#include "colour.h"
#include "decks.h"
#include "describe.h"
#include "env.h"
#include "food.h"
#include "godabil.h"
#include "initfile.h"
#include "item_use.h"
#include "itemprop.h"
#include "items.h"
#include "macro.h"
#include "message.h"
#include "player.h"
#include "shopping.h"
#include "showsymb.h"
#include "stuff.h"
#include "menu.h"
#include "mon-util.h"
#include "state.h"

Include dependency graph for invent.cc:


Classes

struct  menu_entry_comparator

Functions

template<std::string(*)(const InvEntry *a) proc>
int compare_item_str (const InvEntry *a, const InvEntry *b)
template<typename T, T(*)(const InvEntry *a) proc>
int compare_item (const InvEntry *a, const InvEntry *b)
std::string sort_item_basename (const InvEntry *a)
std::string sort_item_qualname (const InvEntry *a)
std::string sort_item_fullname (const InvEntry *a)
int sort_item_qty (const InvEntry *a)
int sort_item_slot (const InvEntry *a)
int sort_item_freshness (const InvEntry *a)
bool sort_item_curse (const InvEntry *a)
bool sort_item_glowing (const InvEntry *a)
bool sort_item_ego (const InvEntry *a)
bool sort_item_art (const InvEntry *a)
bool sort_item_equipped (const InvEntry *a)
bool sort_item_identified (const InvEntry *a)
bool sort_item_charged (const InvEntry *a)
void init_item_sort_comparators (item_sort_comparators &list, const std::string &set)
bool in_inventory (const item_def &i)
unsigned char get_invent (int invent_type)
std::string item_class_name (int type, bool terse)
std::vector< SelItemselect_items (const std::vector< const item_def * > &items, const char *title, bool noselect, menu_type mtype)
bool any_items_to_select (int selector, bool msg)
unsigned char invent_select (const char *title, menu_type type, int item_selector, int excluded_slot, int flags, invtitle_annotator titlefn, std::vector< SelItem > *items, std::vector< text_pattern > *filter, Menu::selitem_tfn selitemfn, const std::vector< SelItem > *pre_select)
void browse_inventory (bool show_price)
std::vector< SelItemprompt_invent_items (const char *prompt, menu_type mtype, int type_expect, invtitle_annotator titlefn, bool allow_auto_list, bool allow_easy_quit, const char other_valid_char, std::vector< text_pattern > *select_filter, Menu::selitem_tfn fn, const std::vector< SelItem > *pre_select)
bool check_old_item_warning (const item_def &item, operation_types oper)
bool needs_handle_warning (const item_def &item, operation_types oper)
bool check_warning_inscriptions (const item_def &item, operation_types oper)
int prompt_invent_item (const char *prompt, menu_type mtype, int type_expect, bool must_exist, bool allow_auto_list, bool allow_easy_quit, const char other_valid_char, int excluded_slot, int *const count, operation_types oper, bool allow_list_known)
bool prompt_failed (int retval, std::string msg)
bool item_is_evokable (const item_def &item, bool known, bool all_wands, bool msg)

Function Documentation

bool any_items_to_select ( int  selector,
bool  msg 
)

Here is the call graph for this function:

void browse_inventory ( bool  show_price  ) 

Here is the call graph for this function:

bool check_old_item_warning ( const item_def item,
operation_types  oper 
)

Here is the call graph for this function:

bool check_warning_inscriptions ( const item_def item,
operation_types  oper 
)

Here is the call graph for this function:

template<typename T, T(*)(const InvEntry *a) proc>
int compare_item ( const InvEntry a,
const InvEntry b 
) [inline]

template<std::string(*)(const InvEntry *a) proc>
int compare_item_str ( const InvEntry a,
const InvEntry b 
) [inline]

unsigned char get_invent ( int  invent_type  ) 

Here is the call graph for this function:

bool in_inventory ( const item_def i  ) 

void init_item_sort_comparators ( item_sort_comparators list,
const std::string set 
)

Here is the call graph for this function:

unsigned char invent_select ( const char *  title,
menu_type  type,
int  item_selector,
int  excluded_slot,
int  flags,
invtitle_annotator  titlefn,
std::vector< SelItem > *  items,
std::vector< text_pattern > *  filter,
Menu::selitem_tfn  selitemfn,
const std::vector< SelItem > *  pre_select 
)

Here is the call graph for this function:

std::string item_class_name ( int  type,
bool  terse 
)

bool item_is_evokable ( const item_def item,
bool  known,
bool  all_wands,
bool  msg 
)

Here is the call graph for this function:

bool needs_handle_warning ( const item_def item,
operation_types  oper 
)

Here is the call graph for this function:

bool prompt_failed ( int  retval,
std::string  msg 
)

Here is the call graph for this function:

int prompt_invent_item ( const char *  prompt,
menu_type  mtype,
int  type_expect,
bool  must_exist,
bool  allow_auto_list,
bool  allow_easy_quit,
const char  other_valid_char,
int  excluded_slot,
int *const   count,
operation_types  oper,
bool  allow_list_known 
)

Here is the call graph for this function:

std::vector<SelItem> prompt_invent_items ( const char *  prompt,
menu_type  mtype,
int  type_expect,
invtitle_annotator  titlefn,
bool  allow_auto_list,
bool  allow_easy_quit,
const char  other_valid_char,
std::vector< text_pattern > *  select_filter,
Menu::selitem_tfn  fn,
const std::vector< SelItem > *  pre_select 
)

Here is the call graph for this function:

std::vector<SelItem> select_items ( const std::vector< const item_def * > &  items,
const char *  title,
bool  noselect,
menu_type  mtype 
)

Here is the call graph for this function:

bool sort_item_art ( const InvEntry a  ) 

Here is the call graph for this function:

std::string sort_item_basename ( const InvEntry a  ) 

Here is the call graph for this function:

bool sort_item_charged ( const InvEntry a  ) 

Here is the call graph for this function:

bool sort_item_curse ( const InvEntry a  ) 

Here is the call graph for this function:

bool sort_item_ego ( const InvEntry a  ) 

Here is the call graph for this function:

bool sort_item_equipped ( const InvEntry a  ) 

Here is the call graph for this function:

int sort_item_freshness ( const InvEntry a  ) 

Here is the call graph for this function:

std::string sort_item_fullname ( const InvEntry a  ) 

Here is the call graph for this function:

bool sort_item_glowing ( const InvEntry a  ) 

Here is the call graph for this function:

bool sort_item_identified ( const InvEntry a  ) 

Here is the call graph for this function:

int sort_item_qty ( const InvEntry a  ) 

std::string sort_item_qualname ( const InvEntry a  ) 

Here is the call graph for this function:

int sort_item_slot ( const InvEntry a  ) 


Generated on Thu Jan 13 13:06:35 2011 by  doxygen 1.5.6