X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.h;h=08f999e3e6df1a51179d58384a4d774e92a85e2e;hb=ea6e4698905d7440a265e323d03cf13fc323c44b;hp=a4025311ecc17c865de5e134eb6c1d70556208b6;hpb=b7d31643c9c84104fb3ebef778e545928610ff65;p=rocksndiamonds.git diff --git a/src/init.h b/src/init.h index a4025311..08f999e3 100644 --- a/src/init.h +++ b/src/init.h @@ -1,15 +1,14 @@ /*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * +* Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* ©1995 Artsoft Development * -* Holger Schemel * -* 33659 Bielefeld-Senne * -* Telefon: (0521) 493245 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * -* q99492@pbhrzx.uni-paderborn.de * +* (c) 1995-2002 Artsoft Entertainment * +* Holger Schemel * +* Detmolder Strasse 189 * +* 33604 Bielefeld * +* Germany * +* e-mail: info@artsoft.org * *----------------------------------------------------------* -* init.h * +* init.h * ***********************************************************/ #ifndef INIT_H @@ -17,8 +16,37 @@ #include "main.h" -void OpenAll(int, char **); -void CloseAll(); -void InitJoystick(void); +#if 1 +#define setMoveIntoAcidProperty(l, e, v) \ + (setBitfieldProperty(&(l)->can_move_into_acid_bits, \ + EP_CAN_MOVE_INTO_ACID, e, v)) +#define getMoveIntoAcidProperty(l, e) \ + (getBitfieldProperty(&(l)->can_move_into_acid_bits, \ + EP_CAN_MOVE_INTO_ACID, e)) +#define setDontCollideWithProperty(l, e, v) \ + (setBitfieldProperty(&(l)->dont_collide_with_bits, \ + EP_DONT_COLLIDE_WITH, e, v)) +#define getDontCollideWithProperty(l, e) \ + (getBitfieldProperty(&(l)->dont_collide_with_bits, \ + EP_DONT_COLLIDE_WITH, e)) + +void setBitfieldProperty(int *, int, int, boolean); +boolean getBitfieldProperty(int *, int, int); + +#else + +void setMoveIntoAcidProperty(struct LevelInfo *, int, boolean); +boolean getMoveIntoAcidProperty(struct LevelInfo *, int); +#endif + +void InitElementPropertiesStatic(void); +void InitElementPropertiesEngine(int); + +void ReloadCustomArtwork(int); + +void KeyboardAutoRepeatOffUnlessAutoplay(); + +void OpenAll(void); +void CloseAllAndExit(int); #endif