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
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_LinkTechnologies(void)
installationStatus_t installationStatus
A installation with all it's data.
QGL_EXTERN GLint GLenum type
struct installationTemplate_s installationTemplate_t
installationStatus_t
Possible installation states.
installationType_t INS_GetType(const char *type)
installation_t * INS_GetByIDX(int idx)
Get installation by it's index.
void INS_SelectInstallation(installation_t *installation)
Select an installation when clicking on it on geoscape.
void INS_UpdateInstallationData(void)
Check if some installation are build.
const installationTemplate_t * INS_GetInstallationTemplateByType(installationType_t type)
Returns the installation Template for a given installation type.
void INS_SetCurrentSelectedInstallation(const installation_t *installation)
Sets the currently selected installation.
installation_t * INS_GetCurrentSelectedInstallation(void)
Returns the current selected installation.
void INS_InitStartup(void)
Resets console commands.
void INS_ParseInstallations(const char *name, const char **text)
Copies an entry from the installation description file into the list of installation templates...
int INS_GetCount(void)
Get number of installations.
This is the technology parsed from research.ufo.
struct technology_s * tech
const installationTemplate_t * installationTemplate
const installationTemplate_t * INS_GetInstallationTemplateByID(const char *id)
Returns the installation Template for a given installation ID.
bool INS_HasType(installationType_t type, installationStatus_t status=INSTALLATION_WORKING)
Checks whether the given installation type is available.
bool INS_HasAny(installationStatus_t status=INSTALLATION_WORKING)
Checks whether any installation is available.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
vec2_t newInstallationPos
installation_t * INS_Build(const installationTemplate_t *installationTemplate, const vec2_t pos, const char *name)
Build a new installation.
Store capacities in base.
struct installation_s installation_t
A installation with all it's data.
installation_t * INS_GetFirstUFOYard(bool free)
returns the first installation with (free) ufostoring capacity
void INS_Shutdown(void)
Closing operations for installations subsystem.
installation_t * installationCurrent
#define MAX_INSTALLATION_BATTERIES
baseWeapon_t batteries[MAX_INSTALLATION_BATTERIES]
void INS_DestroyInstallation(installation_t *installation)
Destroys an installation.