X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsector.hpp;h=777ce937fa56a748288a31376ab9a83f79a715d2;hb=ffaadd80066a2a0f8c30d58ef3466f79e98254d7;hp=cdc59b6f4d51efb1d229f02c944180f4586da1e4;hpb=57d33b3da7b67df4171e2270d6136868814b242e;p=supertux.git diff --git a/src/sector.hpp b/src/sector.hpp index cdc59b6f4..777ce937f 100644 --- a/src/sector.hpp +++ b/src/sector.hpp @@ -134,20 +134,20 @@ public: void collision_tilemap(collision::Constraints* constraints, const Vector& movement, const Rect& dest) const; - /** + /** * Checks if the specified rectangle is free of (solid) tiles. * Note that this does not include static objects, e.g. bonus blocks. */ - bool is_free_of_tiles(const Rect& rect) const; - /** - * Checks if the specified rectangle is free of both + bool is_free_of_tiles(const Rect& rect, const bool ignoreUnisolid = false) const; + /** + * Checks if the specified rectangle is free of both * 1.) solid tiles and * 2.) MovingObjects in COLGROUP_STATIC. * Note that this does not include badguys or players. */ - bool is_free_of_statics(const Rect& rect, const MovingObject* ignore_object = 0) const; - /** - * Checks if the specified rectangle is free of both + bool is_free_of_statics(const Rect& rect, const MovingObject* ignore_object = 0, const bool ignoreUnisolid = false) const; + /** + * Checks if the specified rectangle is free of both * 1.) solid tiles and * 2.) MovingObjects in COLGROUP_STATIC, COLGROUP_MOVINGSTATIC or COLGROUP_MOVING. * This includes badguys and players.