UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_shared.h
Go to the documentation of this file.
1 
6 /*
7 All original material Copyright (C) 2002-2020 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 "../common/common.h"
29 
30 #ifdef NO_I18N
31 #define bindtextdomain(IGNORE1, IGNORE2)
32 #define bind_textdomain_codeset(IGNORE1, IGNORE2)
33 #define textdomain(IGNORE1)
34 #define gettext(String) gettext_noop(String)
35 #else
36 /* i18n support via gettext */
37 #include <libintl.h>
38 #endif
39 #include <locale.h>
40 
41 /* the used textdomain for gettext */
42 #define TEXT_DOMAIN "ufoai"
43 #define _(String) gettext(String)
44 #define gettext_noop(String) String
45 #define N_(String) gettext_noop (String)
46 
47 #define INVDEF(containerID) (&csi.ids[(containerID)])
48 
49 #define XVI_WIDTH 512
50 #define XVI_HEIGHT 256
51 #define RADAR_WIDTH 512
52 #define RADAR_HEIGHT 256
53 
54 typedef struct geoscapeData_s {
55  bool active;
57  bool xviOverlay;
59  const char* map;
61 
64 
67 
70 
71  void* geoscapeNode;
73 
74 typedef enum {
80 } connstate_t;
81 
82 #define MapDef_ForeachSingleplayer(var) MapDef_ForeachCondition(var, (var)->singleplayer)
83 #define MapDef_ForeachSingleplayerCampaign(var) MapDef_ForeachCondition(var, (var)->singleplayer && (var)->campaign)
84 
85 mapDef_t* Com_GetMapDefinitionByID(const char* mapDefID);
86 
memPool_t * cl_genericPool
Definition: cl_main.cpp:86
#define XVI_WIDTH
Definition: cl_shared.h:49
connstate_t
Definition: cl_shared.h:74
byte r_xviAlpha[XVI_WIDTH *XVI_HEIGHT]
Definition: cl_shared.h:63
date_t date
Definition: cl_shared.h:60
const char * map
Definition: cl_shared.h:59
bool radarOverlay
Definition: cl_shared.h:58
Engine-side time information in the game.
Definition: common.h:290
mapDef_t * Com_GetMapDefinitionByID(const char *mapDefID)
Definition: scripts.cpp:3620
void * geoscapeNode
Definition: cl_shared.h:71
#define RADAR_HEIGHT
Definition: cl_shared.h:52
#define RADAR_WIDTH
Definition: cl_shared.h:51
byte r_radarSourcePic[RADAR_WIDTH *RADAR_HEIGHT]
Definition: cl_shared.h:69
struct geoscapeData_s geoscapeData_t
#define XVI_HEIGHT
Definition: cl_shared.h:50
byte r_radarPic[RADAR_WIDTH *RADAR_HEIGHT]
Definition: cl_shared.h:66
uint8_t byte
Definition: ufotypes.h:34
bool xviOverlay
Definition: cl_shared.h:57
bool nationOverlay
Definition: cl_shared.h:56