3 #include "invisible_block.h"
5 #include "special/sprite.h"
6 #include "special/sprite_manager.h"
7 #include "video/drawing_context.h"
9 InvisibleBlock::InvisibleBlock(const Vector& pos)
10 : Block(pos, sprite_manager->create("invisibleblock")), visible(false)
16 InvisibleBlock::draw(DrawingContext& context)
19 sprite->draw(context, get_pos(), LAYER_OBJECTS);
23 InvisibleBlock::hit(Player& )
28 sprite->set_action("empty");
29 SoundManager::get()->play_sound(IDToSound(SND_BRICK));