Subversion Repositories eduke32

Rev

Rev 1632 | Rev 2728 | 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
 
1632 terminx 120
#define DEFAULTMOUSESENSITIVITY 7
5 Plagman 121
 
122
enum
123
   {
124
   gametype_network=3,
125
   gametype_serial=1,
126
   gametype_modem=2
127
   };
128
 
129
enum
130
   {
131
   connecttype_dialing=0,
132
   connecttype_answer=1,
133
   connecttype_alreadyconnected=2
134
   };
135
 
136
enum
137
   {
138
   screenbuffer_320x200,
139
   screenbuffer_640x400,
140
   screenbuffer_640x480,
141
   screenbuffer_800x600,
142
   screenbuffer_1024x768,
143
   screenbuffer_1280x1024,
144
   screenbuffer_1600x1200
145
   };
146
 
147
enum
148
   {
149
   vesa_320x200,
150
   vesa_360x200,
151
   vesa_320x240,
152
   vesa_360x240,
153
   vesa_320x400,
154
   vesa_360x400,
155
   vesa_640x350,
156
   vesa_640x400,
157
   vesa_640x480,
158
   vesa_800x600,
159
   vesa_1024x768,
160
   vesa_1280x1024,
161
   vesa_1600x1200
162
   };
163
 
164
enum
165
   {
166
   screenmode_chained,
167
   screenmode_vesa,
168
   screenmode_buffered,
169
   screenmode_tseng,
170
   screenmode_paradise,
171
   screenmode_s3,
172
   screenmode_crystal,
173
   screenmode_redblue,
174
   };
175
 
176
 
177
#ifdef __cplusplus
178
};
179
#endif
180
#endif
181