|
UFO: Alien Invasion
|
#include "../../cl_shared.h"#include "../../cl_inventory.h"#include "../../ui/ui_dataids.h"#include "cp_campaign.h"#include "cp_market.h"#include "cp_market_callbacks.h"#include "cp_popup.h"
Go to the source code of this file.
Functions | |
| static void | BS_MarketAircraftDescription (const aircraft_t *aircraftTemplate) |
| Prints general information about aircraft for Buy/Sell menu. | |
| static void | BS_MarketInfoClick_f (void) |
| Opens the UFOpedia for the current selected item/aircraft/ugv. | |
| static void | BS_SetAutosell_f (void) |
| Sets/unsets or flips the autosell property of an item on the market. | |
| static void | BS_Buy_f (void) |
| Buy/Sell item/aircraft/ugv on the market. | |
| static void | BS_ShowInfo_f (void) |
| Show information about item/aircaft/ugv in the market. | |
| static void | BS_FillMarket_f (void) |
| Fill market item list. | |
| void | BS_InitCallbacks (void) |
| Function registers the callbacks of the maket UI and do initializations. | |
| void | BS_ShutdownCallbacks (void) |
| Function unregisters the callbacks of the maket UI. | |
Variables | |
| static const cmdList_t | marketCallbacks [] |
Buy/Sell item/aircraft/ugv on the market.
Definition at line 113 of file cp_market_callbacks.cpp.
References _, AIR_AircraftAllowed(), AIR_AircraftGetFromIDX(), AIR_GetAircraftSilent(), AIR_GetHangarCapacityType(), AIR_RemoveEmployees(), B_COMMAND, B_GetBuildingStatus(), B_GetCurrentSelectedBase(), B_GetFoundedBaseByIDX(), B_ItemInBase(), B_POWER, BS_BuyAircraft(), BS_BuyItem(), BS_BuyUGV(), BS_GetAircraftBuyingPrice(), BS_GetItemBuyingPrice(), BS_GetItemOnMarket(), BS_IsOnMarket(), BS_SellAircraft(), BS_SellItem(), BS_SellUGV(), CAP_GetFreeCapacity(), CAP_ITEMS, ccs, cgi, count, CP_Popup(), E_CountUnhiredRobotsByType(), E_GetEmployeeByTypeFromChrUCN(), EMPL_ROBOT, ERR_DROP, objDef_t::id, ugv_t::id, objDef_t::idx, INVSH_GetItemByID(), ugv_t::price, Q_strstart(), objDef_t::size, UGV_SIZE, and ugv_t::weapon.
Fill market item list.
Definition at line 355 of file cp_market_callbacks.cpp.
References _, AIR_ForeachFromBase, AIR_IsAircraftInBase(), B_GetCurrentSelectedBase(), B_GetFoundedBaseByIDX(), B_ItemInBase(), BS_AircraftIsOnMarket(), BS_GetAircraftBuyingPrice(), BS_GetAircraftOnMarket(), BS_GetAircraftSellingPrice(), BS_GetItemBuyingPrice(), BS_GetItemOnMarket(), BS_GetItemSellingPrice(), BS_IsOnMarket(), CAP_AIRCRAFT_BIG, CAP_AIRCRAFT_SMALL, CAP_GetFreeCapacity(), CAP_GetMax, CAP_ITEMS, ccs, cgi, E_CountUnhiredRobotsByType(), E_Foreach, EMPL_ROBOT, FILTER_AIRCRAFT, FILTER_CRAFTITEM, FILTER_DUMMY, FILTER_S_ARMOUR, FILTER_S_HEAVY, FILTER_S_IMPLANT, FILTER_S_MISC, FILTER_S_PRIMARY, FILTER_S_SECONDARY, FILTER_UGVITEM, i, aircraft_t::id, objDef_t::id, ugv_t::id, INVSH_GetItemByID(), MAX_FILTERTYPES, objDef_t::name, technology_t::name, ugv_t::price, RS_GetTechByProvided(), RS_GetTechForItem(), RS_IsResearched_ptr(), aircraft_t::tech, type, va(), and ugv_t::weapon.
Function registers the callbacks of the maket UI and do initializations.
Definition at line 480 of file cp_market_callbacks.cpp.
References cgi, and marketCallbacks.
Referenced by CP_AddCampaignCallbackCommands().
|
static |
Prints general information about aircraft for Buy/Sell menu.
| [in] | aircraftTemplate | Aircraft type. |
Definition at line 38 of file cp_market_callbacks.cpp.
References _, cgi, aircraft_t::id, aircraft_t::name, aircraft_t::tech, aircraft_t::tpl, and UP_AircraftDescription().
Referenced by BS_ShowInfo_f().
Opens the UFOpedia for the current selected item/aircraft/ugv.
Definition at line 57 of file cp_market_callbacks.cpp.
References cgi, technology_t::id, RS_GetTechByProvided(), and UP_OpenWith().
Sets/unsets or flips the autosell property of an item on the market.
Definition at line 69 of file cp_market_callbacks.cpp.
References AIR_GetAircraftSilent(), ccs, cgi, objDef_t::id, objDef_t::idx, INVSH_GetItemByID(), objDef_t::isVirtual, objDef_t::notOnMarket, RS_GetTechForItem(), and RS_IsResearched_ptr().
Show information about item/aircaft/ugv in the market.
Definition at line 282 of file cp_market_callbacks.cpp.
References AIR_AircraftGetFromIDX(), AIR_GetAircraftSilent(), BS_IsOnMarket(), BS_MarketAircraftDescription(), cgi, objDef_t::craftitem, E_GetEmployeeByTypeFromChrUCN(), EMPL_ROBOT, Employee::getUGV(), INVSH_GetItemByID(), MAX_ACITEMS, Q_strstart(), aircraft_t::tpl, craftItem::type, UP_AircraftItemDescription(), and UP_UGVDescription().
Function unregisters the callbacks of the maket UI.
Definition at line 488 of file cp_market_callbacks.cpp.
References cgi, and marketCallbacks.
Referenced by CP_RemoveCampaignCallbackCommands().
|
static |
Definition at line 466 of file cp_market_callbacks.cpp.
Referenced by BS_InitCallbacks(), and BS_ShutdownCallbacks().