shopping.cc File Reference

#include "AppHdr.h"
#include "shopping.h"
#include "message.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "externs.h"
#include "options.h"
#include "artefact.h"
#include "cio.h"
#include "describe.h"
#include "decks.h"
#include "dgn-overview.h"
#include "files.h"
#include "food.h"
#include "invent.h"
#include "items.h"
#include "itemname.h"
#include "itemprop.h"
#include "libutil.h"
#include "macro.h"
#include "menu.h"
#include "notes.h"
#include "place.h"
#include "player.h"
#include "spl-book.h"
#include "stash.h"
#include "stuff.h"
#include "travel.h"
#include "env.h"

Include dependency graph for shopping.cc:


Classes

class  ShoppingListMenu

Defines

#define SHOPPING_LIST_COST_KEY   "shopping_list_cost_key"
#define SHOPPING_LIST_KEY   "shopping_list_key"
#define SHOPPING_THING_COST_KEY   "cost_key"
#define SHOPPING_THING_ITEM_KEY   "item_key"
#define SHOPPING_THING_DESC_KEY   "desc_key"
#define SHOPPING_THING_VERB_KEY   "verb_key"
#define SHOPPING_THING_POS_KEY   "pos_key"
#define SETUP_POS()
#define SETUP_THING()
#define REMOVE_PROMPTED_KEY   "remove_prompted_key"
#define REPLACE_PROMPTED_KEY   "replace_prompted_key"

Functions

bool shoptype_identifies_stock (shop_type type)
int artefact_value (const item_def &item)
unsigned int item_value (item_def item, bool ident)
void shop ()
void destroy_shop (shop_struct *shop)
void destroy_shop_at (coord_def p)
shop_structget_shop (const coord_def &where)
std::string shop_name (const coord_def &where, bool add_stop)
std::string shop_type_name (shop_type type)
std::string shop_type_suffix (shop_type type, const coord_def &where)
std::string shop_name (const coord_def &where)
bool is_shop_item (const item_def &item)

Variables

ShoppingList shopping_list

Define Documentation

#define REMOVE_PROMPTED_KEY   "remove_prompted_key"

#define REPLACE_PROMPTED_KEY   "replace_prompted_key"

 
#define SETUP_POS (  ) 

Value:

if (list == NULL) \
    { \
        mpr("SavefileCallback global constructor weirdness!", MSGCH_ERROR); \
        return (false); \
    } \
    level_pos pos;                  \
    if (_pos != NULL)               \
        pos = *_pos;                \
    else                            \
        pos = level_pos::current(); \
    ASSERT(pos.is_valid());

 
#define SETUP_THING (  ) 

Value:

CrawlHashTable *thing = new CrawlHashTable();  \
    (*thing)[SHOPPING_THING_COST_KEY] = cost; \
    (*thing)[SHOPPING_THING_POS_KEY]  = pos;

#define SHOPPING_LIST_COST_KEY   "shopping_list_cost_key"

#define SHOPPING_LIST_KEY   "shopping_list_key"

#define SHOPPING_THING_COST_KEY   "cost_key"

#define SHOPPING_THING_DESC_KEY   "desc_key"

#define SHOPPING_THING_ITEM_KEY   "item_key"

#define SHOPPING_THING_POS_KEY   "pos_key"

#define SHOPPING_THING_VERB_KEY   "verb_key"


Function Documentation

int artefact_value ( const item_def item  ) 

Here is the call graph for this function:

void destroy_shop ( shop_struct shop  ) 

Here is the call graph for this function:

void destroy_shop_at ( coord_def  p  ) 

Here is the call graph for this function:

shop_struct* get_shop ( const coord_def where  ) 

bool is_shop_item ( const item_def item  ) 

unsigned int item_value ( item_def  item,
bool  ident 
)

Here is the call graph for this function:

void shop (  ) 

Here is the call graph for this function:

std::string shop_name ( const coord_def where  ) 

Here is the call graph for this function:

std::string shop_name ( const coord_def where,
bool  add_stop 
)

Here is the call graph for this function:

std::string shop_type_name ( shop_type  type  ) 

std::string shop_type_suffix ( shop_type  type,
const coord_def where 
)

bool shoptype_identifies_stock ( shop_type  type  ) 


Variable Documentation


Generated on Thu Jan 13 13:21:44 2011 by  doxygen 1.5.6