Ice bullets ricochet again. Also made Igel ignore ice bullets.
[supertux.git] / src / object / bullet.hpp
index 90547a3..b18e375 100644 (file)
@@ -35,6 +35,13 @@ public:
   void draw(DrawingContext& context);
   void collision_solid(const CollisionHit& hit);
   HitResponse collision(GameObject& other, const CollisionHit& hit);
+
+  /**
+   * Makes bullet bounce off an object (that got hit).
+   * To be called by the collision handler of that object.
+   * Note that the @c hit parameter is filled in as perceived by the object, not by the bullet.
+   */
+  void ricochet(GameObject& other, const CollisionHit& hit);
   
   BonusType get_type()
   {