ShoppingList Class Reference
#include <shopping.h>
List of all members.
|
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) |
Constructor & Destructor Documentation
| ShoppingList::ShoppingList |
( |
|
) |
|
Member Function Documentation
| bool ShoppingList::add_thing |
( |
const item_def & |
item, |
|
|
int |
cost, |
|
|
const level_pos * |
pos = NULL | |
|
) |
| | |
| bool ShoppingList::is_on_list |
( |
const item_def & |
item, |
|
|
const level_pos * |
pos = NULL | |
|
) |
| | const |
| 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 |
| bool ShoppingList::items_are_same |
( |
const item_def & |
item_a, |
|
|
const item_def & |
item_b | |
|
) |
| | [static] |
The documentation for this class was generated from the following files: