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 52 typedef struct installationTemplate_s {
73 typedef 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_LinkTechnologies(void)
Store capacities in base.
QGL_EXTERN GLint GLenum type
installationStatus_t
Possible installation states.
installationStatus_t installationStatus
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.
A installation with all it's data.
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.
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.
installation_t * INS_GetFirstUFOYard(bool free)
returns the first installation with (free) ufostoring capacity
struct technology_s * tech
void INS_Shutdown(void)
Closing operations for installations subsystem.
const installationTemplate_t * installationTemplate
installation_t * installationCurrent
#define MAX_INSTALLATION_BATTERIES
void INS_DestroyInstallation(installation_t *installation)
Destroys an installation.