27#define MAX_INSTALLATIONS_PER_BASE 3
28#define MAX_INSTALLATION_TEMPLATES 6
30#define MAX_INSTALLATION_DAMAGE 100
31#define MAX_INSTALLATION_BATTERIES 5
52typedef struct installationTemplate_s {
73typedef struct installation_s {
104#define INS_Foreach(var) LIST_Foreach(ccs.installations, installation_t, var)
105#define INS_ForeachOfType(var, installationType) \
107 if ((var)->installationTemplate->type != (installationType)) continue; else
109#define INS_GetInstallationIDX(installation) ((installation)->idx)
void INS_DestroyInstallation(installation_t *installation)
Destroys an installation.
installation_t * INS_Build(const installationTemplate_t *installationTemplate, const vec2_t pos, const char *name)
Build a new installation.
void INS_LinkTechnologies(void)
const installationTemplate_t * INS_GetInstallationTemplateByType(installationType_t type)
Returns the installation Template for a given installation type.
const installationTemplate_t * INS_GetInstallationTemplateByID(const char *id)
Returns the installation Template for a given installation ID.
void INS_ParseInstallations(const char *name, const char **text)
Copies an entry from the installation description file into the list of installation templates.
installation_t * INS_GetCurrentSelectedInstallation(void)
Returns the current selected installation.
void INS_SetCurrentSelectedInstallation(const installation_t *installation)
Sets the currently selected installation.
installation_t * INS_GetFirstUFOYard(bool free)
returns the first installation with (free) ufostoring capacity
void INS_UpdateInstallationData(void)
Check if some installation are build.
int INS_GetCount(void)
Get number of installations.
installation_t * INS_GetByIDX(int idx)
Get installation by it's index.
void INS_InitStartup(void)
Resets console commands.
vec2_t newInstallationPos
void INS_SelectInstallation(installation_t *installation)
Select an installation when clicking on it on geoscape.
installation_t * installationCurrent
#define MAX_INSTALLATION_BATTERIES
bool INS_HasAny(installationStatus_t status=INSTALLATION_WORKING)
Checks whether any installation is available.
void INS_Shutdown(void)
Closing operations for installations subsystem.
installationType_t INS_GetType(const char *type)
installationStatus_t
Possible installation states.
@ INSTALLATION_UNDER_CONSTRUCTION
bool INS_HasType(installationType_t type, installationStatus_t status=INSTALLATION_WORKING)
Checks whether the given installation type is available.
QGL_EXTERN GLint GLenum type
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Store capacities in base.
A installation with all it's data.
const installationTemplate_t * installationTemplate
baseWeapon_t batteries[MAX_INSTALLATION_BATTERIES]
installationStatus_t installationStatus
struct technology_s * tech