|
UFO: Alien Invasion
|
Header file for Transfer stuff. More...
#include "../../DateTime.h"

Go to the source code of this file.
Data Structures | |
| struct | transfer_t |
| Transfer information (they are being stored in ccs.transfers). More... | |
Macros | |
| #define | DEFAULT_TRANSFER_TIME 2.0f |
| Default transfer time for cases with no source/dest base. More... | |
| #define | TR_Foreach(var) LIST_Foreach(ccs.transfers, transfer_t, var) |
| #define | TR_ForeachEmployee(var, transfer, employeeType) LIST_Foreach(transfer->employees[employeeType], Employee, var) |
| #define | TR_ForeachAircraft(var, transfer) LIST_Foreach(transfer->aircraft, aircraft_t, var) |
Functions | |
| void | TR_TransferRun (void) |
| Checks whether given transfer should be processed. More... | |
| void | TR_NotifyAircraftRemoved (const aircraft_t *aircraft) |
| Notify that an aircraft has been removed. More... | |
| transfer_t * | TR_TransferStart (base_t *srcBase, transfer_t &transData) |
| Starts a transfer. More... | |
| void | TR_InitStartup (void) |
| Defines commands and cvars for the Transfer menu(s). More... | |
| void | TR_Shutdown (void) |
| Closing actions for transfer-subsystem. More... | |
Header file for Transfer stuff.
Definition in file cp_transfer.h.
| #define DEFAULT_TRANSFER_TIME 2.0f |
Default transfer time for cases with no source/dest base.
Definition at line 30 of file cp_transfer.h.
| #define TR_Foreach | ( | var | ) | LIST_Foreach(ccs.transfers, transfer_t, var) |
Definition at line 48 of file cp_transfer.h.
| #define TR_ForeachAircraft | ( | var, | |
| transfer | |||
| ) | LIST_Foreach(transfer->aircraft, aircraft_t, var) |
Definition at line 50 of file cp_transfer.h.
| #define TR_ForeachEmployee | ( | var, | |
| transfer, | |||
| employeeType | |||
| ) | LIST_Foreach(transfer->employees[employeeType], Employee, var) |
Definition at line 49 of file cp_transfer.h.
Defines commands and cvars for the Transfer menu(s).
Definition at line 569 of file cp_transfer.cpp.
References cgi, and TR_InitCallbacks().
Referenced by CP_InitStartup().
| void TR_NotifyAircraftRemoved | ( | const aircraft_t * | aircraft | ) |
Notify that an aircraft has been removed.
| [in] | aircraft | Aircraft that was removed from the game |
Definition at line 285 of file cp_transfer.cpp.
References cgi, and TR_Foreach.
Referenced by AIR_DeleteAircraft().
Closing actions for transfer-subsystem.
Definition at line 580 of file cp_transfer.cpp.
References ccs, cgi, EMPL_SOLDIER, i, MAX_EMPL, TR_Foreach, TR_ShutdownCallbacks(), and ccs_t::transfers.
Referenced by CP_Shutdown().
Checks whether given transfer should be processed.
Definition at line 300 of file cp_transfer.cpp.
References ccs, ccs_t::date, TR_Foreach, and TR_TransferEnd().
Referenced by CP_CampaignRun(), and TEST_F().
| transfer_t * TR_TransferStart | ( | base_t * | srcBase, |
| transfer_t & | transData | ||
| ) |
Starts a transfer.
| [in] | srcBase | start transfer from this base |
| [in] | transData | Container holds transfer details |
Definition at line 159 of file cp_transfer.cpp.
References AlienContainment::add(), AIR_AircraftGetFromIDX(), AIR_GetFirstFromBase(), AIR_GetHangarCapacityType(), AIR_IsEmployeeInAircraft(), AIR_RemoveEmployee(), AIR_TRANSFER, transfer_t::aircraft, base_t::aircraftCurrent, transfer_t::alienCargo, base_t::alienContainment, transfer_t::antimatter, B_AddAntimatter(), B_AddToStorage(), B_ItemIsStoredInBaseStorage(), CAP_AddCurrent(), ccs, cgi, count, ccs_t::date, DEFAULT_TRANSFER_TIME, transfer_t::destBase, E_MoveIntoNewBase(), transfer_t::employees, transfer_t::event, DateTime::getDateAsDays(), GetDistanceOnGlobe(), DateTime::getTimeAsSeconds(), transfer_t::hasEmployees, i, aircraft_t::idx, transfer_t::itemCargo, AlienCargo::list(), ItemCargo::list(), LIST_Add(), LIST_Foreach, cgame_import_t::LIST_GetPointer(), MAX_EMPL, OBJZERO, base_t::pos, PR_ProductionAllowed(), RS_ResearchAllowed(), DateTime::SECONDS_PER_DAY, transfer_t::srcBase, and ccs_t::transfers.
Referenced by TEST_F(), and TR_TransferStart_f().