UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_shared.h
Go to the documentation of this file.
1
5
6/*
7All original material Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, 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
55typedef struct geoscapeData_s {
56 bool active;
60 const char* map;
62
65
68
71
74
82
83#define MapDef_ForeachSingleplayer(var) MapDef_ForeachCondition(var, (var)->singleplayer)
84#define MapDef_ForeachSingleplayerCampaign(var) MapDef_ForeachCondition(var, (var)->singleplayer && (var)->campaign)
85
86mapDef_t* Com_GetMapDefinitionByID(const char* mapDefID);
87
DateTime class definition.
memPool_t * cl_genericPool
Definition cl_main.cpp:86
#define XVI_HEIGHT
Definition cl_shared.h:51
#define XVI_WIDTH
Definition cl_shared.h:50
#define RADAR_WIDTH
Definition cl_shared.h:52
mapDef_t * Com_GetMapDefinitionByID(const char *mapDefID)
Definition scripts.cpp:3598
connstate_t
Definition cl_shared.h:75
@ ca_connecting
Definition cl_shared.h:78
@ ca_connected
Definition cl_shared.h:79
@ ca_uninitialized
Definition cl_shared.h:76
@ ca_active
Definition cl_shared.h:80
@ ca_disconnected
Definition cl_shared.h:77
#define RADAR_HEIGHT
Definition cl_shared.h:53
Class describing a point of time.
Definition DateTime.h:31
definitions common between client and server, but not game lib
void * geoscapeNode
Definition cl_shared.h:72
byte r_radarSourcePic[RADAR_WIDTH *RADAR_HEIGHT]
Definition cl_shared.h:70
byte r_radarPic[RADAR_WIDTH *RADAR_HEIGHT]
Definition cl_shared.h:67
const char * map
Definition cl_shared.h:60
bool radarOverlay
Definition cl_shared.h:59
class DateTime date
Definition cl_shared.h:61
bool nationOverlay
Definition cl_shared.h:57
byte r_xviAlpha[XVI_WIDTH *XVI_HEIGHT]
Definition cl_shared.h:64