~ubuntu-branches/ubuntu/karmic/rott/karmic-proposed

« back to all changes in this revision

Viewing changes to rott/rt_cfg.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabian Greffrath
  • Date: 2008-01-27 20:00:00 UTC
  • mfrom: (1.1.1 upstream) (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080127200000-myle9y0099o45sfv
Tags: 1.0+dfsg-2
* debian/patches/01-custom-datapath.dpatch,
  debian/patches/13-improve-makefile.dpatch:
  + Changed DATADIR back to "/usr/share/games/rott/".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
Copyright (C) 1994-1995 Apogee Software, Ltd.
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
 
#ifndef _rt_cfg_public
21
 
#define _rt_cfg_public
22
 
 
23
 
//****************************************************************************
24
 
//
25
 
// Public header for RT_CFG.C
26
 
//
27
 
//****************************************************************************
28
 
 
29
 
 
30
 
//****************************************************************************
31
 
//
32
 
// GLOBALS
33
 
//
34
 
//****************************************************************************
35
 
 
36
 
extern int     FXMode;
37
 
extern int     MusicMode;
38
 
extern int     MUvolume;
39
 
extern int     FXvolume;
40
 
extern boolean mouseenabled;
41
 
extern boolean joystickenabled;
42
 
extern boolean joypadenabled;
43
 
extern int     joystickport;
44
 
extern int     mouseadjustment;
45
 
extern int     threshold;
46
 
extern int     NumVoices;
47
 
extern int     NumChannels;
48
 
extern int     NumBits;
49
 
extern int     MidiAddress;
50
 
extern boolean stereoreversed;
51
 
extern boolean cybermanenabled;
52
 
extern boolean assassinenabled;
53
 
extern boolean spaceballenabled;
54
 
extern boolean AutoDetailOn;
55
 
extern int     DoubleClickSpeed;
56
 
extern int     fulllight;
57
 
extern boolean BobbinOn;
58
 
extern int     Menuflipspeed;
59
 
extern int     DetailLevel;
60
 
extern int     fandc;
61
 
extern int     blanktime;
62
 
extern char    CodeName[9];
63
 
#ifdef DOS
64
 
extern char   *ApogeePath;
65
 
#else
66
 
extern char   ApogeePath[256];
67
 
#endif
68
 
 
69
 
extern int     DefaultDifficulty;
70
 
extern int     DefaultPlayerCharacter;
71
 
extern int     DefaultPlayerColor;
72
 
extern byte    passwordstring[20];
73
 
 
74
 
typedef struct
75
 
{
76
 
   char path[41];
77
 
   boolean avail;
78
 
   char file[14];
79
 
} AlternateInformation;
80
 
 
81
 
extern AlternateInformation RemoteSounds;
82
 
extern AlternateInformation PlayerGraphics;
83
 
extern AlternateInformation GameLevels;
84
 
extern AlternateInformation BattleLevels;
85
 
 
86
 
#define MAXMACROLENGTH 32
87
 
#define MAXMACROS      10
88
 
 
89
 
typedef struct {
90
 
   byte avail;
91
 
   char macro[MAXMACROLENGTH+1];
92
 
} MacroList;
93
 
 
94
 
extern MacroList CommbatMacros[MAXMACROS];
95
 
 
96
 
//****************************************************************************
97
 
//
98
 
// PROTOTYPES
99
 
//
100
 
//****************************************************************************
101
 
 
102
 
void WriteBattleConfig(void);
103
 
void ReadScores (void);
104
 
void ReadInt (const char * s1, int * val);
105
 
void ReadBoolean (const char * s1, boolean * val);
106
 
void ReadConfig (void);
107
 
void WriteParameter (int file, const char * s1, int val);
108
 
void WriteScores (void);
109
 
void WriteConfig (void);
110
 
void ReadSETUPFiles (void);
111
 
void DeleteSoundFile ( void );
112
 
void CheckVendor (void);
113
 
void ConvertStringToPasswordString ( char * string );
114
 
void ConvertPasswordStringToPassword ( void );
115
 
void ConvertPasswordStringToString ( char * string );
116
 
void ConvertPasswordToPasswordString ( void );
117
 
 
118
 
#endif