30#define RECOVERY_DELAY 2.0f
45typedef struct storedUFO_s {
65#define US_Foreach(var) LIST_Foreach(ccs.storedUFOs, storedUFO_t, var)
79#define US_UFOStored() (US_GetNext(nullptr) != nullptr)
DateTime class definition.
Class describing a point of time.
int US_StoredUFOCount(void)
Returns the number of storedUFOs.
storedUFO_t * US_GetStoredUFOByIDX(const int idx)
Returns a stored ufo.
void UR_Shutdown(void)
Closing actions for ufostoring-subsystem.
storedUFOStatus_t
different statuses for a stored UFO
storedUFO_t * US_GetClosestStoredUFO(const aircraft_t *ufoTemplate, const base_t *base)
get the closest stored ufo (of a type) from a base
void US_RemoveStoredUFO(storedUFO_t *ufo)
Removes an UFO from the storage.
storedUFO_t * US_StoreUFO(const aircraft_t *ufoTemplate, installation_t *installation, DateTime &date, float condition)
Adds an UFO to the storage.
void US_RemoveUFOsExceedingCapacity(installation_t *installation)
Removes ufos which are over the storing capacity.
void UR_InitStartup(void)
Init actions for ufostoring-subsystem.
int US_UFOsInStorage(const aircraft_t *ufoTemplate, const installation_t *installation)
Returns the number of UFOs stored (on an installation or anywhere).
bool US_TransferUFO(storedUFO_t *ufo, installation_t *ufoyard)
Start transferring of a stored UFO.
void UR_ProcessActive(void)
Function to process active recoveries.
An aircraft with all it's data.
A base with all it's data.
A installation with all it's data.
Holds all information for the production of one item-type.
Structure for stored UFOs.
production_t * disassembly
struct components_s * comp
const aircraft_t * ufoTemplate
installation_t * installation