X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/4cb2d309b35bc7acc33483bdcd0af2a749206369..eb0884ecd703881e43b1c34ac04e0d49dbab4c38:/badge/jumpnrun/collision.h diff --git a/badge/jumpnrun/collision.h b/badge/jumpnrun/collision.h index 65016e9..405a4f4 100644 --- a/badge/jumpnrun/collision.h +++ b/badge/jumpnrun/collision.h @@ -6,15 +6,15 @@ #include "../util/rectangle.h" #include -void collision_displace(vec2d *desired_pos, - jumpnrun_moveable *current, - rectangle const *obstacle, - vec2d *inertia_mod); +uint8_t collision_displace(vec2d *desired_pos, + jumpnrun_moveable *current, + rectangle const *obstacle, + vec2d *inertia_mod); -void collisions_tiles_displace(vec2d *desired_position, - jumpnrun_moveable *thing, - jumpnrun_level const *level, - jumpnrun_tile_range const *visible_tiles, - vec2d *inertia_mod); +bool collisions_tiles_displace(vec2d *desired_position, + jumpnrun_moveable *thing, + jumpnrun_level const *level, + jumpnrun_tile_range const *visible_tiles, + vec2d *inertia_mod); #endif