fixed bug with restarting same menu music on different screens
[rocksndiamonds.git] / src / init.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 //                  http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // init.h
10 // ============================================================================
11
12 #ifndef INIT_H
13 #define INIT_H
14
15 #include "main.h"
16
17 #define setMoveIntoAcidProperty(l, e, v)                        \
18         (setBitfieldProperty(&(l)->can_move_into_acid_bits,     \
19                              EP_CAN_MOVE_INTO_ACID, e, v))
20 #define getMoveIntoAcidProperty(l, e)                           \
21         (getBitfieldProperty(&(l)->can_move_into_acid_bits,     \
22                              EP_CAN_MOVE_INTO_ACID, e))
23 #define setDontCollideWithProperty(l, e, v)                     \
24         (setBitfieldProperty(&(l)->dont_collide_with_bits,      \
25                              EP_DONT_COLLIDE_WITH, e, v))
26 #define getDontCollideWithProperty(l, e)                        \
27         (getBitfieldProperty(&(l)->dont_collide_with_bits,      \
28                              EP_DONT_COLLIDE_WITH, e))
29
30 void setBitfieldProperty(int *, int, int, boolean);
31 boolean getBitfieldProperty(int *, int, int);
32
33 void ResolveGroupElement(int);
34 void InitElementPropertiesStatic(void);
35 void InitElementPropertiesEngine(int);
36 void InitElementPropertiesAfterLoading(int);
37 void InitElementPropertiesGfxElement();
38
39 void ReloadCustomArtwork(int);
40 void RedrawGlobalBorder();
41
42 void KeyboardAutoRepeatOffUnlessAutoplay();
43
44 void InitGfxBuffers();
45 void InitGadgets();
46 void InitImageTextures();
47
48 void DisplayExitMessage(char *, va_list);
49
50 void OpenAll(void);
51 void CloseAllAndExit(int);
52
53 #endif