oops forgot 2 files
[supertux.git] / src / badguy / badguy.hpp
index 9373177..6980ba9 100644 (file)
@@ -61,6 +61,9 @@ public:
   virtual HitResponse collision(GameObject& other,
       const CollisionHit& hit);
 
+  /** Called when a collision with tile with special attributes occured */
+  virtual void collision_tile(uint32_t tile_attributes);
+
   /** Set the badguy to kill/falling state, which makes him falling of the
    * screen (his sprite is turned upside-down)
    */
@@ -144,7 +147,11 @@ protected:
    * after being deactivated.
    */
   bool is_offscreen();
-  
+  /**
+   * Checks if the badguy may fall off a platform if continuing a given movement.
+   */
+  bool may_fall_off_platform();
+
   Vector start_position;
 
   Direction dir;