projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Add upgrade.wav from Yaniel
[supertux.git]
/
src
/
scripting
/
thunderstorm.hpp
diff --git
a/src/scripting/thunderstorm.hpp
b/src/scripting/thunderstorm.hpp
index
79e350b
..
fbe555c
100644
(file)
--- 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 <matze@braunis.de>
//
// SuperTux
// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
@@
-20,6
+20,11
@@
#ifndef __SCRIPTING_THUNDERSTORM_H__
#define __SCRIPTING_THUNDERSTORM_H__
#ifndef __SCRIPTING_THUNDERSTORM_H__
#define __SCRIPTING_THUNDERSTORM_H__
+#ifndef SCRIPTING_API
+class Thunderstorm;
+typedef Thunderstorm _Thunderstorm;
+#endif
+
namespace Scripting
{
namespace Scripting
{
@@
-27,44
+32,45
@@
class Thunderstorm
{
public:
#ifndef SCRIPTING_API
{
public:
#ifndef SCRIPTING_API
- virtual ~Thunderstorm()
- {}
+ Thunderstorm(_Thunderstorm* thunderstorm);
+ ~Thunderstorm();
#endif
/**
* Start playing thunder and lightning at configured interval
*/
#endif
/**
* Start playing thunder and lightning at configured interval
*/
- v
irtual void start() = 0
;
-
+ v
oid start()
;
+
/**
* Stop playing thunder and lightning at configured interval
*/
/**
* Stop playing thunder and lightning at configured interval
*/
- v
irtual void stop() = 0
;
+ v
oid stop()
;
/**
* Play thunder
*/
/**
* Play thunder
*/
- v
irtual void thunder() = 0
;
+ v
oid thunder()
;
/**
* Play lightning, i.e. call flash() and electrify()
*/
/**
* Play lightning, i.e. call flash() and electrify()
*/
- v
irtual void lightning() = 0
;
+ v
oid lightning()
;
/**
* Display a nice flash
*/
/**
* Display a nice flash
*/
- v
irtual void flash() = 0
;
+ v
oid flash()
;
/**
* Electrify water throughout the whole sector for a short time
*/
/**
* Electrify water throughout the whole sector for a short time
*/
- virtual void electrify() = 0;
-
+ void electrify();
+#ifndef SCRIPTING_API
+ _Thunderstorm* thunderstorm;
+#endif
};
}
#endif
};
}
#endif
-