Crossfire Server, Trunk  R21569
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 
60 char* cost_string_from_value(uint64_t cost, int largest_coin);
61 char *cost_str(uint64_t cost);
62 
70 char *cost_approx_str(const object *obj, object *who);
71 
79 uint64_t query_money(const object *op);
80 
81 int pay_for_amount(uint64_t to_pay, object *pl);
82 int can_pay(object *pl);
83 
94 int shop_pay_unpaid(object *pl, object *op);
95 
96 int pay_for_item(object *op, object *pl);
97 void sell_item(object *op, object *pl);
98 
107 double shop_approval(const mapstruct *map, const object *player);
108 
112 bool shop_contains(object *ob);
113 
121 int shop_describe(const object *op);
122 
123 #endif
Definition: object.h:274
void sell_item(object *op, object *pl)
Definition: shop.c:951
Definition: player.h:92
bool shop_contains(object *ob)
Definition: shop.c:1274
int pay_for_item(object *op, object *pl)
Definition: shop.c:551
int shop_describe(const object *op)
Definition: shop.c:1172
double shop_approval(const mapstruct *map, const object *player)
Definition: shop.c:1108
uint64_t shop_price_buy(const object *obj, object *who)
Definition: shop.c:192
char * cost_approx_str(const object *obj, object *who)
Definition: shop.c:421
uint64_t query_money(const object *op)
Definition: shop.c:482
uint64_t price_base(const object *obj)
Definition: shop.c:70
int pay_for_amount(uint64_t to_pay, object *pl)
Definition: shop.c:513
char * cost_str(uint64_t cost)
Definition: shop.c:417
unsigned __int64 uint64_t
Definition: win32.h:167
uint64_t price_approx(const object *obj, object *who)
Definition: shop.c:128
uint64_t shop_price_sell(const object *obj, object *who)
Definition: shop.c:250
char * cost_string_from_value(uint64_t cost, int largest_coin)
Definition: shop.c:334
int shop_pay_unpaid(object *pl, object *op)
Definition: shop.c:883
Definition: map.h:325
int can_pay(object *pl)
Definition: shop.c:830