#include <stash.h>
Public Member Functions | |
Stash (int xp=-1, int yp=-1) | |
void | update () |
void | save (writer &) const |
void | load (reader &) |
std::string | description () const |
std::string | feature_description () const |
std::vector< item_def > | get_items () const |
bool | show_menu (const level_pos &place, bool can_travel) const |
bool | pickup_eligible () const |
bool | unverified () const |
bool | matches_search (const std::string &prefix, const base_pattern &search, stash_search_result &res) const |
void | write (std::ostream &os, int refx=0, int refy=0, std::string place="", bool identify=false) const |
bool | empty () const |
bool | isAt (const coord_def &c) const |
int | abs_pos () const |
int | getX () const |
int | getY () const |
bool | is_verified () const |
Static Public Member Functions | |
static bool | is_boring_feature (dungeon_feature_type feat) |
static void | filter (object_class_type base_type, uint8_t sub_type) |
static void | filter (const std::string &filt) |
static std::string | stash_item_name (const item_def &item) |
static bool | is_filtered (const item_def &item) |
Public Attributes | |
bool | enabled |
Friends | |
class | LevelStashes |
class | ST_ItemIterator |
Stash::Stash | ( | int | xp = -1 , |
|
int | yp = -1 | |||
) |
bool Stash::is_boring_feature | ( | dungeon_feature_type | feat | ) | [static] |
void Stash::filter | ( | object_class_type | base_type, | |
uint8_t | sub_type | |||
) | [static] |
void Stash::filter | ( | const std::string & | filt | ) | [static] |
std::string Stash::stash_item_name | ( | const item_def & | item | ) | [static] |
void Stash::update | ( | ) |
void Stash::save | ( | writer & | outf | ) | const |
void Stash::load | ( | reader & | inf | ) |
std::string Stash::description | ( | ) | const |
std::string Stash::feature_description | ( | ) | const |
std::vector< item_def > Stash::get_items | ( | ) | const |
bool Stash::show_menu | ( | const level_pos & | place, | |
bool | can_travel | |||
) | const |
bool Stash::pickup_eligible | ( | ) | const |
bool Stash::unverified | ( | ) | const |
bool Stash::matches_search | ( | const std::string & | prefix, | |
const base_pattern & | search, | |||
stash_search_result & | res | |||
) | const |
void Stash::write | ( | std::ostream & | os, | |
int | refx = 0 , |
|||
int | refy = 0 , |
|||
std::string | place = "" , |
|||
bool | identify = false | |||
) | const |
bool Stash::empty | ( | ) | const [inline] |
bool Stash::isAt | ( | const coord_def & | c | ) | const [inline] |
int Stash::abs_pos | ( | ) | const [inline] |
int Stash::getX | ( | ) | const [inline] |
int Stash::getY | ( | ) | const [inline] |
bool Stash::is_verified | ( | ) | const [inline] |
bool Stash::is_filtered | ( | const item_def & | item | ) | [static] |
friend class LevelStashes [friend] |
friend class ST_ItemIterator [friend] |
bool Stash::enabled |