X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.h;h=bd4ba9c13f1cd1c57667604f70caff3e3a1ae74c;hp=af5f39815e7b5d16e35b595561deb6934e9863cc;hb=14801844faf14be284c590b66f030c6bf7cea5c2;hpb=ba68c676a24c697907748c2653d77752363170fe diff --git a/src/init.h b/src/init.h index af5f3981..bd4ba9c1 100644 --- a/src/init.h +++ b/src/init.h @@ -1,30 +1,51 @@ -/*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * -*----------------------------------------------------------* -* (c) 1995-2002 Artsoft Entertainment * -* Holger Schemel * -* Detmolder Strasse 189 * -* 33604 Bielefeld * -* Germany * -* e-mail: info@artsoft.org * -*----------------------------------------------------------* -* init.h * -***********************************************************/ +// ============================================================================ +// Rocks'n'Diamonds - McDuffin Strikes Back! +// ---------------------------------------------------------------------------- +// (c) 1995-2014 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// http://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// init.h +// ============================================================================ #ifndef INIT_H #define INIT_H #include "main.h" -void setMoveIntoAcidProperty(struct LevelInfo *, int, boolean); -boolean getMoveIntoAcidProperty(struct LevelInfo *, int); +#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 InitElementPropertiesGfxElement(); void ReloadCustomArtwork(int); +void RedrawGlobalBorder(); void KeyboardAutoRepeatOffUnlessAutoplay(); +void InitGfxBuffers(); +void InitGadgets(); +void InitImageTextures(); + +void DisplayExitMessage(char *, va_list); + void OpenAll(void); void CloseAllAndExit(int);