rnd-19980930-1
[rocksndiamonds.git] / src / editor.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  (c) 1995-98 Artsoft Entertainment                       *
5 *              Holger Schemel                              *
6 *              Oststrasse 11a                              *
7 *              33604 Bielefeld                             *
8 *              phone: ++49 +521 290471                     *
9 *              email: aeglos@valinor.owl.de                *
10 *----------------------------------------------------------*
11 *  editor.h                                                *
12 ***********************************************************/
13
14 #ifndef EDITOR_H
15 #define EDITOR_H
16
17 #include "main.h"
18
19 /* positions in the level editor */
20 #define ED_WIN_MB_LEFT_XPOS     7
21 #define ED_WIN_MB_LEFT_YPOS     6
22 #define ED_WIN_LEVELNR_XPOS     77
23 #define ED_WIN_LEVELNR_YPOS     7
24 #define ED_WIN_MB_MIDDLE_XPOS   7
25 #define ED_WIN_MB_MIDDLE_YPOS   258
26 #define ED_WIN_MB_RIGHT_XPOS    77
27 #define ED_WIN_MB_RIGHT_YPOS    258
28
29 #define MAX_ELEM_X              4
30 #define MAX_ELEM_Y              10
31
32 /* other constants for the editor */
33 #define ED_SCROLL_NO            0
34 #define ED_SCROLL_LEFT          1
35 #define ED_SCROLL_RIGHT         2
36 #define ED_SCROLL_UP            4
37 #define ED_SCROLL_DOWN          8
38
39 extern int element_shift;
40 extern int editor_element[];
41 extern int elements_in_list;
42
43 void DrawLevelEd(void);
44 void ScrollMiniLevel(int, int, int);
45 void LevelEd(int, int, int);
46 void LevelNameTyping(KeySym);
47
48 #endif