summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/math_helper.h1
-rw-r--r--include/objects.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/math_helper.h b/include/math_helper.h
index 31e376c..f45e903 100644
--- a/include/math_helper.h
+++ b/include/math_helper.h
@@ -22,5 +22,6 @@ vec2f get_intersection_point(vec2f A, vec2f B, vec2f C, vec2f D);
box get_render_box_of_square(platform_window* window, vec3f position, vec3f size);
box get_box_of_square(vec3f position, vec3f size);
vec3f get_center_of_square(vec3f position, vec3f size);
+bool rect_contains_point(vec2 point, vec2 tl, vec2 br);
#endif \ No newline at end of file
diff --git a/include/objects.h b/include/objects.h
index 74cfcf0..2d91bab 100644
--- a/include/objects.h
+++ b/include/objects.h
@@ -53,6 +53,8 @@ object object_dict[OBJECT_END] = {
};
object get_object_at_tile(float x, float y);
+object* get_pobject_at_tile(float x, float y);
+object* get_object_at_tile_from_mapfile(float x, float y);
void create_objects();
void add_object(object obj);
void draw_objects(platform_window* window);