UFO: Alien Invasion
Doxygen documentation generating
cp_alienbase.h
Go to the documentation of this file.
1 
5 /*
6 Copyright (C) 2002-2023 UFO: Alien Invasion.
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 
17 See the GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 
23 */
24 
25 #pragma once
26 
28 typedef struct alienBase_s {
29  int idx;
31  int supply;
32  float stealth;
34 } alienBase_t;
35 
36 #define AB_Foreach(var) LIST_Foreach(ccs.alienBases, alienBase_t, var)
37 alienBase_t* AB_GetByIDX(int baseIDX);
38 
39 #define AB_Exists() (!cgi->LIST_IsEmpty(ccs.alienBases))
40 
42 alienBase_t* AB_BuildBase(const vec2_t pos);
43 void AB_DestroyBase(alienBase_t* base);
45 void AB_BaseSearchedByNations(void);
48 void AB_SupplyBase(alienBase_t* base, bool decreaseStealth);
49 int AB_GetAlienBaseNumber(void);
50 void CP_SpawnAlienBaseMission(alienBase_t* alienBase);
51 
52 void AB_InitStartup(void);
53 void AB_Shutdown(void);
alienBase_t * AB_ChooseBaseToSupply(void)
Choose Alien Base that should be supplied.
void CP_SpawnAlienBaseMission(alienBase_t *alienBase)
Spawn a new alien base mission after it has been discovered.
void AB_SupplyBase(alienBase_t *base, bool decreaseStealth)
Supply a base.
bool AB_CheckSupplyMissionPossible(void)
Check if a supply mission is possible.
int AB_GetAlienBaseNumber(void)
Check number of alien bases.
float stealth
Definition: cp_alienbase.h:32
alienBase_t * AB_BuildBase(const vec2_t pos)
Build a new alien base.
void AB_InitStartup(void)
Init actions for alienbase-subsystem.
void AB_SetAlienBasePosition(vec2_t pos)
Set new base position.
vec2_t pos
Definition: cp_alienbase.h:30
alienBase_t * AB_GetByIDX(int baseIDX)
Get Alien Base per Idx.
void AB_BaseSearchedByNations(void)
Nations help in searching alien base.
vec_t vec2_t[2]
Definition: ufotypes.h:38
void AB_DestroyBase(alienBase_t *base)
Destroy an alien base.
Alien Base.
Definition: cp_alienbase.h:28
void AB_UpdateStealthForAllBase(void)
Update stealth value of every base for every aircraft.
void AB_Shutdown(void)
Closing actions for alienbase-subsystem.