slot of aircraft More...
#include <cp_aircraft.h>
Data Fields | |
int | idx |
struct base_s * | base |
struct installation_s * | installation |
struct aircraft_s * | aircraft |
aircraftItemType_t | type |
const objDef_t * | item |
const objDef_t * | ammo |
itemWeight_t | size |
int | ammoLeft |
int | delayNextShot |
int | installationTime |
const objDef_t * | nextItem |
const objDef_t * | nextAmmo |
itemPos_t | pos |
slot of aircraft
Definition at line 119 of file cp_aircraft.h.
struct aircraft_s* aircraftSlot_s::aircraft |
A link to the aircraft (if defined by aircraftItemType_t).
Definition at line 123 of file cp_aircraft.h.
Referenced by AII_AutoAddAmmo(), AII_InitialiseSlot(), AII_ReloadWeapon(), AII_SetAircraftInSlots(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), AIM_UpdateAircraftItemList(), AIR_CorrectAircraftSlotPointers(), AIR_LoadAircraftSlotsXML(), and AIR_MoveAircraftIntoNewHomebase().
const objDef_t* aircraftSlot_s::ammo |
Ammo that is currently in the slot. NULL if empty.
Definition at line 127 of file cp_aircraft.h.
Referenced by AII_AddAmmoToSlot(), AII_AutoAddAmmo(), AII_InitialiseSlot(), AII_ReloadWeapon(), AII_RemoveItemFromSlot(), AII_SaveOneSlotXML(), AIM_AircraftEquipMenuUpdate(), AIM_UpdateItemDescription(), AIR_GetAircraftWeaponRanges(), AIR_GetMaxAircraftWeaponRange(), AIR_ParseAircraft(), AIRFIGHT_AddProjectile(), AIRFIGHT_BaseShoot(), AIRFIGHT_CheckWeapon(), AIRFIGHT_ExecuteActions(), AIRFIGHT_InstallationShoot(), AIRFIGHT_ProbabilityToHit(), BDEF_AutoTarget(), BS_SellAircraft_f(), MAP_DrawMapOneBase(), and MAP_DrawMapOneInstallation().
The number of ammo left in this slot
Definition at line 129 of file cp_aircraft.h.
Referenced by AII_InitialiseSlot(), AII_LoadOneSlotXML(), AII_ReloadWeapon(), AII_RemoveItemFromSlot(), AII_SaveOneSlotXML(), AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunBaseDefence(), AIRFIGHT_CheckWeapon(), BDEF_AddBattery(), BDEF_AutoTarget(), CL_CampaignRunAircraft(), MAP_DrawMapOneBase(), and MAP_DrawMapOneInstallation().
struct base_s* aircraftSlot_s::base |
A link to the base. (if defined by aircraftItemType_t)
Definition at line 121 of file cp_aircraft.h.
Referenced by AII_AutoAddAmmo(), AII_InitialiseSlot(), AII_ReloadWeapon(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), AIR_CorrectAircraftSlotPointers(), and BDEF_AutoTarget().
The delay before the next projectile can be shot
Definition at line 130 of file cp_aircraft.h.
Referenced by AII_LoadOneSlotXML(), AII_ReloadWeapon(), AII_SaveOneSlotXML(), AIRFIGHT_BaseShoot(), AIRFIGHT_CampaignRunBaseDefence(), AIRFIGHT_CheckWeapon(), AIRFIGHT_ExecuteActions(), AIRFIGHT_InstallationShoot(), CL_CampaignRunAircraft(), and UFO_CampaignRunUFOs().
A link to the installation. (if defined by aircraftItemType_t)
Definition at line 122 of file cp_aircraft.h.
Referenced by AII_InitialiseSlot(), AII_ReloadWeapon(), AIR_CorrectAircraftSlotPointers(), and BDEF_AutoTarget().
The time (in hours) left before the item is finished to be installed or removed in/from slot This is > 0 if the item is being installed, < 0 if the item is being removed, 0 if the item is in place
Definition at line 131 of file cp_aircraft.h.
Referenced by AII_AddItemToSlot(), AII_CheckUpdateAircraftStats(), AII_InitialiseSlot(), AII_LoadOneSlotXML(), AII_RemoveItemFromSlot(), AII_SaveOneSlotXML(), AII_UpdateOneInstallationDelay(), AIM_AircraftEquipAddItem_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipRemoveItem_f(), AIM_AutoEquipAircraft(), AIRFIGHT_BaseShoot(), AIRFIGHT_CheckWeapon(), AIRFIGHT_InstallationShoot(), BDEF_AddItem_f(), BDEF_AddSlotToSlotList(), BDEF_AutoTarget(), BDEF_RemoveItem_f(), MAP_DrawMapOneBase(), and MAP_DrawMapOneInstallation().
const objDef_t* aircraftSlot_s::item |
Item that is currently in the slot. NULL if empty.
Definition at line 126 of file cp_aircraft.h.
Referenced by AII_AddAmmoToSlot(), AII_AddItemToSlot(), AII_AutoAddAmmo(), AII_CheckUpdateAircraftStats(), AII_GetAircraftSlotByIDX(), AII_InitialiseSlot(), AII_ReloadWeapon(), AII_RemoveItemFromSlot(), AII_SaveOneSlotXML(), AII_UpdateAircraftStats(), AII_UpdateOneInstallationDelay(), AIM_AircraftEquipAddItem_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipRemoveItem_f(), AIM_AircraftEquipZoneSelect_f(), AIM_AutoEquipAircraft(), AIM_CheckAirequipSelectedZone(), AIM_CheckTechnologyIntoSlot(), AIM_DrawAircraftSlots(), AIM_SelectableCraftItem(), AIM_UpdateItemDescription(), AIR_GetSlotItems(), AIR_ParseAircraft(), AIR_ScriptSanityCheck(), AIRFIGHT_AddProjectile(), AIRFIGHT_CheckWeapon(), AIRFIGHT_ProbabilityToHit(), BDEF_AddItem_f(), BDEF_AddSlotToSlotList(), BDEF_AutoTarget(), BDEF_GetBaseSlotByIDX(), BDEF_GetInstallationSlotByIDX(), BDEF_RemoveBattery(), BDEF_RemoveItem_f(), BDEF_SelectItem_f(), BS_SellAircraft_f(), MAP_DrawMapOneBase(), and MAP_DrawMapOneInstallation().
const objDef_t* aircraftSlot_s::nextAmmo |
Next ammo to install when the nextItem will be installed
Definition at line 135 of file cp_aircraft.h.
Referenced by AII_AddAmmoToSlot(), AII_AutoAddAmmo(), AII_InitialiseSlot(), AII_RemoveItemFromSlot(), AII_RemoveNextItemFromSlot(), AII_SaveOneSlotXML(), AIM_AircraftEquipMenuUpdate(), and AIM_AircraftEquipRemoveItem_f().
const objDef_t* aircraftSlot_s::nextItem |
Next item to install when the current item in slot will be removed (Should be used only if installationTime is different of 0)
Definition at line 133 of file cp_aircraft.h.
Referenced by AII_AddAmmoToSlot(), AII_AddItemToSlot(), AII_AutoAddAmmo(), AII_GetAircraftSlotByIDX(), AII_InitialiseSlot(), AII_RemoveItemFromSlot(), AII_RemoveNextItemFromSlot(), AII_SaveOneSlotXML(), AIM_AircraftEquipAddItem_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipRemoveItem_f(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), BDEF_AddItem_f(), BDEF_AddSlotToSlotList(), BDEF_GetBaseSlotByIDX(), BDEF_GetInstallationSlotByIDX(), BDEF_RemoveItem_f(), and BDEF_SelectItem_f().
Position of the slot on the aircraft
Definition at line 136 of file cp_aircraft.h.
Referenced by AIM_AircraftEquipSlotSelect_f(), AIM_DrawAircraftSlots(), AIR_ParseAircraft(), and AIR_ScriptSanityCheck().
The maximum size (weight) of item that can fit in this slot.
Definition at line 128 of file cp_aircraft.h.
Referenced by AII_AddItemToSlot(), AII_InitialiseSlot(), AIM_AircraftEquipMenuUpdate(), AIM_AutoEquipAircraft(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), AIR_ParseAircraft(), and AIR_ScriptSanityCheck().
The type of item that can fit in this slot.
Definition at line 124 of file cp_aircraft.h.
Referenced by AII_AddItemToSlot(), AII_InitialiseSlot(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), BDEF_AddItem_f(), BDEF_RemoveItem_f(), and BDEF_UpdateAircraftItemList().