ShoppingList Class Reference

#include <shopping.h>

Collaboration diagram for ShoppingList:

Collaboration graph
[legend]

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 
)

Here is the call graph for this function:

bool ShoppingList::add_thing ( std::string  desc,
std::string  buy_verb,
int  cost,
const level_pos pos = NULL 
)

Here is the call graph for this function:

bool ShoppingList::is_on_list ( const item_def item,
const level_pos pos = NULL 
) const

Here is the call graph for this function:

bool ShoppingList::is_on_list ( std::string  desc,
const level_pos pos = NULL 
) const

Here is the call graph for this function:

bool ShoppingList::del_thing ( const item_def item,
const level_pos pos = NULL 
)

Here is the call graph for this function:

bool ShoppingList::del_thing ( std::string  desc,
const level_pos pos = NULL 
)

Here is the call graph for this function:

unsigned int ShoppingList::cull_identical_items ( const item_def item,
int  cost = -1 
)

Here is the call graph for this function:

void ShoppingList::gold_changed ( int  old_amount,
int  new_amount 
)

Here is the call graph for this function:

void ShoppingList::move_things ( const coord_def src,
const coord_def dst 
)

Here is the call graph for this function:

void ShoppingList::forget_pos ( const level_pos pos  ) 

Here is the call graph for this function:

void ShoppingList::display (  ) 

Here is the call graph for this function:

void ShoppingList::refresh (  ) 

Here is the call graph for this function:

int ShoppingList::size (  )  const

Here is the call graph for this function:

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:

Generated on Thu Jan 13 13:41:55 2011 by  doxygen 1.5.6