-#include "oneup.h"
-#include "resources.h"
-#include "player.h"
-#include "player_status.h"
-#include "sector.h"
-#include "sprite/sprite_manager.h"
-#include "video/drawing_context.h"
-
-OneUp::OneUp(const Vector& pos)
-{
- bbox.set_pos(pos);
- bbox.set_size(32, 32);
- sprite = sprite_manager->create("1up");
- physic.set_velocity(100, 400);
-}
-
-OneUp::~OneUp()
+#include "oneup.hpp"
+#include "resources.hpp"
+#include "player.hpp"
+#include "player_status.hpp"
+#include "sector.hpp"
+#include "level.hpp"
+#include "statistics.hpp"
+#include "video/drawing_context.hpp"
+
+OneUp::OneUp(const Vector& pos, Direction direction)
+ : MovingSprite(pos, "images/powerups/1up/1up.sprite", LAYER_FLOATINGOBJECTS, COLGROUP_TOUCHABLE)