1 /***************************************************************************
2  *      Mechanized Assault and Exploration Reloaded Projectfile            *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (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.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18  ***************************************************************************/
19 #ifndef definesH
20 #define definesH
21 #include "settings.h"
22 
23 #define GRID_COLOR         0xFF305C04 // color of the grid
24 #define SCAN_COLOR         0xFFE3E300 // color of scan circles
25 #define RANGE_GROUND_COLOR 0xFFE20000 // color of range circles for ground attack
26 #define RANGE_AIR_COLOR    0xFFFCA800 // color of range circles for air attack
27 #define PFEIL_COLOR        0xFF0000FF // color of a waypointarrow
28 #define PFEILS_COLOR       0xFF00FF00 // color of a special waypointarrow
29 #define MOVE_SPEED 2     // speed of vehiclemovements
30 #define MAX_PLANES_PER_FIELD 5
31 
32 // minimap configuration
33 #define MINIMAP_COLOR 0xFFFC0000 // color of the screen borders on the minimap
34 
35 #ifdef __main__
36 # define EX
37 #else
38 # define EX extern
39 #endif
40 
41 #ifdef _MSC_VER
42 # define CHECK_MEMORY //_ASSERTE (_CrtCheckMemory());
43 #else
44 # define CHECK_MEMORY
45 #endif
46 
47 // some defines for typical menus
48 
49 
50 #ifndef PATH_DELIMITER
51 # ifdef WIN32
52 #  define PATH_DELIMITER "\\"
53 # else
54 #  define PATH_DELIMITER "/"
55 # endif
56 #endif
57 
58 #ifndef TEXT_FILE_LF
59 # ifdef WIN32
60 #  define TEXT_FILE_LF "\r\n"
61 # else
62 #  define TEXT_FILE_LF "\n"
63 # endif
64 #endif
65 
66 // GFX On Demand /////////////////////////////////////////////////////////////
67 #define GFXOD(filename)        (cSettings::getInstance().getGfxPath() + PATH_DELIMITER filename)
68 #define GFXOD_MAIN             GFXOD ("main.pcx")
69 #define GFXOD_HELP             GFXOD ("help_screen.pcx")
70 #define GFXOD_OPTIONS          GFXOD ("options.pcx")
71 #define GFXOD_SAVELOAD         GFXOD ("load_save_menu.pcx")
72 #define GFXOD_PLANET_SELECT    GFXOD ("planet_select.pcx")
73 #define GFXOD_CLAN_SELECT      GFXOD ("clanselection.pcx")
74 #define GFXOD_PLAYERHS_SELECT  GFXOD ("hotseatplayers.pcx")
75 #define GFXOD_HANGAR           GFXOD ("hangar.pcx")
76 #define GFXOD_BUILD_SCREEN     GFXOD ("build_screen.pcx")
77 #define GFXOD_FAC_BUILD_SCREEN GFXOD ("fac_build_screen.pcx")
78 #define GFXOD_PLAYER_SELECT    GFXOD ("customgame_menu.pcx") // hotseat 4 players
79 #define GFXOD_HOTSEAT          GFXOD ("hotseatplayers.pcx")  // hotseat 8 players
80 #define GFXOD_PLAYER_HUMAN     GFXOD ("player_human.pcx")
81 #define GFXOD_PLAYER_NONE      GFXOD ("player_none.pcx")
82 #define GFXOD_PLAYER_PC        GFXOD ("player_pc.pcx")
83 #define GFXOD_MULT             GFXOD ("multi.pcx")
84 #define GFXOD_UPGRADE          GFXOD ("upgrade.pcx")
85 #define GFXOD_STORAGE          GFXOD ("storage.pcx")
86 #define GFXOD_STORAGE_GROUND   GFXOD ("storage_ground.pcx")
87 #define GFXOD_MULT             GFXOD ("multi.pcx")
88 #define GFXOD_MINEMANAGER      GFXOD ("mine_manager.pcx")
89 #define GFXOD_REPORTS          GFXOD ("reports.pcx")
90 #define GFXOD_DIALOG2          GFXOD ("dialog2.pcx")
91 #define GFXOD_DIALOG4          GFXOD ("dialog4.pcx")
92 #define GFXOD_DIALOG5          GFXOD ("dialog5.pcx")
93 #define GFXOD_DIALOG6          GFXOD ("dialog6.pcx")
94 #define GFXOD_DIALOG_TRANSFER  GFXOD ("transfer.pcx")
95 #define GFXOD_DIALOG_RESEARCH  GFXOD ("research.pcx")
96 #define GFXOD_DESTRUCTION      GFXOD ("destruction.pcx")
97 
98 // Other Resources /////////////////////////////////////////////////////////////
99 
100 #define DEFAULTPORT 58600
101 #define MAX_XML "maxr.xml"
102 #define MAX_LOG "maxr.log"
103 #define MAX_NET_LOG "net.log"
104 #define MAX_LOG_DIR "log_files"
105 #define CLANS_XML (cSettings::getInstance().getDataDir() + "clans.xml").c_str()
106 #define KEYS_XMLGame (cSettings::getInstance().getDataDir() + "keys.xml").c_str()
107 #define KEYS_XMLUsers (cSettings::getInstance().getHomeDir() + "keys.xml").c_str()
108 #define SPLASH_BACKGROUND (cSettings::getInstance().getDataDir() + "init.pcx")
109 
110 #define MAXR_ICON (cSettings::getInstance().getDataDir() + "maxr.bmp").c_str()
111 
112 
113 
114 //#define DEDICATED_SERVER_APPLICATION 1
115 #if DEDICATED_SERVER_APPLICATION
116 # define DEDICATED_SERVER true
117 #else
118 # define DEDICATED_SERVER false
119 #endif
120 
121 #endif
122