X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fworldmap.h;h=9968ce048b505fdb51901f9814ca783dfa9e9f31;hb=e59a8e5e758978341d5410f09b705c4e969dc9a0;hp=4767c2e4db251f3670c002440ece3db3269f4a04;hpb=3181262386659262786395df341544a24c667caf;p=supertux.git diff --git a/src/worldmap.h b/src/worldmap.h index 4767c2e4d..9968ce048 100644 --- a/src/worldmap.h +++ b/src/worldmap.h @@ -23,6 +23,8 @@ #include #include +#include + namespace WorldMapNS { struct Point @@ -155,7 +157,10 @@ public: Point get_next_tile(Point pos, Direction direction); Tile* at(Point pos); - bool path_ok(Direction direction, Point old_pos, Point* new_pos); + + /** Check if it is possible to walk from \a pos into \a direction, + if possible, write the new position to \a new_pos */ + bool path_ok(Direction direction, Point pos, Point* new_pos); }; } // namespace WorldMapNS