#303: Typo fixes from mathnerd314
[supertux.git] / src / scripting / thunderstorm.hpp
index 79e350b..fbe555c 100644 (file)
@@ -1,4 +1,4 @@
-//  $Id: player.hpp 3962 2006-07-09 10:32:59Z matzebraun $
+//  $Id$
 //
 //  SuperTux
 //  Copyright (C) 2006 Matthias Braun <matze@braunis.de>
 #ifndef __SCRIPTING_THUNDERSTORM_H__
 #define __SCRIPTING_THUNDERSTORM_H__
 
+#ifndef SCRIPTING_API
+class Thunderstorm;
+typedef Thunderstorm _Thunderstorm;
+#endif
+
 namespace Scripting
 {
 
@@ -27,44 +32,45 @@ class Thunderstorm
 {
 public:
 #ifndef SCRIPTING_API
-  virtual ~Thunderstorm()
-  {}
+  Thunderstorm(_Thunderstorm* thunderstorm);
+  ~Thunderstorm();
 #endif
 
     /**
      * Start playing thunder and lightning at configured interval
      */
-    virtual void start() = 0;
-    
+    void start();
+
     /**
      * Stop playing thunder and lightning at configured interval
      */
-    virtual void stop() = 0;
+    void stop();
 
     /**
      * Play thunder
      */
-    virtual void thunder() = 0;
+    void thunder();
 
     /**
      * Play lightning, i.e. call flash() and electrify()
      */
-    virtual void lightning() = 0;
+    void lightning();
 
     /**
      * Display a nice flash
      */
-    virtual void flash() = 0;
+    void flash();
 
     /**
      * Electrify water throughout the whole sector for a short time
      */
-    virtual void electrify() = 0;
-
+    void electrify();
 
+#ifndef SCRIPTING_API
+  _Thunderstorm* thunderstorm;
+#endif
 };
 
 }
 
 #endif
-