added creating engine snapshots when using mouse click events
[rocksndiamonds.git] / src / files.h
1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // files.h
10 // ============================================================================
11
12 #ifndef FILES_H
13 #define FILES_H
14
15 #include "main.h"
16
17
18 #define LEVEL_PACKED_START              100
19 #define PACKED_LEVELS(x)                (LEVEL_PACKED_START + x)
20
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)
23
24 #define IS_SINGLE_LEVEL_FILE(x)         (x < LEVEL_PACKED_START)
25 #define IS_PACKED_LEVEL_FILE(x)         (x > LEVEL_PACKED_START)
26
27
28 void setElementChangePages(struct ElementInfo *, int);
29 void setElementChangeInfoToDefaults(struct ElementChangeInfo *);
30 void copyElementInfo(struct ElementInfo *, struct ElementInfo *);
31
32 char *getDefaultLevelFilename(int);
33 char *getLocalLevelTemplateFilename(void);
34 char *getGlobalLevelTemplateFilename(void);
35
36 void LoadLevelFromFilename(struct LevelInfo *, char *);
37 void LoadLevel(int);
38 void LoadLevelTemplate(int);
39 void LoadLevelInfoOnly(int);
40 void LoadNetworkLevel(struct NetworkLevelInfo *);
41 void SaveLevel(int);
42 void SaveLevelTemplate(void);
43 void SaveNativeLevel(struct LevelInfo *);
44 void DumpLevel(struct LevelInfo *);
45 boolean SaveLevelChecked(int);
46
47 void CopyNativeLevel_RND_to_Native(struct LevelInfo *);
48 void CopyNativeLevel_Native_to_RND(struct LevelInfo *);
49
50 void LoadTapeFromFilename(char *);
51 void LoadTape(int);
52 void LoadSolutionTape(int);
53 void SaveTapeToFilename(char *);
54 void SaveTape(int);
55 void DumpTape(struct TapeInfo *);
56 boolean SaveTapeChecked(int);
57 boolean SaveTapeChecked_LevelSolved(int);
58
59 void LoadScore(int);
60 void SaveScore(int);
61
62 void LoadSetupFromFilename(char *);
63 void LoadSetup(void);
64 void SaveSetup(void);
65
66 void LoadSetup_AutoSetup(void);
67 void SaveSetup_AutoSetup(void);
68
69 void LoadSetup_EditorCascade(void);
70 void SaveSetup_EditorCascade(void);
71
72 void SaveSetup_AddGameControllerMapping(char *);
73
74 void setHideSetupEntry(void *);
75 boolean hideSetupEntry(void *);
76
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);
85
86 void ConvertLevels(void);
87 void CreateLevelSketchImages(void);
88 void CreateCustomElementImages(char *);
89
90 void FreeGlobalAnimEventInfo(void);
91 int GetGlobalAnimEventValue(int, int);
92 int GetGlobalAnimEventValueCount(int);
93
94 int get_parameter_value(char *, char *, int);
95
96 #endif  // FILES_H