first very unfinished and unpolished version of the intro
[supertux.git] / src / object / bell.cpp
index 26733f7..97ba802 100644 (file)
 //  02111-1307, USA.
 #include <config.h>
 
-#include "bell.h"
-#include "resources.h"
-#include "sprite/sprite_manager.h"
-#include "video/drawing_context.h"
-#include "player.h"
-#include "object_factory.h"
-#include "game_session.h"
-#include "sector.h"
+#include "bell.hpp"
+#include "resources.hpp"
+#include "sprite/sprite_manager.hpp"
+#include "video/drawing_context.hpp"
+#include "player.hpp"
+#include "object_factory.hpp"
+#include "game_session.hpp"
+#include "sector.hpp"
 
 Bell::Bell(const lisp::Lisp& lisp)
   : ringing(false)
@@ -34,7 +34,8 @@ Bell::Bell(const lisp::Lisp& lisp)
   lisp.get("x", bbox.p1.x);
   lisp.get("y", bbox.p1.y);
   bbox.set_size(32, 32);
-  sprite = sprite_manager->create("bell");
+  sprite = sprite_manager->create("images/objects/bell/bell.sprite");
+  set_group(COLGROUP_TOUCHABLE);
 }
 
 Bell::~Bell()
@@ -52,7 +53,7 @@ Bell::write(lisp::Writer& writer)
 }
 
 void
-Bell::action(float )
+Bell::update(float )
 {
 }