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 int getMappedElement(int);
38 void LoadLevelFromFilename(struct LevelInfo *, char *);
40 void LoadLevelTemplate(int);
41 void LoadLevelInfoOnly(int);
42 void LoadNetworkLevel(struct NetworkLevelInfo *);
44 void SaveLevelTemplate(void);
45 void SaveNativeLevel(struct LevelInfo *);
46 void DumpLevel(struct LevelInfo *);
47 boolean SaveLevelChecked(int);
49 void CopyNativeLevel_RND_to_Native(struct LevelInfo *);
50 void CopyNativeLevel_Native_to_RND(struct LevelInfo *);
52 void LoadTapeFromFilename(char *);
54 void LoadSolutionTape(int);
55 void SaveTapeToFilename(char *);
57 void DumpTape(struct TapeInfo *);
58 boolean SaveTapeChecked(int);
59 boolean SaveTapeChecked_LevelSolved(int);
64 void LoadSetupFromFilename(char *);
68 void LoadSetup_AutoSetup(void);
69 void SaveSetup_AutoSetup(void);
71 void LoadSetup_EditorCascade(void);
72 void SaveSetup_EditorCascade(void);
74 void SaveSetup_AddGameControllerMapping(char *);
76 void setHideSetupEntry(void *);
77 boolean hideSetupEntry(void *);
79 void LoadCustomElementDescriptions(void);
80 void InitMenuDesignSettings_Static(void);
81 void LoadMenuDesignSettings(void);
82 void LoadMenuDesignSettings_AfterGraphics(void);
83 void LoadUserDefinedEditorElementList(int **, int *);
84 void LoadMusicInfo(void);
85 void LoadHelpAnimInfo(void);
86 void LoadHelpTextInfo(void);
88 void ConvertLevels(void);
89 void CreateLevelSketchImages(void);
90 void CreateCustomElementImages(char *);
92 void FreeGlobalAnimEventInfo(void);
93 int GetGlobalAnimEventValue(int, int);
94 int GetGlobalAnimEventValueCount(int);
96 int get_parameter_value(char *, char *, int);