Make Tux run automatically. As before, if he is carrying something Tux
[supertux.git] / src / object / thunderstorm.hpp
index 804312f..7aa8173 100644 (file)
@@ -29,7 +29,7 @@
 /**
  * Thunderstorm scriptable GameObject; plays thunder, lightning and electrifies water at regular interval
  */
-class Thunderstorm : public GameObject, public Scripting::Thunderstorm, public ScriptInterface
+class Thunderstorm : public GameObject, public ScriptInterface
 {
 public:
     Thunderstorm(const lisp::Lisp& reader);
@@ -40,11 +40,16 @@ public:
     virtual void expose(HSQUIRRELVM vm, SQInteger table_idx);
     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,17 @@ 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 */
-    
+
     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
-