1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // https://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);
53 void SaveTapeToFilename(char *);
55 void DumpTape(struct TapeInfo *);
56 boolean SaveTapeChecked(int);
57 boolean SaveTapeChecked_LevelSolved(int);
62 void LoadSetupFromFilename(char *);
66 void LoadSetup_AutoSetup(void);
67 void SaveSetup_AutoSetup(void);
69 void LoadSetup_EditorCascade(void);
70 void SaveSetup_EditorCascade(void);
72 void SaveSetup_AddGameControllerMapping(char *);
74 void setHideSetupEntry(void *);
75 boolean hideSetupEntry(void *);
77 void LoadCustomElementDescriptions(void);
78 void InitMenuDesignSettings_Static(void);
79 void LoadMenuDesignSettings(void);
80 void LoadMenuDesignSettings_AfterGraphics(void);
81 void LoadUserDefinedEditorElementList(int **, int *);
82 void LoadMusicInfo(void);
83 void LoadHelpAnimInfo(void);
84 void LoadHelpTextInfo(void);
86 void ConvertLevels(void);
87 void CreateLevelSketchImages(void);
88 void CreateCustomElementImages(char *);
90 void FreeGlobalAnimEventInfo(void);
91 int GetGlobalAnimEventValue(int, int);
92 int GetGlobalAnimEventValueCount(int);
94 int get_parameter_value(char *, char *, int);