UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_shared.h
Go to the documentation of this file.
1
5
6
/*
7
All original material Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18
See the GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24
*/
25
26
#pragma once
27
28
#include "
DateTime.h
"
29
#include "
../common/common.h
"
30
31
#ifdef NO_I18N
32
#define bindtextdomain(IGNORE1, IGNORE2)
33
#define bind_textdomain_codeset(IGNORE1, IGNORE2)
34
#define textdomain(IGNORE1)
35
#define gettext(String) gettext_noop(String)
36
#else
37
/* i18n support via gettext */
38
#include <libintl.h>
39
#endif
40
#include <locale.h>
41
42
/* the used textdomain for gettext */
43
#define TEXT_DOMAIN "ufoai"
44
#define _(String) gettext(String)
45
#define gettext_noop(String) String
46
#define N_(String) gettext_noop (String)
47
48
#define INVDEF(containerID) (&csi.ids[(containerID)])
49
50
#define XVI_WIDTH 512
51
#define XVI_HEIGHT 256
52
#define RADAR_WIDTH 512
53
#define RADAR_HEIGHT 256
54
55
typedef
struct
geoscapeData_s {
56
bool
active
;
57
bool
nationOverlay
;
58
bool
xviOverlay
;
59
bool
radarOverlay
;
60
const
char
*
map
;
61
class
DateTime
date
;
62
64
byte
r_xviAlpha
[
XVI_WIDTH
*
XVI_HEIGHT
];
65
67
byte
r_radarPic
[
RADAR_WIDTH
*
RADAR_HEIGHT
];
68
70
byte
r_radarSourcePic
[
RADAR_WIDTH
*
RADAR_HEIGHT
];
71
72
void
*
geoscapeNode
;
73
}
geoscapeData_t
;
74
75
typedef
enum
{
76
ca_uninitialized
,
77
ca_disconnected
,
78
ca_connecting
,
79
ca_connected
,
80
ca_active
81
}
connstate_t
;
82
83
#define MapDef_ForeachSingleplayer(var) MapDef_ForeachCondition(var, (var)->singleplayer)
84
#define MapDef_ForeachSingleplayerCampaign(var) MapDef_ForeachCondition(var, (var)->singleplayer && (var)->campaign)
85
86
mapDef_t
*
Com_GetMapDefinitionByID
(
const
char
* mapDefID);
87
88
extern
memPool_t
*
cl_genericPool
;
DateTime.h
DateTime class definition.
cl_genericPool
memPool_t * cl_genericPool
Definition
cl_main.cpp:86
XVI_HEIGHT
#define XVI_HEIGHT
Definition
cl_shared.h:51
XVI_WIDTH
#define XVI_WIDTH
Definition
cl_shared.h:50
RADAR_WIDTH
#define RADAR_WIDTH
Definition
cl_shared.h:52
Com_GetMapDefinitionByID
mapDef_t * Com_GetMapDefinitionByID(const char *mapDefID)
Definition
scripts.cpp:3598
connstate_t
connstate_t
Definition
cl_shared.h:75
ca_connecting
@ ca_connecting
Definition
cl_shared.h:78
ca_connected
@ ca_connected
Definition
cl_shared.h:79
ca_uninitialized
@ ca_uninitialized
Definition
cl_shared.h:76
ca_active
@ ca_active
Definition
cl_shared.h:80
ca_disconnected
@ ca_disconnected
Definition
cl_shared.h:77
RADAR_HEIGHT
#define RADAR_HEIGHT
Definition
cl_shared.h:53
DateTime
Class describing a point of time.
Definition
DateTime.h:31
common.h
definitions common between client and server, but not game lib
geoscapeData_t
Definition
cl_shared.h:55
geoscapeData_t::xviOverlay
bool xviOverlay
Definition
cl_shared.h:58
geoscapeData_t::geoscapeNode
void * geoscapeNode
Definition
cl_shared.h:72
geoscapeData_t::active
bool active
Definition
cl_shared.h:56
geoscapeData_t::r_radarSourcePic
byte r_radarSourcePic[RADAR_WIDTH *RADAR_HEIGHT]
Definition
cl_shared.h:70
geoscapeData_t::r_radarPic
byte r_radarPic[RADAR_WIDTH *RADAR_HEIGHT]
Definition
cl_shared.h:67
geoscapeData_t::map
const char * map
Definition
cl_shared.h:60
geoscapeData_t::radarOverlay
bool radarOverlay
Definition
cl_shared.h:59
geoscapeData_t::date
class DateTime date
Definition
cl_shared.h:61
geoscapeData_t::nationOverlay
bool nationOverlay
Definition
cl_shared.h:57
geoscapeData_t::r_xviAlpha
byte r_xviAlpha[XVI_WIDTH *XVI_HEIGHT]
Definition
cl_shared.h:64
mapDef_t
Definition
q_shared.h:461
memPool_t
Definition
mem.cpp:55
src
client
cl_shared.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.16.1