projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tux grows faster, stops growing when hit
[supertux.git]
/
src
/
object
/
powerup.hpp
diff --git
a/src/object/powerup.hpp
b/src/object/powerup.hpp
index
59922a7
..
4779db1
100644
(file)
--- a/
src/object/powerup.hpp
+++ b/
src/object/powerup.hpp
@@
-25,20
+25,18
@@
#include "collision_hit.hpp"
#include "physic.hpp"
#include "collision_hit.hpp"
#include "physic.hpp"
-class PowerUp : public MovingSprite
+class PowerUp : public MovingSprite
, private UsesPhysic
{
public:
PowerUp(const lisp::Lisp& lisp);
{
public:
PowerUp(const lisp::Lisp& lisp);
- virtual PowerUp* clone() const { return new PowerUp(*this); }
virtual void update(float elapsed_time);
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:
private:
- Physic physic;
std::string script;
bool no_physics;
};
#endif
std::string script;
bool no_physics;
};
#endif
-