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