int BS_GetItemSellingPrice(const objDef_t *od)
Get the price for an item that you want to sell on the market.
bool BS_BuyItem(const objDef_t *od, base_t *base, int count)
Buys items from the market.
int askAircraft[AIRCRAFTTYPE_MAX]
void BS_AddItemToMarket(const objDef_t *od, int amount)
Internal function to add items to the market.
int bidAircraft[AIRCRAFTTYPE_MAX]
double currentEvolutionAircraft[AIRCRAFTTYPE_MAX]
Defines a type of UGV/Robot.
bool BS_BuyUGV(const ugv_t *ugv, base_t *base)
Buys the given UGV.
Defines all attributes of objects used in the inventory.
A base with all it's data.
bool BS_IsOnMarket(const objDef_t *item)
Check if an item is on market.
int BS_GetAircraftSellingPrice(const aircraft_t *aircraft)
Get the price for an aircraft that you want to sell on the market.
bool BS_AircraftIsOnMarket(const aircraft_t *aircraft)
Checks whether a given aircraft should appear on the market.
int BS_GetItemOnMarket(const objDef_t *od)
Get the number of items of the given type on the market.
int BS_GetAircraftBuyingPrice(const aircraft_t *aircraft)
Get the price for an aircraft that you want to buy on the market.
int BS_GetAircraftOnMarket(const aircraft_t *aircraft)
Get the number of aircraft of the given type on the market.
int numItems[MAX_OBJDEFS]
void CP_CampaignRunMarket(struct campaign_s *campaign)
make number of items change every day.
int numAircraft[AIRCRAFTTYPE_MAX]
int bidItems[MAX_OBJDEFS]
int BS_GetItemBuyingPrice(const objDef_t *od)
Get the price for an item that you want to buy on the market.
bool autosell[MAX_OBJDEFS]
int askItems[MAX_OBJDEFS]
An aircraft with all it's data.
bool BS_SellUGV(Employee *robot)
Sells the given UGV with all the equipment.
double currentEvolutionItems[MAX_OBJDEFS]
void BS_InitMarket(const struct campaign_s *campaign)
bool BS_SellItem(const objDef_t *od, base_t *base, int count)
Sells items from the market.
bool BS_BuyAircraft(const aircraft_t *aircraftTemplate, base_t *base)
Buys an aircraft.
bool BS_SellAircraft(aircraft_t *aircraft)
Sells the given aircraft with all the equipment.