Crossfire Server, Trunk
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
price_base
uint64_t price_base(const object *obj)
Definition: shop.c:75
pl
Definition: player.h:105
shop_price_buy
uint64_t shop_price_buy(const object *obj, object *who)
Definition: shop.c:190
guildjoin.ob
ob
Definition: guildjoin.py:42
price_approx
uint64_t price_approx(const object *obj, object *who)
Definition: shop.c:133
obj
Definition: object.h:277
autojail.who
who
Definition: autojail.py:3
disinfect.map
map
Definition: disinfect.py:4
shop_describe
int shop_describe(const object *op)
Definition: shop.c:1174
shop_pay_unpaid
int shop_pay_unpaid(object *pl, object *op)
Definition: shop.c:865
mapdef
Definition: map.h:317
cost_approx_str
char * cost_approx_str(const object *obj, object *who)
Definition: shop.c:369
cost_str
char * cost_str(uint64_t cost)
Definition: shop.c:365
give.op
op
Definition: give.py:33
pay_for_item
int pay_for_item(object *op, object *pl, uint64_t reduction)
Definition: shop.c:501
query_money
uint64_t query_money(const object *op)
Definition: shop.c:430
can_pay
int can_pay(object *pl)
Definition: shop.c:811
shop_approval
double shop_approval(const mapstruct *map, const object *player)
Definition: shop.c:1111
sell_item
void sell_item(object *op, object *pl)
Definition: shop.c:945
diamondslots.cost
int cost
Definition: diamondslots.py:21
shop_contains
bool shop_contains(object *ob)
Definition: shop.c:1276
pay_for_amount
int pay_for_amount(uint64_t to_pay, object *pl)
Definition: shop.c:461
shop_price_sell
uint64_t shop_price_sell(const object *obj, object *who)
Definition: shop.c:211
cost_string_from_value
char * cost_string_from_value(uint64_t cost, int largest_coin)
Definition: shop.c:277