UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_fightequip_callbacks.h File Reference

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

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. More...
 
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

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_s::electronics, aircraft_s::shield, and aircraft_s::weapons.

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

void AIM_InitCallbacks ( void  )

Definition at line 941 of file cp_fightequip_callbacks.cpp.

References cgi.

Referenced by CP_AddCampaignCallbackCommands().

void AIM_ShutdownCallbacks ( void  )

Definition at line 946 of file cp_fightequip_callbacks.cpp.

References cgi.

Referenced by CP_RemoveCampaignCallbackCommands().