summaryrefslogtreecommitdiff
path: root/src/arena.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arena.c')
-rw-r--r--src/arena.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arena.c b/src/arena.c
index 760c51b..b762937 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -139,6 +139,17 @@ void eventArena(arena_t *arena)
eventTimer(arena->listTimer);
}
+int isConflictWithObjectInArena(arena_t *arena, int x, int y, int w, int h)
+{
+ if( isConflictWithListWall(arena->listWall, x, y, w, h) ||
+ isConflictWithListPipe(arena->listPipe, x, y, w, h) )
+ {
+ return 1;
+ }
+
+ return 0;
+}
+
void destroyArena(arena_t *p)
{
destroyListItem(p->listTux, destroyTux);