1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
18 #define LEVEL_PACKED_START 100
19 #define PACKED_LEVELS(x) (LEVEL_PACKED_START + x)
21 #define LEVEL_FILE_TYPE_RND_PACKED PACKED_LEVELS(LEVEL_FILE_TYPE_RND)
22 #define LEVEL_FILE_TYPE_EM_PACKED PACKED_LEVELS(LEVEL_FILE_TYPE_EM)
24 #define IS_SINGLE_LEVEL_FILE(x) (x < LEVEL_PACKED_START)
25 #define IS_PACKED_LEVEL_FILE(x) (x > LEVEL_PACKED_START)
28 void setElementChangePages(struct ElementInfo *, int);
29 void setElementChangeInfoToDefaults(struct ElementChangeInfo *);
30 void copyElementInfo(struct ElementInfo *, struct ElementInfo *);
32 char *getDefaultLevelFilename(int);
33 char *getLocalLevelTemplateFilename(void);
34 char *getGlobalLevelTemplateFilename(void);
36 void LoadLevelFromFilename(struct LevelInfo *, char *);
38 void LoadLevelTemplate(int);
39 void LoadLevelInfoOnly(int);
40 void LoadNetworkLevel(struct NetworkLevelInfo *);
42 void SaveLevelTemplate(void);
43 void SaveNativeLevel(struct LevelInfo *);
44 void DumpLevel(struct LevelInfo *);
45 boolean SaveLevelChecked(int);
47 void CopyNativeLevel_RND_to_Native(struct LevelInfo *);
48 void CopyNativeLevel_Native_to_RND(struct LevelInfo *);
50 void LoadTapeFromFilename(char *);
52 void LoadSolutionTape(int);
54 void DumpTape(struct TapeInfo *);
55 boolean SaveTapeChecked(int);
56 boolean SaveTapeChecked_LevelSolved(int);
61 void LoadSetupFromFilename(char *);
65 void LoadSetup_AutoSetup(void);
66 void SaveSetup_AutoSetup(void);
68 void LoadSetup_EditorCascade(void);
69 void SaveSetup_EditorCascade(void);
71 void SaveSetup_AddGameControllerMapping(char *);
73 void setHideSetupEntry(void *);
74 boolean hideSetupEntry(void *);
76 void LoadCustomElementDescriptions(void);
77 void InitMenuDesignSettings_Static(void);
78 void LoadMenuDesignSettings(void);
79 void LoadMenuDesignSettings_AfterGraphics(void);
80 void LoadUserDefinedEditorElementList(int **, int *);
81 void LoadMusicInfo(void);
82 void LoadHelpAnimInfo(void);
83 void LoadHelpTextInfo(void);
85 void ConvertLevels(void);
86 void CreateLevelSketchImages(void);
87 void CreateCustomElementImages(char *);
89 void FreeGlobalAnimEventInfo(void);
90 int GetGlobalAnimEventValue(int, int);
91 int GetGlobalAnimEventValueCount(int);
93 int get_parameter_value(char *, char *, int);