Crossfire Server, Trunk  R20608
shop.h
Go to the documentation of this file.
1 #ifndef _SHOP_H
2 #define _SHOP_H
3 
12 uint64_t price_approx(const object *obj, object *who);
13 
21 uint64_t price_base(const object *obj);
22 
31 uint64_t shop_price_buy(const object *obj, object *who);
32 
41 uint64_t shop_price_sell(const object *obj, object *who);
42 
49 char* cost_string_from_value(uint64_t cost, int largest_coin);
50 char *cost_str(uint64_t cost);
51 
59 char *cost_approx_str(const object *obj, object *who);
60 
68 uint64_t query_money(const object *op);
69 
70 int pay_for_amount(uint64_t to_pay, object *pl);
71 int can_pay(object *pl);
72 
83 int shop_pay_unpaid(object *pl, object *op);
84 
85 int pay_for_item(object *op, object *pl);
86 void sell_item(object *op, object *pl);
87 
96 double shop_approval(const mapstruct *map, const object *player);
97 
101 bool shop_contains(object *ob);
102 
110 int shop_describe(const object *op);
111 
112 #endif
Definition: object.h:274
void sell_item(object *op, object *pl)
Definition: shop.c:940
Definition: player.h:92
bool shop_contains(object *ob)
Definition: shop.c:1258
int pay_for_item(object *op, object *pl)
Definition: shop.c:548
int shop_describe(const object *op)
Definition: shop.c:1156
double shop_approval(const mapstruct *map, const object *player)
Definition: shop.c:1097
uint64_t shop_price_buy(const object *obj, object *who)
Definition: shop.c:190
char * cost_approx_str(const object *obj, object *who)
Definition: shop.c:417
uint64_t query_money(const object *op)
Definition: shop.c:478
uint64_t price_base(const object *obj)
Definition: shop.c:66
int pay_for_amount(uint64_t to_pay, object *pl)
Definition: shop.c:509
char * cost_str(uint64_t cost)
Definition: shop.c:413
unsigned __int64 uint64_t
Definition: win32.h:167
uint64_t price_approx(const object *obj, object *who)
Definition: shop.c:126
uint64_t shop_price_sell(const object *obj, object *who)
Definition: shop.c:243
char * cost_string_from_value(uint64_t cost, int largest_coin)
Definition: shop.c:330
int shop_pay_unpaid(object *pl, object *op)
Definition: shop.c:874
Definition: map.h:325
int can_pay(object *pl)
Definition: shop.c:831