X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fthunderstorm.hpp;h=fbe555ca7acb46db7aba6f397a1d8ad85b29cce6;hb=86e5914510fc29f4decbb66a7d602872b6c8555e;hp=79e350bdc2895948b7fd8da024d087677f25ede3;hpb=fe875e6f18c4ed968f7b1534b4039c8a580b852b;p=supertux.git diff --git a/src/scripting/thunderstorm.hpp b/src/scripting/thunderstorm.hpp index 79e350bdc..fbe555ca7 100644 --- a/src/scripting/thunderstorm.hpp +++ b/src/scripting/thunderstorm.hpp @@ -1,4 +1,4 @@ -// $Id: player.hpp 3962 2006-07-09 10:32:59Z matzebraun $ +// $Id$ // // SuperTux // Copyright (C) 2006 Matthias Braun @@ -20,6 +20,11 @@ #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 -