X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.h;h=ca22ef6e1662a2c7acd76fb2accae3b710fd36b2;hb=a047db7b385f7523ca97deb21fdc504f34a80c7e;hp=b8b59e64b1e5b11c720460572a01839f98527f2d;hpb=fbe0eaa3234fb6a69a65136f764922e24943501d;p=rocksndiamonds.git diff --git a/src/init.h b/src/init.h index b8b59e64..ca22ef6e 100644 --- a/src/init.h +++ b/src/init.h @@ -16,10 +16,35 @@ #include "main.h" +#if 1 +#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)->can_move_into_acid_bits, \ + EP_DONT_COLLIDE_WITH, e, v)) +#define getDontCollideWithProperty(l, e) \ + (getBitfieldProperty(&(l)->can_move_into_acid_bits, \ + EP_DONT_COLLIDE_WITH, e)) + +void setBitfieldProperty(int *, int, int, boolean); +boolean getBitfieldProperty(int *, int, int); + +#else + +void setMoveIntoAcidProperty(struct LevelInfo *, int, boolean); +boolean getMoveIntoAcidProperty(struct LevelInfo *, int); +#endif + void InitElementPropertiesStatic(void); void InitElementPropertiesEngine(int); -void ReloadCustomArtwork(void); +void ReloadCustomArtwork(int); + +void KeyboardAutoRepeatOffUnlessAutoplay(); void OpenAll(void); void CloseAllAndExit(int);