#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"
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< SelItem > | select_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< 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) |
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) |
bool any_items_to_select | ( | int | selector, | |
bool | msg | |||
) |
void browse_inventory | ( | bool | show_price | ) |
bool check_old_item_warning | ( | const item_def & | item, | |
operation_types | oper | |||
) |
bool check_warning_inscriptions | ( | const item_def & | item, | |
operation_types | oper | |||
) |
int compare_item | ( | const InvEntry * | a, | |
const InvEntry * | b | |||
) | [inline] |
int compare_item_str | ( | const InvEntry * | a, | |
const InvEntry * | b | |||
) | [inline] |
unsigned char get_invent | ( | int | invent_type | ) |
bool in_inventory | ( | const item_def & | i | ) |
void init_item_sort_comparators | ( | item_sort_comparators & | list, | |
const std::string & | set | |||
) |
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 | |||
) |
std::string item_class_name | ( | int | type, | |
bool | terse | |||
) |
bool item_is_evokable | ( | const item_def & | item, | |
bool | known, | |||
bool | all_wands, | |||
bool | msg | |||
) |
bool needs_handle_warning | ( | const item_def & | item, | |
operation_types | oper | |||
) |
bool prompt_failed | ( | int | retval, | |
std::string | msg | |||
) |
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 | |||
) |
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 | |||
) |
std::vector<SelItem> select_items | ( | const std::vector< const item_def * > & | items, | |
const char * | title, | |||
bool | noselect, | |||
menu_type | mtype | |||
) |
bool sort_item_art | ( | const InvEntry * | a | ) |
std::string sort_item_basename | ( | const InvEntry * | a | ) |
bool sort_item_charged | ( | const InvEntry * | a | ) |
bool sort_item_curse | ( | const InvEntry * | a | ) |
bool sort_item_ego | ( | const InvEntry * | a | ) |
bool sort_item_equipped | ( | const InvEntry * | a | ) |
int sort_item_freshness | ( | const InvEntry * | a | ) |
std::string sort_item_fullname | ( | const InvEntry * | a | ) |
bool sort_item_glowing | ( | const InvEntry * | a | ) |
bool sort_item_identified | ( | const InvEntry * | a | ) |
int sort_item_qty | ( | const InvEntry * | a | ) |
std::string sort_item_qualname | ( | const InvEntry * | a | ) |
int sort_item_slot | ( | const InvEntry * | a | ) |