X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/8a947d16e5132fd133d67c76468c6323881de221..6ea183c90f3283783ea2af6211e6cda65126df4d:/badge/jumpnrun/collision.h diff --git a/badge/jumpnrun/collision.h b/badge/jumpnrun/collision.h index 1fe6462..405a4f4 100644 --- a/badge/jumpnrun/collision.h +++ b/badge/jumpnrun/collision.h @@ -1,21 +1,20 @@ #ifndef INCLUDED_COLLISION_H #define INCLUDED_COLLISION_H +#include "moveable.h" #include "jumpnrun.h" -#include +#include "../util/rectangle.h" #include -void collision_displace(vec2d *desired_pos, - rectangle const *current, - rectangle const *obstacle, - vec2d *inertia, - bool *touching_ground); +uint8_t collision_displace(vec2d *desired_pos, + jumpnrun_moveable *current, + rectangle const *obstacle, + vec2d *inertia_mod); -void collisions_tiles_displace(vec2d *desired_position, - rectangle const *current, +bool collisions_tiles_displace(vec2d *desired_position, + jumpnrun_moveable *thing, jumpnrun_level const *level, jumpnrun_tile_range const *visible_tiles, - vec2d *inertia, - bool *touching_ground); + vec2d *inertia_mod); #endif