Searched refs:obstacle (Results 1 – 2 of 2) sorted by relevance
383 final Obstacle obstacle = mObstacles.get(i);384 if (!obstacle.step(tau)) {395 final Obstacle obstacle = mObstacles.get(j);396 if (bullet.collidesWith(obstacle)) {398 obstacle.destroy();406 final Obstacle obstacle = mObstacles.get(i);407 if (mShip.collidesWith(obstacle)) {409 obstacle.destroy();453 Obstacle obstacle = new Obstacle();454 obstacle.setPosition(positionX, positionY);[all …]
235 final Obstacle obstacle = mObstacles.get(i); in onDraw() local236 obstacle.draw(canvas); in onDraw()351 final Obstacle obstacle = mObstacles.get(i); in step() local352 if (!obstacle.step(tau)) { in step()363 final Obstacle obstacle = mObstacles.get(j); in step() local364 if (bullet.collidesWith(obstacle)) { in step()366 obstacle.destroy(); in step()375 final Obstacle obstacle = mObstacles.get(i); in step() local379 if (currentShip.collidesWith(obstacle)) { in step()381 obstacle.destroy(); in step()[all …]