X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.h;h=3df39d265cb852d02c3d5f2325124f7c1ee75970;hb=2ad9cd3aeb8b97f1cb869dd70f26abd0f7468a81;hp=43970fd33f65d0d71050c4a6217f99b66a921711;hpb=a5a03e15b395ba1942c180d1cd0d3a4f43b87f56;p=rocksndiamonds.git diff --git a/src/init.h b/src/init.h index 43970fd3..3df39d26 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-2006 Artsoft Entertainment * +* Holger Schemel * +* Detmolder Strasse 189 * +* 33604 Bielefeld * +* Germany * +* e-mail: info@artsoft.org * *----------------------------------------------------------* -* init.h * +* init.h * ***********************************************************/ #ifndef INIT_H @@ -17,16 +16,33 @@ #include "main.h" -void OpenAll(int, char **); -void InitLevelAndPlayerInfo(void); -void InitDisplay(int, char **); -void InitSound(void); -void InitSoundProcess(void); -void InitJoystick(void); -void InitWindow(int, char **); -void InitGfx(void); -void LoadGfx(int, struct PictureFile *); -void InitElementProperties(void); -void CloseAll(); +#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); + +void ResolveGroupElement(int); +void InitElementPropertiesStatic(void); +void InitElementPropertiesEngine(int); +void InitElementPropertiesAfterLoading(int); + +void ReloadCustomArtwork(int); +void RedrawBackground(); + +void KeyboardAutoRepeatOffUnlessAutoplay(); + +void OpenAll(void); +void CloseAllAndExit(int); #endif