UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_fightequip_callbacks.h File Reference

Header file for menu callback functions used for base and aircraft equip menu. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

aircraftSlot_tAII_SelectAircraftSlot (aircraft_t *aircraft, aircraftItemType_t type)
 Returns a pointer to the selected slot.
void AIM_InitCallbacks (void)
void AIM_ShutdownCallbacks (void)

Detailed Description

Header file for menu callback functions used for base and aircraft equip menu.

Definition in file cp_fightequip_callbacks.h.

Function Documentation

◆ AII_SelectAircraftSlot()

aircraftSlot_t * AII_SelectAircraftSlot ( aircraft_t * aircraft,
aircraftItemType_t type )

Returns a pointer to the selected slot.

Parameters
[in]aircraftPointer to the aircraft
[in]typeType of slot we want to select
Note
also used by BDEF_ functions
Returns
Pointer to the slot corresponding to airequipID

Definition at line 86 of file cp_fightequip_callbacks.cpp.

References AC_ITEM_AMMO, AC_ITEM_ELECTRONICS, AC_ITEM_SHIELD, AC_ITEM_WEAPON, AIM_CheckAirequipSelectedSlot(), airequipSelectedSlot, cgi, aircraft_t::electronics, aircraft_t::shield, type, and aircraft_t::weapons.

Referenced by AIM_AircraftEquipAddItem_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipRemoveItem_f(), AIM_AircraftEquipZoneSelect_f(), and AIM_UpdateItemDescription().

◆ AIM_InitCallbacks()

void AIM_InitCallbacks ( void )

Definition at line 941 of file cp_fightequip_callbacks.cpp.

References airequipCmds, and cgi.

Referenced by CP_AddCampaignCallbackCommands().

◆ AIM_ShutdownCallbacks()

void AIM_ShutdownCallbacks ( void )

Definition at line 946 of file cp_fightequip_callbacks.cpp.

References airequipCmds, and cgi.

Referenced by CP_RemoveCampaignCallbackCommands().