projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git]
/
src
/
object
/
star.hpp
diff --git
a/src/object/star.hpp
b/src/object/star.hpp
index
d0eed7c
..
e3f4f04
100644
(file)
--- a/
src/object/star.hpp
+++ b/
src/object/star.hpp
@@
-22,18
+22,17
@@
#include "object/moving_sprite.hpp"
#include "physic.hpp"
#include "object/moving_sprite.hpp"
#include "physic.hpp"
+#include "direction.hpp"
-class Star : public MovingSprite
+class Star : public MovingSprite
, private UsesPhysic
{
public:
{
public:
- Star(const Vector& pos);
+ Star(const Vector& pos
, Direction direction = RIGHT
);
virtual Star* clone() const { return new Star(*this); }
virtual void update(float elapsed_time);
virtual Star* clone() const { return new Star(*this); }
virtual void update(float elapsed_time);
+ virtual void collision_solid(const CollisionHit& hit);
virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
-
-private:
- Physic physic;
};
#endif
};
#endif