X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.h;h=1bfd49bc32333c93f3a03c082a6b963f433d70a9;hb=6e392e90d99cc0b6d8af3a15fc334bf34f889994;hp=7440123ff90e4f0bdecc9f52da76f1a5693dcf65;hpb=7993378f9ae3ba83d8d420be8a7f5c81859e1750;p=rocksndiamonds.git diff --git a/src/init.h b/src/init.h index 7440123f..1bfd49bc 100644 --- a/src/init.h +++ b/src/init.h @@ -16,11 +16,28 @@ #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); -int get_special_property_bit(int, int); +void InitElementPropertiesAfterLoading(int); void ReloadCustomArtwork(int); +void RedrawBackground(); void KeyboardAutoRepeatOffUnlessAutoplay();