naev 0.12.6
land_trade.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "commodity.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,
20 void *data );
int commodity_canBuy(const Commodity *com)
Checks to see if the player can buy a commodity.
Definition land_trade.c:346
int commodity_getMod(void)
Gets the current modifier status.
Definition land_trade.c:491
void commodity_exchange_open(unsigned int wid)
Opens the local market window.
Definition land_trade.c:63
void commodity_sell(unsigned int wid, const char *str)
Attempts to sell a commodity.
Definition land_trade.c:446
void commodity_renderMod(double bx, double by, double w, double h, void *data)
Renders the commodity buying modifier.
Definition land_trade.c:513
void commodity_buy(unsigned int wid, const char *str)
Buys the selected commodity.
Definition land_trade.c:401
int commodity_canSell(const Commodity *com)
Checks to see if a player can sell a commodity.
Definition land_trade.c:385
void commodity_update(unsigned int wid, const char *str)
Updates the commodity window.
Definition land_trade.c:242
Represents a commodity.
Definition commodity.h:57