rnd-20060510-1-src
[rocksndiamonds.git] / src / init.h
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 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 InitElementPropertiesStatic(void);
36 void InitElementPropertiesEngine(int);
37
38 void ReloadCustomArtwork(int);
39 void RedrawBackground();
40
41 void KeyboardAutoRepeatOffUnlessAutoplay();
42
43 void OpenAll(void);
44 void CloseAllAndExit(int);
45
46 #endif