X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.h;h=849f7a1ad24af204d530d422bd1611a0c5fa8480;hp=43970fd33f65d0d71050c4a6217f99b66a921711;hb=8bdedff68aff9410604ae381dad5bbce8e47a7c9;hpb=a5a03e15b395ba1942c180d1cd0d3a4f43b87f56 diff --git a/src/init.h b/src/init.h index 43970fd3..849f7a1a 100644 --- a/src/init.h +++ b/src/init.h @@ -1,32 +1,54 @@ -/*********************************************************** -* 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 * -*----------------------------------------------------------* -* 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 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 InitElementPropertiesGfxElement(void); + +void ReloadCustomArtwork(int); +void RedrawGlobalBorder(void); + +void KeyboardAutoRepeatOffUnlessAutoplay(void); + +void InitGfxBuffers(void); +void InitGadgets(void); +void InitImageTextures(void); + +void InitNetworkServer(void); + +void DisplayExitMessage(char *, va_list); + +void OpenAll(void); +void CloseAllAndExit(int); #endif