27 #include "../../DateTime.h" 30 #define RECOVERY_DELAY 2.0f 45 typedef struct storedUFO_s {
65 #define US_Foreach(var) LIST_Foreach(ccs.storedUFOs, storedUFO_t, var) 79 #define US_UFOStored() (US_GetNext(nullptr) != nullptr)
void UR_Shutdown(void)
Closing 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)
void UR_InitStartup(void)
Init actions for ufostoring-subsystem.
A base with all it's data.
Holds all information for the production of one item-type.
void UR_ProcessActive(void)
Function to process active recoveries.
Class describing a point of time.
Structure for stored UFOs.
A installation with all it's data.
int US_StoredUFOCount(void)
Returns the number of storedUFOs.
bool US_TransferUFO(storedUFO_t *ufo, installation_t *ufoyard)
Start transferring of a stored UFO.
storedUFO_t * US_GetStoredUFOByIDX(const int idx)
Returns a stored ufo.
void US_RemoveStoredUFO(storedUFO_t *ufo)
Removes an UFO from the storage.
production_t * disassembly
const aircraft_t * ufoTemplate
An aircraft with all it's data.
storedUFOStatus_t
different statuses for a stored UFO
installation_t * installation
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.
storedUFO_t * US_GetClosestStoredUFO(const aircraft_t *ufoTemplate, const base_t *base)
get the closest stored ufo (of a type) from a base
struct components_s * comp