UFO: Alien Invasion
Toggle main menu visibility
Loading...
Searching...
No Matches
cp_alienbase.h
Go to the documentation of this file.
1
4
5
/*
6
Copyright (C) 2002-2025 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
;
30
vec2_t
pos
;
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
41
void
AB_SetAlienBasePosition
(
vec2_t
pos);
42
alienBase_t
*
AB_BuildBase
(
const
vec2_t
pos);
43
void
AB_DestroyBase
(
alienBase_t
* base);
44
void
AB_UpdateStealthForAllBase
(
void
);
45
void
AB_BaseSearchedByNations
(
void
);
46
bool
AB_CheckSupplyMissionPossible
(
void
);
47
alienBase_t
*
AB_ChooseBaseToSupply
(
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
);
AB_CheckSupplyMissionPossible
bool AB_CheckSupplyMissionPossible(void)
Check if a supply mission is possible.
Definition
cp_alienbase.cpp:274
AB_SupplyBase
void AB_SupplyBase(alienBase_t *base, bool decreaseStealth)
Supply a base.
Definition
cp_alienbase.cpp:308
AB_GetAlienBaseNumber
int AB_GetAlienBaseNumber(void)
Check number of alien bases.
Definition
cp_alienbase.cpp:323
AB_SetAlienBasePosition
void AB_SetAlienBasePosition(vec2_t pos)
Set new base position.
Definition
cp_alienbase.cpp:41
CP_SpawnAlienBaseMission
void CP_SpawnAlienBaseMission(alienBase_t *alienBase)
Spawn a new alien base mission after it has been discovered.
Definition
cp_alienbase.cpp:135
AB_InitStartup
void AB_InitStartup(void)
Init actions for alienbase-subsystem.
Definition
cp_alienbase.cpp:423
AB_DestroyBase
void AB_DestroyBase(alienBase_t *base)
Destroy an alien base.
Definition
cp_alienbase.cpp:107
AB_Shutdown
void AB_Shutdown(void)
Closing actions for alienbase-subsystem.
Definition
cp_alienbase.cpp:431
AB_UpdateStealthForAllBase
void AB_UpdateStealthForAllBase(void)
Update stealth value of every base for every aircraft.
Definition
cp_alienbase.cpp:218
AB_ChooseBaseToSupply
alienBase_t * AB_ChooseBaseToSupply(void)
Choose Alien Base that should be supplied.
Definition
cp_alienbase.cpp:283
AB_BuildBase
alienBase_t * AB_BuildBase(const vec2_t pos)
Build a new alien base.
Definition
cp_alienbase.cpp:90
AB_BaseSearchedByNations
void AB_BaseSearchedByNations(void)
Nations help in searching alien base.
Definition
cp_alienbase.cpp:238
AB_GetByIDX
alienBase_t * AB_GetByIDX(int baseIDX)
Get Alien Base per Idx.
Definition
cp_alienbase.cpp:123
alienBase_t
Alien Base.
Definition
cp_alienbase.h:28
alienBase_t::idx
int idx
Definition
cp_alienbase.h:29
alienBase_t::stealth
float stealth
Definition
cp_alienbase.h:32
alienBase_t::pos
vec2_t pos
Definition
cp_alienbase.h:30
alienBase_t::supply
int supply
Definition
cp_alienbase.h:31
vec2_t
vec_t vec2_t[2]
Definition
ufotypes.h:38
src
client
cgame
campaign
cp_alienbase.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.17.0