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