Tux can peek to the left and to the right as far as the camera would move in best...
[supertux.git] / src / object / ambient_sound.hpp
index 74d9c9d..2a58788 100644 (file)
 #include "resources.hpp"
 #include "player.hpp"
 #include "script_interface.hpp"
+#include "scripting/ambient_sound.hpp"
 
 class SoundSource;
 
-class AmbientSound : public GameObject, public ScriptInterface
+class AmbientSound : public GameObject, public ScriptInterface, public Scripting::AmbientSound
 {
 public:
   AmbientSound(const lisp::Lisp& lisp);
   AmbientSound(Vector pos, float factor, float bias, float vol, std::string file);
   ~AmbientSound();
-
+  
   void set_pos(Vector newpos)
   {
     position=newpos;
@@ -65,6 +66,13 @@ public:
   {
     return position;
   }
+
+  // --- Scripting Interface ---
+
+  void set_pos(float x, float y);
+  float get_pos_x();
+  float get_pos_y();
+
 protected:
   virtual void hit(Player& player);
   virtual void update(float time);