-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathtrade.h
32 lines (26 loc) · 1.07 KB
/
trade.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <string>
namespace df
{
struct caravan_state;
struct creature_raw;
struct entity_buy_prices;
struct entity_sell_prices;
struct historical_entity;
struct item;
struct viewscreen_tradegoodsst;
}
class AI;
class Trade
{
AI & ai;
public:
Trade(AI & ai);
~Trade();
bool can_trade();
bool can_move_goods();
void read_trader_reply(std::string & reply, std::string & mood);
int32_t item_value_for_caravan(df::item *item, df::caravan_state *caravan, df::historical_entity *entity, df::creature_raw *creature, int32_t adjustment, int32_t qty);
int32_t item_price_for_caravan(df::item *item, df::caravan_state *caravan, df::historical_entity *entity, df::creature_raw *creature, int32_t qty, df::entity_buy_prices *pricetable_buy, df::entity_sell_prices *pricetable_sell);
int32_t item_or_container_price_for_caravan(df::item *item, df::caravan_state *caravan, df::historical_entity *entity, df::creature_raw *creature, int32_t qty, df::entity_buy_prices *pricetable_buy, df::entity_sell_prices *pricetable_sell);
};