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
20 /* Collision objects */
34 bool rectcollision(base_type* one, base_type* two);
35 bool rectcollision_offset(base_type* one, base_type* two, float off_x, float off_y);
37 void collision_swept_object_map(base_type* old, base_type* current);
38 bool collision_object_map(base_type* object);
40 /** Return a pointer to the tile at the given x/y coordinates */
41 Tile* gettile(float x, float y);
43 // Some little helper function to check for tile properties
44 bool issolid(float x, float y);
45 bool isbrick(float x, float y);
46 bool isice(float x, float y);
47 bool isfullbox(float x, float y);
49 #endif /*SUPERTUX_COLLISION_H*/