naev 0.11.5
land_trade.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "land.h"
7
8/*
9 * Helper functions.
10 */
11void commodity_exchange_open( unsigned int wid );
12void commodity_exchange_cleanup (void);
13void commodity_update( unsigned int wid, const char *str );
14void commodity_buy( unsigned int wid, const char *str );
15void commodity_sell( unsigned int wid, const char *str );
16int commodity_canBuy( const Commodity* com );
17int commodity_canSell( const Commodity* com );
18int commodity_getMod (void);
19void commodity_renderMod( double bx, double by, double w, double h, void *data );
int commodity_canBuy(const Commodity *com)
Checks to see if the player can buy a commodity.
Definition land_trade.c:307
int commodity_getMod(void)
Gets the current modifier status.
Definition land_trade.c:448
void commodity_exchange_open(unsigned int wid)
Opens the local market window.
Definition land_trade.c:66
void commodity_sell(unsigned int wid, const char *str)
Attempts to sell a commodity.
Definition land_trade.c:405
void commodity_renderMod(double bx, double by, double w, double h, void *data)
Renders the commodity buying modifier.
Definition land_trade.c:470
void commodity_buy(unsigned int wid, const char *str)
Buys the selected commodity.
Definition land_trade.c:362
int commodity_canSell(const Commodity *com)
Checks to see if a player can sell a commodity.
Definition land_trade.c:346
void commodity_update(unsigned int wid, const char *str)
Updates the commodity window.
Definition land_trade.c:208
Represents a commodity.
Definition commodity.h:43