version number set to 4.1.2.1
[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 InitElementPropertiesGfxElement(void);
37
38 void ReloadCustomArtwork(int);
39 void RedrawGlobalBorder(void);
40
41 void KeyboardAutoRepeatOffUnlessAutoplay(void);
42
43 void InitGfxBuffers(void);
44 void InitGadgets(void);
45 void InitImageTextures(void);
46
47 void InitNetworkServer(void);
48
49 void DisplayExitMessage(char *, va_list);
50
51 void OpenAll(void);
52 void CloseAllAndExit(int);
53
54 #endif