Subversion Repositories eduke32

Rev

Rev 1652 | Rev 3116 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 Plagman 1
//-------------------------------------------------------------------------
2
/*
1652 terminx 3
Copyright (C) 2010 EDuke32 developers and contributors
5 Plagman 4
 
1652 terminx 5
This file is part of EDuke32.
5 Plagman 6
 
484 terminx 7
EDuke32 is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License version 2
9
as published by the Free Software Foundation.
5 Plagman 10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
15
See the GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20
*/
21
//-------------------------------------------------------------------------
22
 
23
//****************************************************************************
24
//
25
// gamedefs.h
26
//
27
// common defines between the game and the setup program
28
//
29
//****************************************************************************
30
 
31
#ifndef _gamedefs_public_
32
#define _gamedefs_public_
33
#ifdef __cplusplus
34
extern "C" {
35
#endif
36
 
37
//****************************************************************************
38
//
39
// DEFINES
40
//
41
//****************************************************************************
42
 
43
//
44
// Setup program defines
45
//
1178 terminx 46
#define SETUPFILENAME "eduke32.cfg"
5 Plagman 47
 
48
 
49
// Max number of players
50
 
51
#define MAXPLAYERS 16
52
 
53
// Number of Mouse buttons
54
 
1089 terminx 55
#define MAXMOUSEBUTTONS 10
5 Plagman 56
 
57
// Number of JOY buttons
58
 
59
#define MAXJOYBUTTONS (32+4)
60
 
61
// Number of EXTERNAL buttons
62
 
63
//#define MAXEXTERNALBUTTONS 6
64
 
65
//
66
// modem string defines
67
//
68
 
69
#define MAXMODEMSTRING 50
70
 
71
// MACRO defines
72
 
73
#define MAXMACROS      10
74
#define MAXMACROLENGTH 34
75
 
76
// Phone list defines
77
 
78
#define PHONENUMBERLENGTH 28
79
#define PHONENAMELENGTH   16
80
#define MAXPHONEENTRIES   10
81
 
82
// length of program functions
83
 
84
#define MAXFUNCTIONLENGTH 30
85
 
86
// length of axis functions
87
 
88
#define MAXAXISFUNCTIONLENGTH 30
89
 
90
// Max Player Name length
91
 
92
#define MAXPLAYERNAMELENGTH 11
93
 
94
// Max RTS Name length
95
 
96
#define MAXRTSNAMELENGTH 15
97
 
98
// Number of Mouse Axes
99
 
100
#define MAXMOUSEAXES 2
101
 
102
// Number of JOY axes
103
 
104
#define MAXJOYAXES 8
105
 
106
// MIN/MAX scale value for controller scales
107
 
108
#define MAXCONTROLSCALEVALUE (1<<19)
109
 
110
// DEFAULT scale value for controller scales
111
 
112
#define DEFAULTCONTROLSCALEVALUE (1<<16)
113
 
114
// base value for controller scales
115
 
116
#define BASECONTROLSCALEVALUE (1<<16)
117
 
118
// DEFAULT mouse sensitivity scale
119
 
2728 hendricks2 120
#define DEFAULTMOUSESENSITIVITY             7
121
#define DEFAULTMOUSEANALOGUESCALE           65536
5 Plagman 122
 
2728 hendricks2 123
// DEFAULT joystick settings
124
 
125
#if defined(GEKKO)
126
#define DEFAULTJOYSTICKANALOGUESCALE        16384
127
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
128
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
129
#else
130
#define DEFAULTJOYSTICKANALOGUESCALE        65536
131
#define DEFAULTJOYSTICKANALOGUEDEAD         1000
132
#define DEFAULTJOYSTICKANALOGUESATURATE     9500
133
#endif
134
 
5 Plagman 135
enum
136
   {
137
   gametype_network=3,
138
   gametype_serial=1,
139
   gametype_modem=2
140
   };
141
 
142
enum
143
   {
144
   connecttype_dialing=0,
145
   connecttype_answer=1,
146
   connecttype_alreadyconnected=2
147
   };
148
 
149
enum
150
   {
151
   screenbuffer_320x200,
152
   screenbuffer_640x400,
153
   screenbuffer_640x480,
154
   screenbuffer_800x600,
155
   screenbuffer_1024x768,
156
   screenbuffer_1280x1024,
157
   screenbuffer_1600x1200
158
   };
159
 
160
enum
161
   {
162
   vesa_320x200,
163
   vesa_360x200,
164
   vesa_320x240,
165
   vesa_360x240,
166
   vesa_320x400,
167
   vesa_360x400,
168
   vesa_640x350,
169
   vesa_640x400,
170
   vesa_640x480,
171
   vesa_800x600,
172
   vesa_1024x768,
173
   vesa_1280x1024,
174
   vesa_1600x1200
175
   };
176
 
177
enum
178
   {
179
   screenmode_chained,
180
   screenmode_vesa,
181
   screenmode_buffered,
182
   screenmode_tseng,
183
   screenmode_paradise,
184
   screenmode_s3,
185
   screenmode_crystal,
186
   screenmode_redblue,
187
   };
188
 
189
 
190
#ifdef __cplusplus
191
};
192
#endif
193
#endif
194