replaced bell object with firefly, renamed all hooks back to bell. Changed phone...
[supertux.git] / src / object / invisible_block.cpp
index 3231b01..db3408a 100644 (file)
 
 #include <config.h>
 
-#include "invisible_block.h"
-#include "resources.h"
-#include "sprite/sprite.h"
-#include "sprite/sprite_manager.h"
-#include "video/drawing_context.h"
-#include "object_factory.h"
+#include "invisible_block.hpp"
+#include "resources.hpp"
+#include "sprite/sprite.hpp"
+#include "sprite/sprite_manager.hpp"
+#include "video/drawing_context.hpp"
+#include "audio/sound_manager.hpp"
+#include "object_factory.hpp"
 
 InvisibleBlock::InvisibleBlock(const Vector& pos)
-  : Block(sprite_manager->create("invisibleblock")), visible(false)
+  : Block(sprite_manager->create("images/objects/bonus_block/invisibleblock.sprite")), visible(false)
 {
   bbox.set_pos(pos);
   flags &= ~FLAG_SOLID;
+  set_group(COLGROUP_MOVING);
 }
 
 void
@@ -48,9 +50,10 @@ InvisibleBlock::hit(Player& )
     return;
 
   sprite->set_action("empty");
-  sound_manager->play_sound("brick");
+  sound_manager->play("sounds/brick.wav");
   start_bounce();
   flags |= FLAG_SOLID;
+  set_group(COLGROUP_STATIC);
   visible = true;
 }