Corrected collition with bag of money
[supertux.git] / src / collision.h
1 // C Interface: collision
2 //
3 // Description: 
4 //
5 //
6 // Author: Tobias Glaesser <tobi.web@web.de>, (C) 2004
7 //
8 // Copyright: See COPYING file that comes with this distribution
9 //
10 //
11
12 #ifndef SUPERTUX_COLLISION_H
13 #define SUPERTUX_COLLISION_H
14
15 #include "type.h"
16
17 /* Collision objects */
18 enum
19 {
20   CO_BULLET,
21   CO_BADGUY,
22   CO_BSOD,
23   CO_PLAYER
24 };
25
26 int rectcollision(base_type* one, base_type* two);
27 int rectcollision_offset(base_type* one, base_type* two, float off_x, float off_y);
28
29 /* Checks for all possible collisions.
30    And calls the collision_handlers, which the collision_objects provide for this case (or not). */
31 void collision_handler();
32
33 #endif /*SUPERTUX_COLLISION_H*/
34