1 // C Interface: collision
6 // Author: Tobias Glaesser <tobi.web@web.de>, (C) 2004
8 // Copyright: See COPYING file that comes with this distribution
12 #ifndef SUPERTUX_COLLISION_H
13 #define SUPERTUX_COLLISION_H
19 /* Collision objects */
33 bool rectcollision(base_type* one, base_type* two);
34 bool rectcollision_offset(base_type* one, base_type* two, float off_x, float off_y);
35 void collision_swept_object_map(base_type* old, base_type* current);
36 bool collision_object_map(base_type* object);
38 /* Checks for all possible collisions.
39 And calls the collision_handlers, which the collision_objects provide for this case (or not). */
40 void collision_handler();
42 /** Return a pointer to the tile at the given x/y coordinates */
43 Tile* gettile(float x, float y);
45 // Some little helper function to check for tile properties
46 bool issolid(float x, float y);
47 bool isbrick(float x, float y);
48 bool isice(float x, float y);
49 bool isfullbox(float x, float y);
51 #endif /*SUPERTUX_COLLISION_H*/