Header file for menu related console command callbacks. More...
Go to the source code of this file.
Functions | |
void | AIR_AircraftSelect (aircraft_t *aircraft) |
Sets aircraftCurrent and updates related cvars and menutexts. | |
void | AIR_InitCallbacks (void) |
void | AIR_ShutdownCallbacks (void) |
Header file for menu related console command callbacks.
Definition in file cp_aircraft_callbacks.h.
void AIR_AircraftSelect | ( | aircraft_t * | aircraft | ) |
Sets aircraftCurrent and updates related cvars and menutexts.
[in] | aircraft | Pointer to given aircraft that should be selected in the menu. |
Definition at line 186 of file cp_aircraft_callbacks.c.
References _, AC_ITEM_ELECTRONICS, AC_ITEM_SHIELD, AC_ITEM_WEAPON, AIR_AircraftStatusToName(), AIR_BaseHasAircraft(), AIR_GetNextFromBase(), AIR_GetOperationRange(), AIR_GetSlotItems(), AIR_IsAircraftInBase(), AIR_STATS_FUELSIZE, AIR_STATS_SPEED, base_s::aircraft, base_s::aircraftCurrent, CL_AircraftMenuStatsValues(), CL_EquipSoldierState(), CL_UpdateActorAircraftVar(), Com_Error(), Com_sprintf(), Cvar_Set(), Cvar_SetValue(), EMPL_SOLDIER, ERR_DROP, aircraft_s::fuel, aircraft_s::homebase, aircraft_s::id, id, LIST_Count(), aircraft_s::maxElectronics, aircraft_s::maxWeapons, technology_s::mdl, aircraft_s::name, Q_strcat(), aircraft_s::stats, aircraft_s::tech, TEXT_AIRCRAFT_INFO, UI_ExecuteConfunc(), UI_RegisterText(), UI_ResetData(), and va().
Referenced by AIM_AircraftReturnToBase_f(), AIM_SelectAircraft_f(), and CL_PopupInterceptRClick_f().
void AIR_InitCallbacks | ( | void | ) |
Definition at line 282 of file cp_aircraft_callbacks.c.
References AIM_AircraftReturnToBase_f(), AIM_AircraftStart_f(), AIM_SelectAircraft_f(), AIR_AircraftUpdateList_f(), AIR_ChangeAircraftName_f(), and Cmd_AddCommand().
Referenced by CP_AddCampaignCallbackCommands().
void AIR_ShutdownCallbacks | ( | void | ) |
Definition at line 295 of file cp_aircraft_callbacks.c.
References Cmd_RemoveCommand().
Referenced by CP_RemoveCampaignCallbackCommands().