X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsector.hpp;h=9c5ab6a7129e357ebf92c85f46948347f432bb03;hb=89c801d4e00a0be36f6ad693a055505968ef9514;hp=5033959c1716ba729d04dc7c8a08641c9163df98;hpb=8b67b0dc71efddc4b668bde525ba94d701f622ac;p=supertux.git diff --git a/src/sector.hpp b/src/sector.hpp index 5033959c1..9c5ab6a71 100644 --- a/src/sector.hpp +++ b/src/sector.hpp @@ -79,7 +79,7 @@ public: /// write sector to lisp file void write(lisp::Writer& writer); - /// activates this sector (change music, intialize player class, ...) + /// activates this sector (change music, initialize player class, ...) void activate(const std::string& spawnpoint); void activate(const Vector& player_pos); void deactivate(); @@ -193,6 +193,11 @@ public: float get_ambient_green(); float get_ambient_blue(); + /** + * set gravity throughout sector + */ + void set_gravity(float gravity); + private: Level* level; /**< Parent level containing this sector */ uint32_t collision_tile_attributes(const Rect& dest) const;