rnd-20050116-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 #if 1
20 #define setMoveIntoAcidProperty(l, e, v)                        \
21         (setBitfieldProperty(&(l)->can_move_into_acid_bits,     \
22                              EP_CAN_MOVE_INTO_ACID, e, v))
23 #define getMoveIntoAcidProperty(l, e)                           \
24         (getBitfieldProperty(&(l)->can_move_into_acid_bits,     \
25                              EP_CAN_MOVE_INTO_ACID, e))
26 #define setDontCollideWithProperty(l, e, v)                     \
27         (setBitfieldProperty(&(l)->dont_collide_with_bits,      \
28                              EP_DONT_COLLIDE_WITH, e, v))
29 #define getDontCollideWithProperty(l, e)                        \
30         (getBitfieldProperty(&(l)->dont_collide_with_bits,      \
31                              EP_DONT_COLLIDE_WITH, e))
32
33 void setBitfieldProperty(int *, int, int, boolean);
34 boolean getBitfieldProperty(int *, int, int);
35
36 #else
37
38 void setMoveIntoAcidProperty(struct LevelInfo *, int, boolean);
39 boolean getMoveIntoAcidProperty(struct LevelInfo *, int);
40 #endif
41
42 void InitElementPropertiesStatic(void);
43 void InitElementPropertiesEngine(int);
44
45 void ReloadCustomArtwork(int);
46
47 void KeyboardAutoRepeatOffUnlessAutoplay();
48
49 void OpenAll(void);
50 void CloseAllAndExit(int);
51
52 #endif