X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fsector.hpp;h=885a817e61823776ea098598ff4420b27e4ce4b0;hb=73cb1e168850018eaa821a42b30bb221dc5186fe;hp=4388c857f1838f26705f4a181abed38e41be08e1;hpb=26316f3548bc819f817918a79dbee7ce9f7270c5;p=supertux.git diff --git a/src/supertux/sector.hpp b/src/supertux/sector.hpp index 4388c857f..885a817e6 100644 --- a/src/supertux/sector.hpp +++ b/src/supertux/sector.hpp @@ -110,7 +110,8 @@ public: void play_music(MusicType musictype); MusicType get_music_type(); - bool add_bullet(const Vector& pos, const PlayerStatus* player_status, float xm, Direction dir); + int get_active_bullets() + { return (int)bullets.size(); } bool add_smoke_cloud(const Vector& pos); /** get currently activated sector. */ @@ -170,6 +171,8 @@ public: Rectf get_active_region(); + int get_foremost_layer(); + /** * returns the width (in px) of a sector) */ @@ -245,6 +248,8 @@ private: void fix_old_tiles(); + int calculate_foremost_layer(); + private: static Sector* _current; @@ -268,6 +273,8 @@ private: Color ambient_light; + int foremost_layer; + public: // TODO make this private again /// show collision rectangles of moving objects (for debugging) static bool show_collrects;