UFO: Alien Invasion
Doxygen documentation generating
cl_shared.h
Go to the documentation of this file.
1 
6 /*
7 All original material Copyright (C) 2002-2023 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;
58  bool xviOverlay;
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;
74 
75 typedef enum {
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 
Class describing a point of time.
Definition: DateTime.h:30
DateTime class definition.
memPool_t * cl_genericPool
Definition: cl_main.cpp:86
bool xviOverlay
Definition: cl_shared.h:58
void * geoscapeNode
Definition: cl_shared.h:72
#define XVI_WIDTH
Definition: cl_shared.h:50
bool radarOverlay
Definition: cl_shared.h:59
connstate_t
Definition: cl_shared.h:75
mapDef_t * Com_GetMapDefinitionByID(const char *mapDefID)
Definition: scripts.cpp:3598
#define RADAR_HEIGHT
Definition: cl_shared.h:53
#define RADAR_WIDTH
Definition: cl_shared.h:52
bool nationOverlay
Definition: cl_shared.h:57
#define XVI_HEIGHT
Definition: cl_shared.h:51
uint8_t byte
Definition: ufotypes.h:34
const char * map
Definition: cl_shared.h:60