fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / badguy / willowisp.hpp
index ce45ced..51bdc1f 100644 (file)
@@ -1,5 +1,5 @@
 //  $Id$
-// 
+//
 //  SuperTux - "Will-O-Wisp" Badguy
 //  Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
 //
@@ -12,7 +12,7 @@
 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 //  GNU General Public License for more details.
-// 
+//
 //  You should have received a copy of the GNU General Public License
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
@@ -22,7 +22,6 @@
 #define __WILLOWISP_H__
 
 #include "badguy.hpp"
-#include "audio/managed_sound_source.hpp"
 
 class WillOWisp : public BadGuy
 {
@@ -38,8 +37,6 @@ public:
 
   virtual void draw(DrawingContext& context);
 
-  virtual WillOWisp* clone() const { return new WillOWisp(*this); }
-
 protected:
   HitResponse collision_player(Player& player, const CollisionHit& hit);
 
@@ -52,8 +49,7 @@ private:
   std::string target_sector;
   std::string target_spawnpoint;
 
-  ManagedSoundSource soundSource;
+  std::auto_ptr<SoundSource> sound_source;
 };
 
 #endif
-