d52aef4d9dce3fc139040d1b485bc6b51f4541fa
[rocksndiamonds.git] / src / init.h
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2006 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * init.h                                                   *
12 ***********************************************************/
13
14 #ifndef INIT_H
15 #define INIT_H
16
17 #include "main.h"
18
19 #define setMoveIntoAcidProperty(l, e, v)                        \
20         (setBitfieldProperty(&(l)->can_move_into_acid_bits,     \
21                              EP_CAN_MOVE_INTO_ACID, e, v))
22 #define getMoveIntoAcidProperty(l, e)                           \
23         (getBitfieldProperty(&(l)->can_move_into_acid_bits,     \
24                              EP_CAN_MOVE_INTO_ACID, e))
25 #define setDontCollideWithProperty(l, e, v)                     \
26         (setBitfieldProperty(&(l)->dont_collide_with_bits,      \
27                              EP_DONT_COLLIDE_WITH, e, v))
28 #define getDontCollideWithProperty(l, e)                        \
29         (getBitfieldProperty(&(l)->dont_collide_with_bits,      \
30                              EP_DONT_COLLIDE_WITH, e))
31
32 void setBitfieldProperty(int *, int, int, boolean);
33 boolean getBitfieldProperty(int *, int, int);
34
35 void ResolveGroupElement(int);
36 void InitElementPropertiesStatic(void);
37 void InitElementPropertiesEngine(int);
38 void InitElementPropertiesAfterLoading(int);
39 void InitElementPropertiesGfxElement();
40
41 void ReloadCustomArtwork(int);
42 void RedrawBackground();
43
44 void KeyboardAutoRepeatOffUnlessAutoplay();
45
46 void InitGfxBuffers();
47 void InitGadgets();
48
49 void DisplayExitMessage(char *, va_list);
50
51 void OpenAll(void);
52 void CloseAllAndExit(int);
53
54 #endif