Lines Matching refs:obstacle
235 final Obstacle obstacle = mObstacles.get(i); in onDraw() local
236 obstacle.draw(canvas); in onDraw()
351 final Obstacle obstacle = mObstacles.get(i); in step() local
352 if (!obstacle.step(tau)) { in step()
363 final Obstacle obstacle = mObstacles.get(j); in step() local
364 if (bullet.collidesWith(obstacle)) { in step()
366 obstacle.destroy(); in step()
375 final Obstacle obstacle = mObstacles.get(i); in step() local
379 if (currentShip.collidesWith(obstacle)) { in step()
381 obstacle.destroy(); in step()
441 Obstacle obstacle = new Obstacle(); in step() local
442 obstacle.setPosition(positionX, positionY); in step()
443 obstacle.setSize(size); in step()
444 obstacle.setVelocity(velocityX, velocityY); in step()
445 mObstacles.add(obstacle); in step()