]> git.mxchange.org Git - quix0rs-blobwars.git/blob - src/headers.h
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / headers.h
1 /*
2 Copyright (C) 2004-2011 Parallel Realities
3 Copyright (C) 2011-2015 Perpendicular Dimensions
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 See the GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 */
21
22 #include <errno.h>
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <math.h>
27
28 #include <zlib.h>
29
30 #ifdef FRAMEWORK_SDL
31 #include <SDL/SDL.h>
32 #include <SDL_image/SDL_image.h>
33 #include <SDL_mixer/SDL_mixer.h>
34 #include <SDL_ttf/SDL_ttf.h>
35 #include <SDL_net/SDL_net.h>
36 #include <CoreFoundation/CoreFoundation.h>
37 extern C_LINKAGE void openHelpURL();
38 #ifndef SDL_GetGamma
39 extern DECLSPEC int SDLCALL SDL_GetGamma(float *red, float *green, float *blue);
40 #endif
41 #else
42 #include "SDL2/SDL.h"
43 #include "SDL2/SDL_image.h"
44 #include "SDL2/SDL_mixer.h"
45 #include "SDL2/SDL_ttf.h"
46 #include "SDL2/SDL_net.h"
47 #endif
48
49 #if !defined(_WIN32) && !defined(__APPLE__)
50 #include <libintl.h>
51 #define _(string) gettext(string)
52 #else
53 #define _(x) (x)
54 #define gettext(x) (x)
55 #define bindtextdomain(x, y) while(false)
56 #define textdomain(x) while(false)
57 #endif
58
59 #if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__)
60 static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); }
61 static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; }
62 #endif
63
64 #include "defs.h"
65
66 #include "CMath.h"
67
68 #include "CGameObject.h"
69 #include "CList.h"
70
71 #include "CSprite.h"
72 #include "CData.h"
73 #include "CParticle.h"
74 #include "CWeapon.h"
75 #include "CEntity.h"
76 #include "CBoss.h"
77 #include "CTrain.h"
78 #include "CSpawnPoint.h"
79 #include "CSwitch.h"
80 #include "CEffect.h"
81 #include "CObjective.h"
82 #include "CTeleporter.h"
83 #include "CLineDef.h"
84 #include "CTrap.h"
85
86 #include "CPersistData.h"
87 #include "CPersistant.h"
88
89 #include "CMap.h"
90
91 #include "CCollision.h"
92
93 #include "CWidget.h"
94
95 #include "CFileData.h"
96 #include "CPak.h"
97
98 #include "CJoystick.h"
99 #include "CKeyboard.h"
100
101 #include "CEngine.h"
102 #include "CGraphics.h"
103 #include "CAudio.h"
104
105 #include "CGame.h"
106 #include "CGameData.h"
107
108 #include "CHub.h"
109 #include "CRadarBlip.h"
110
111 #include "CCutscene.h"
112
113 #include "CReplayDataHeader.h"
114 #include "CReplayData.h"
115 #include "CConfig.h"
116 #include "CMedalServer.h"