#include <shopping.h>
Public Member Functions | |
ShoppingList () | |
bool | add_thing (const item_def &item, int cost, const level_pos *pos=NULL) |
bool | add_thing (std::string desc, std::string buy_verb, int cost, const level_pos *pos=NULL) |
bool | is_on_list (const item_def &item, const level_pos *pos=NULL) const |
bool | is_on_list (std::string desc, const level_pos *pos=NULL) const |
bool | del_thing (const item_def &item, const level_pos *pos=NULL) |
bool | del_thing (std::string desc, const level_pos *pos=NULL) |
unsigned int | cull_identical_items (const item_def &item, int cost=-1) |
void | gold_changed (int old_amount, int new_amount) |
void | move_things (const coord_def &src, const coord_def &dst) |
void | forget_pos (const level_pos &pos) |
void | display () |
void | refresh () |
int | size () const |
Static Public Member Functions | |
static bool | items_are_same (const item_def &item_a, const item_def &item_b) |
ShoppingList::ShoppingList | ( | ) |
bool ShoppingList::add_thing | ( | std::string | desc, | |
std::string | buy_verb, | |||
int | cost, | |||
const level_pos * | pos = NULL | |||
) |
bool ShoppingList::is_on_list | ( | std::string | desc, | |
const level_pos * | pos = NULL | |||
) | const |
bool ShoppingList::del_thing | ( | std::string | desc, | |
const level_pos * | pos = NULL | |||
) |
unsigned int ShoppingList::cull_identical_items | ( | const item_def & | item, | |
int | cost = -1 | |||
) |
void ShoppingList::gold_changed | ( | int | old_amount, | |
int | new_amount | |||
) |
void ShoppingList::forget_pos | ( | const level_pos & | pos | ) |
void ShoppingList::display | ( | ) |
void ShoppingList::refresh | ( | ) |
int ShoppingList::size | ( | ) | const |