Lines Matching defs:Obstacle
48 * a bullet is fired or the ship crashes into an obstacle. Otherwise, the system
67 private final List<Obstacle> mObstacles;
90 mObstacles = new ArrayList<Obstacle>();
235 final Obstacle obstacle = mObstacles.get(i);
236 obstacle.draw(canvas);
351 final Obstacle obstacle = mObstacles.get(i);
352 if (!obstacle.step(tau)) {
363 final Obstacle obstacle = mObstacles.get(j);
364 if (bullet.collidesWith(obstacle)) {
366 obstacle.destroy();
375 final Obstacle obstacle = mObstacles.get(i);
379 if (currentShip.collidesWith(obstacle)) {
381 obstacle.destroy();
417 // If the obstacle is too close to any ships, we don't want to
430 // if the position is safe, add the obstacle and reset the retry
434 // we can add the obstacle now since it isn't close to any ships
441 Obstacle obstacle = new Obstacle();
442 obstacle.setPosition(positionX, positionY);
443 obstacle.setSize(size);
444 obstacle.setVelocity(velocityX, velocityY);
445 mObstacles.add(obstacle);
1093 private class Obstacle extends Sprite {