X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.h;h=1bfd49bc32333c93f3a03c082a6b963f433d70a9;hb=f719b7331067a46dc013dcab78dceeafcaeefdab;hp=95993d456e9b5d1793da092f8e89550bd70de1ca;hpb=3fb68b18f28034e492534fb3b5579fd1da888292;p=rocksndiamonds.git diff --git a/src/init.h b/src/init.h index 95993d45..1bfd49bc 100644 --- a/src/init.h +++ b/src/init.h @@ -16,7 +16,30 @@ #include "main.h" -void ReloadCustomArtwork(); +#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 InitElementPropertiesStatic(void); +void InitElementPropertiesEngine(int); +void InitElementPropertiesAfterLoading(int); + +void ReloadCustomArtwork(int); +void RedrawBackground(); + +void KeyboardAutoRepeatOffUnlessAutoplay(); void OpenAll(void); void CloseAllAndExit(int);