2
« on: June 06, 2008, 09:26:24 am »
Hi All
I'm thinking of developing this todo item, seems like it would be interesting. So i was thinking about what would be involved and as a start came up with this basic (very rough) struct of offsite installations in general.
Just wanted to see what peoples thoughts were.
This will hold the data for any type of installation. The presumed planned ones that i have included are Sam sites, ufo yard and radar facility.
/** @brief A installation with all it's data */
typedef struct installation_s {
int idx; /**< Self link. Index in the global installation-list. */
char name[MAX_VAR]; /**< Name of the installation */
installationType_t installationType; /** type of installation. Radar, Sam Site or UFO Yard **/
qboolean founded; /**< already founded? */
vec3_t pos; /**< pos on geoscape */
/** All ufo aircraft in this installation. This used for UFO Yards. **/
aircraft_t aircraft[MAX_AIRCRAFT];
int numAircraftInBase; /**< How many aircraft are in this installation. */
capacities_t aircraftCapacitiy; /**< Capacity of UFO Yard. */
installationStatus_t installationStatus; /**< the current installation status */
float alienInterest; /**< How much aliens know this installation (and may attack it) */
radar_t radar;
baseWeapon_t batteries[MAX_INSTALLATION_BATTERIES]; /**< Missile/Laser batteries assigned to this installation. For Sam Sites Only. */
int numBatteries;
int installationDamage; /**< Hit points of base */
} installation_t;
Steve