X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fwind.hpp;h=e52add7c176350b9ea86b2c9fcafa93b9a3e0777;hb=20f50f690c18aefbedeeb43eda094c8cb70351a9;hp=2da07d968309b9bbbb84512d497c07f592e0d492;hpb=d0e404874455994e6276d23d76fb9f1ea6d06094;p=supertux.git diff --git a/src/object/wind.hpp b/src/object/wind.hpp index 2da07d968..e52add7c1 100644 --- a/src/object/wind.hpp +++ b/src/object/wind.hpp @@ -28,7 +28,7 @@ class Player; -/** +/** * Defines an area that will gently push Players in one direction */ class Wind : public MovingObject, public ScriptInterface @@ -39,23 +39,30 @@ public: void update(float elapsed_time); void draw(DrawingContext& context); HitResponse collision(GameObject& other, const CollisionHit& hit); - + + /** + * @name Scriptable Methods + * @{ + */ + /** * start blowing */ void start(); - + /** * stop blowing */ void stop(); + /** + * @} + */ + virtual void expose(HSQUIRRELVM vm, SQInteger table_idx); virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx); - + private: - std::string name; /**< user-defined name for use in scripts or empty string if not scriptable */ - bool blowing; /**< true if wind is currently switched on */ Vector speed; float acceleration; @@ -64,4 +71,3 @@ private: }; #endif -