1 #ifndef EDITOR_H
2 #define EDITOR_H
3 
4 #include <sys/types.h>
5 #include <dirent.h>
6 #include "Main.h"
7 #include "Icons.h"
8 
9 #define EDIT_PANEL_HEIGHT 120
10 
11 typedef struct _editpanel {
12   SDL_Surface *image;
13   int level;
14   int image_index;
15 } EditPanel;
16 
17 extern EditPanel edit_panel;
18 extern Cursor editor_cursor;
19 
20 void initEditor();
21 void editMap();
22 void editorMainLoop(SDL_Event * event);
23 void drawEditPanel();
24 void editorAfterScreenFlipped();
25 
26 #endif
27