b4ebfed2e03d6324d2e11226eebb45c50a3392c3
[rocksndiamonds.git] / src / editor.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 *  editor.h                                                *
13 ***********************************************************/
14
15 #ifndef EDITOR_H
16 #define EDITOR_H
17
18 #include "main.h"
19
20 /* positions in the level editor */
21 #define ED_WIN_MB_LEFT_XPOS     7
22 #define ED_WIN_MB_LEFT_YPOS     6
23 #define ED_WIN_LEVELNR_XPOS     77
24 #define ED_WIN_LEVELNR_YPOS     7
25 #define ED_WIN_MB_MIDDLE_XPOS   7
26 #define ED_WIN_MB_MIDDLE_YPOS   258
27 #define ED_WIN_MB_RIGHT_XPOS    77
28 #define ED_WIN_MB_RIGHT_YPOS    258
29
30 #define MAX_ELEM_X              4
31 #define MAX_ELEM_Y              10
32
33 /* other constants for the editor */
34 #define ED_SCROLL_NO            0
35 #define ED_SCROLL_LEFT          1
36 #define ED_SCROLL_RIGHT         2
37 #define ED_SCROLL_UP            4
38 #define ED_SCROLL_DOWN          8
39
40 extern int element_shift;
41 extern int editor_element[];
42 extern int elements_in_list;
43
44 void DrawLevelEd(void);
45 void ScrollMiniLevel(int, int, int);
46 void LevelEd(int, int, int);
47 void LevelNameTyping(KeySym);
48
49 #endif