fixed code to compile with current gcc and 64-bit systems
[rocksndiamonds.git] / src / screens.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  ©1995 Artsoft Development                               *
5 *        Holger Schemel                                    *
6 *        33659 Bielefeld-Senne                             *
7 *        Telefon: (0521) 493245                            *
8 *        eMail: aeglos@valinor.owl.de                      *
9 *               aeglos@uni-paderborn.de                    *
10 *               q99492@pbhrzx.uni-paderborn.de             *
11 *----------------------------------------------------------*
12 *  screens.h                                               *
13 *                                                          *
14 *  Letzte Aenderung: 15.06.1995                            *
15 ***********************************************************/
16
17 #ifndef SCREENS_H
18 #define SCREENS_H
19
20 #include "main.h"
21
22 /* Setup-Bits */
23 #define SETUP_TOONS                     (1<<0)
24 #define SETUP_SOUND                     (1<<1)
25 #define SETUP_SOUND_LOOPS               (1<<2)
26 #define SETUP_SOUND_MUSIC               (1<<3)
27 #define SETUP_DIRECT_DRAW               (1<<4)
28 #define SETUP_FADING                    (1<<5)
29 #define SETUP_RECORD_EACH_GAME          (1<<6)
30 #define SETUP_2ND_JOYSTICK              (1<<7)
31
32 #define DEFAULT_SETUP                   (SETUP_TOONS |          \
33                                          SETUP_SOUND |          \
34                                          SETUP_SOUND_LOOPS |    \
35                                          SETUP_SOUND_MUSIC)
36
37 /* Setup-Voreinstellungen */
38 #define SETUP_TOONS_ON(x)               (((x) & SETUP_TOONS) != 0)
39 #define SETUP_SOUND_ON(x)               (((x) & SETUP_SOUND) != 0)
40 #define SETUP_SOUND_LOOPS_ON(x)         (((x) & SETUP_SOUND_LOOPS) != 0)
41 #define SETUP_SOUND_MUSIC_ON(x)         (((x) & SETUP_SOUND_MUSIC) != 0)
42 #define SETUP_DIRECT_DRAW_ON(x)         (((x) & SETUP_DIRECT_DRAW) != 0)
43 #define SETUP_FADING_ON(x)              (((x) & SETUP_FADING) != 0)
44 #define SETUP_RECORD_EACH_GAME_ON(x)    (((x) & SETUP_RECORD_EACH_GAME) != 0)
45 #define SETUP_2ND_JOYSTICK_ON(x)        (((x) & SETUP_2ND_JOYSTICK) != 0)
46
47 void DrawMainMenu();
48 void HandleMainMenu(int, int, int, int, int);
49 void DrawHelpScreenElAction(int);
50 void DrawHelpScreenElText(int);
51 void DrawHelpScreenMusicText(int);
52 void DrawHelpScreenRegistrationText(void);
53 void DrawHelpScreen();
54 void HandleHelpScreen(int);
55 void HandleTypeName(int, KeySym);
56 void DrawChooseLevel(void);
57 void HandleChooseLevel(int, int, int, int, int);
58 void DrawHallOfFame(int);
59 void HandleHallOfFame(int);
60 void DrawSetupScreen();
61 void HandleSetupScreen(int, int, int, int, int);
62 void HandleVideoButtons(int, int, int);
63 void HandleSoundButtons(int, int, int);
64 void HandleGameButtons(int, int, int);
65 int CheckVideoButtons(int, int, int);
66 int CheckSoundButtons(int, int, int);
67 int CheckGameButtons(int, int, int);
68 int CheckChooseButtons(int, int, int);
69 int CheckConfirmButton(int, int, int);
70 void DrawCompleteVideoDisplay(void);
71
72 #endif