Crossfire Server, Trunk  R22047
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, uint64_t reduction);
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
void sell_item(object *op, object *pl)
Definition: shop.c:967
Definition: player.h:92
bool shop_contains(object *ob)
Definition: shop.c:1291
int shop_describe(const object *op)
Definition: shop.c:1189
double shop_approval(const mapstruct *map, const object *player)
Definition: shop.c:1125
uint64_t shop_price_buy(const object *obj, object *who)
Definition: shop.c:186
char * cost_approx_str(const object *obj, object *who)
Definition: shop.c:414
uint64_t query_money(const object *op)
Definition: shop.c:475
uint64_t price_base(const object *obj)
Definition: shop.c:75
int pay_for_amount(uint64_t to_pay, object *pl)
Definition: shop.c:506
char * cost_str(uint64_t cost)
Definition: shop.c:410
int pay_for_item(object *op, object *pl, uint64_t reduction)
Definition: shop.c:546
unsigned __int64 uint64_t
Definition: win32.h:167
uint64_t price_approx(const object *obj, object *who)
Definition: shop.c:133
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:327
int shop_pay_unpaid(object *pl, object *op)
Definition: shop.c:888
Definition: map.h:326
int can_pay(object *pl)
Definition: shop.c:835