00001 00005 /* 00006 Copyright (C) 2002-2010 UFO: Alien Invasion. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 See the GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 */ 00024 00025 #ifndef CLIENT_CL_ALIENBASE_H 00026 #define CLIENT_CL_ALIENBASE_H 00027 00029 typedef struct alienBase_s { 00030 int idx; 00031 vec2_t pos; 00032 int supply; 00033 float stealth; 00035 } alienBase_t; 00036 00037 alienBase_t* AB_GetNext(alienBase_t *lastBase); 00038 alienBase_t* AB_GetByIDX(int baseIDX); 00039 00040 #define AB_Exists() (AB_GetNext(NULL) != NULL) 00041 00042 void AB_SetAlienBasePosition(vec2_t pos); 00043 alienBase_t* AB_BuildBase(const vec2_t pos); 00044 void AB_DestroyBase(alienBase_t *base); 00045 void AB_UpdateStealthForAllBase(void); 00046 void AB_BaseSearchedByNations(void); 00047 qboolean AB_CheckSupplyMissionPossible(void); 00048 alienBase_t* AB_ChooseBaseToSupply(void); 00049 void AB_SupplyBase(alienBase_t *base, qboolean decreaseStealth); 00050 int AB_GetAlienBaseNumber(void); 00051 void CP_SpawnAlienBaseMission(alienBase_t *alienBase); 00052 00053 void AB_InitStartup(void); 00054 00055 #endif /* CLIENT_CL_ALIENBASE_H */