X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fthunderstorm.hpp;h=fcfba4879d7864ea286bf1155d52bb0d55625a1f;hb=7e15c4f871809033278711a6e9327616da00c4c9;hp=77f8f68871b2de46641e48209888ced1a61daee3;hpb=c2af5f87dc306b5f0a92f1d9af80c21d4c91d492;p=supertux.git diff --git a/src/object/thunderstorm.hpp b/src/object/thunderstorm.hpp index 77f8f6887..fcfba4879 100644 --- a/src/object/thunderstorm.hpp +++ b/src/object/thunderstorm.hpp @@ -41,10 +41,15 @@ public: virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx); /** + * @name Scriptable Methods + * @{ + */ + + /** * Start playing thunder and lightning at configured interval */ void start(); - + /** * Stop playing thunder and lightning at configured interval */ @@ -70,15 +75,18 @@ 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 */ Timer flash_display_timer; /**< counts down while flash is displayed */ }; #endif -