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
player
Definition: player.h:105
altar_valkyrie.obj
obj
Definition: altar_valkyrie.py:33
price_base
uint64_t price_base(const object *obj)
Definition: shop.cpp:75
shop_price_buy
uint64_t shop_price_buy(const object *obj, object *who)
Definition: shop.cpp:190
guildjoin.ob
ob
Definition: guildjoin.py:42
price_approx
uint64_t price_approx(const object *obj, object *who)
Definition: shop.cpp:133
autojail.who
who
Definition: autojail.py:3
disinfect.map
map
Definition: disinfect.py:4
shop_describe
int shop_describe(const object *op)
Definition: shop.cpp:1194
shop_pay_unpaid
int shop_pay_unpaid(object *pl, object *op)
Definition: shop.cpp:947
cost_approx_str
char * cost_approx_str(const object *obj, object *who)
Definition: shop.cpp:369
cost_str
char * cost_str(uint64_t cost)
Definition: shop.cpp:365
mapstruct
Definition: map.h:313
give.op
op
Definition: give.py:33
pay_for_item
int pay_for_item(object *op, object *pl, uint64_t reduction)
Definition: shop.cpp:501
query_money
uint64_t query_money(const object *op)
Definition: shop.cpp:430
can_pay
int can_pay(object *pl)
Definition: shop.cpp:841
shop_approval
double shop_approval(const mapstruct *map, const object *player)
Definition: shop.cpp:1131
sell_item
void sell_item(object *op, object *pl)
Definition: shop.cpp:966
diamondslots.cost
int cost
Definition: diamondslots.py:21
shop_contains
bool shop_contains(object *ob)
Definition: shop.cpp:1296
pay_for_amount
int pay_for_amount(uint64_t to_pay, object *pl)
Definition: shop.cpp:461
altar_valkyrie.pl
pl
Definition: altar_valkyrie.py:28
shop_price_sell
uint64_t shop_price_sell(const object *obj, object *who)
Definition: shop.cpp:211
cost_string_from_value
char * cost_string_from_value(uint64_t cost, int largest_coin)
Definition: shop.cpp:277