X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fthunderstorm.hpp;h=fcfba4879d7864ea286bf1155d52bb0d55625a1f;hb=7e15c4f871809033278711a6e9327616da00c4c9;hp=ee143034688647aa3563bab9501a641ec805174a;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/object/thunderstorm.hpp b/src/object/thunderstorm.hpp index ee1430346..fcfba4879 100644 --- a/src/object/thunderstorm.hpp +++ b/src/object/thunderstorm.hpp @@ -41,6 +41,11 @@ public: virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx); /** + * @name Scriptable Methods + * @{ + */ + + /** * Start playing thunder and lightning at configured interval */ void start(); @@ -70,10 +75,14 @@ public: */ void electrify(); + /** + * @} + */ + private: - std::string name; /**< user-defined name for use in scripts or empty string if not scriptable */ bool running; /**< whether we currently automatically trigger lightnings */ float interval; /**< time between two lightnings */ + int layer; /**< layer, where flash will be painted */ Timer time_to_thunder; /**< counts down until next thunder */ Timer time_to_lightning; /**< counts down until next lightning */