X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.h;h=75cf288d6be32540c1aba8807e38ccb7b7367f4c;hb=6d7ebf6db8a9a57f2e3e398da1d2f7d8d084523f;hp=79880f11b256847386b83b4395bc15421ad5456b;hpb=9c285b0e8e4d81c5559815c5f7142685ce865206;p=rocksndiamonds.git diff --git a/src/init.h b/src/init.h index 79880f11..75cf288d 100644 --- a/src/init.h +++ b/src/init.h @@ -16,10 +16,27 @@ #include "main.h" +#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 ReloadCustomArtwork(int); +void RedrawBackground(); void KeyboardAutoRepeatOffUnlessAutoplay();