added support for BD game engine to Makefile for Android
[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 //                  https://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, EP_CAN_MOVE_INTO_ACID, e, v))
19 #define getMoveIntoAcidProperty(l, e)           \
20         (getBitfieldProperty(&(l)->can_move_into_acid_bits, EP_CAN_MOVE_INTO_ACID, e))
21 #define setDontCollideWithProperty(l, e, v)     \
22         (setBitfieldProperty(&(l)->dont_collide_with_bits,  EP_DONT_COLLIDE_WITH, e, v))
23 #define getDontCollideWithProperty(l, e)        \
24         (getBitfieldProperty(&(l)->dont_collide_with_bits,  EP_DONT_COLLIDE_WITH, e))
25
26 void setBitfieldProperty(int *, int, int, boolean);
27 boolean getBitfieldProperty(int *, int, int);
28
29 void ResolveGroupElement(int);
30 void InitElementPropertiesStatic(void);
31 void InitElementPropertiesEngine(int);
32 void InitElementPropertiesGfxElement(void);
33
34 void ReloadCustomArtwork(int);
35 void RedrawGlobalBorder(void);
36
37 void KeyboardAutoRepeatOffUnlessAutoplay(void);
38
39 void InitGfxBuffers(void);
40 void InitGadgets(void);
41 void InitImageTextures(void);
42
43 void InitNetworkServer(void);
44
45 void DisplayExitMessage(char *, va_list);
46
47 void OpenAll(void);
48 void CloseAllAndExit(int);
49
50 #endif