#include <stash.h>
Public Member Functions | |
ShopInfo (int xp, int yp) | |
bool | matches_search (const std::string &prefix, const base_pattern &search, stash_search_result &res) const |
std::string | description () const |
void | save (writer &) const |
void | load (reader &) |
bool | show_menu (const level_pos &place, bool can_travel) const |
bool | is_visited () const |
void | write (std::ostream &os, bool identify=false) const |
void | reset () |
void | set_name (const std::string &s) |
void | add_item (const item_def &item, unsigned price) |
bool | isAt (const coord_def &c) const |
Friends | |
class | ST_ItemIterator |
Classes | |
struct | shop_item |
ShopInfo::ShopInfo | ( | int | xp, | |
int | yp | |||
) |
bool ShopInfo::matches_search | ( | const std::string & | prefix, | |
const base_pattern & | search, | |||
stash_search_result & | res | |||
) | const |
std::string ShopInfo::description | ( | ) | const |
void ShopInfo::save | ( | writer & | outf | ) | const |
void ShopInfo::load | ( | reader & | inf | ) |
bool ShopInfo::show_menu | ( | const level_pos & | place, | |
bool | can_travel | |||
) | const |
bool ShopInfo::is_visited | ( | ) | const [inline] |
void ShopInfo::write | ( | std::ostream & | os, | |
bool | identify = false | |||
) | const |
void ShopInfo::reset | ( | ) | [inline] |
void ShopInfo::set_name | ( | const std::string & | s | ) | [inline] |
void ShopInfo::add_item | ( | const item_def & | item, | |
unsigned | price | |||
) |
bool ShopInfo::isAt | ( | const coord_def & | c | ) | const [inline] |
friend class ST_ItemIterator [friend] |