line |
true |
false |
branch |
54
|
0 |
9 |
if (ref $_ eq 'ARRAY')
|
84
|
610 |
136 |
if ($circle->intersect_rect($rect))
|
101
|
0 |
1046 |
if $x < 0
|
102
|
0 |
1046 |
if $x >= $self->cells_x
|
114
|
0 |
8 |
if $rx < 0
|
115
|
0 |
8 |
if $ry < 0
|
116
|
0 |
8 |
if $rx > $self->w
|
117
|
1 |
7 |
if $ry > $self->h
|
144
|
0 |
30 |
if $done->contains($ent)
|
146
|
30 |
0 |
if $circle->intersect($ent)
|
158
|
0 |
4 |
if $done->contains($ent)
|
160
|
4 |
0 |
if $rect->intersect($ent)
|
177
|
0 |
63 |
if $cell_x < 0 or $cell_y < 0 or $cell_x >= $self->cells_x or $cell_y >= $self->cells_y
|
203
|
0 |
0 |
if $y < 0
|
204
|
0 |
0 |
if $y > $self->cells_y
|
206
|
0 |
0 |
if $x < 0
|
207
|
0 |
0 |
if $x > $self->cells_x
|
208
|
0 |
0 |
unless $self->table->[$y][$x]
|
210
|
0 |
0 |
if $done->contains($_)
|
213
|
0 |
0 |
unless $collision
|
214
|
0 |
0 |
if (not $best_collision or $collision->time < $best_collision->time)
|
241
|
45 |
20 |
unless $self->table->[$y][$x]
|
242
|
4 |
16 |
unless Collision::2D::dynamic_collision($rect, Collision::2D::hash2rect({'x', $self->x + $x * $s, 'y', $self->y + $y * $s, 'w', $s, 'h', $s}))
|
249
|
4 |
12 |
if $done->contains($_)
|
252
|
0 |
12 |
unless $collision
|
253
|
12 |
0 |
if (not $best_collision or $collision->time < $best_collision->time)
|
281
|
257 |
11 |
unless $self->table->[$y][$x]
|
282
|
2 |
9 |
unless Collision::2D::dynamic_collision($circle, Collision::2D::hash2rect({'x', $self->x + $x * $s, 'y', $self->y + $y * $s, 'w', $s, 'h', $s}))
|
289
|
0 |
9 |
if $done->contains($_)
|
292
|
3 |
6 |
unless $collision
|
293
|
6 |
0 |
if (not $best_collision or $collision->time < $best_collision->time)
|