Home
last modified time | relevance | path

Searched refs:mObstacles (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java53 private final List<Obstacle> mObstacles; field in GameView
88 mObstacles = new ArrayList<Obstacle>(); in GameView()
333 mObstacles.clear();
381 int numObstacles = mObstacles.size();
383 final Obstacle obstacle = mObstacles.get(i);
385 mObstacles.remove(i);
395 final Obstacle obstacle = mObstacles.get(j);
406 final Obstacle obstacle = mObstacles.get(i);
416 OuterLoop: while (mObstacles.size() < MAX_OBSTACLES) {
457 mObstacles.add(obstacle);
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java67 private final List<Obstacle> mObstacles; field in GameView
90 mObstacles = new ArrayList<Obstacle>(); in GameView()
233 int numObstacles = mObstacles.size(); in onDraw()
235 final Obstacle obstacle = mObstacles.get(i); in onDraw()
311 mObstacles.clear(); in reset()
349 int numObstacles = mObstacles.size(); in step()
351 final Obstacle obstacle = mObstacles.get(i); in step()
353 mObstacles.remove(i); in step()
363 final Obstacle obstacle = mObstacles.get(j); in step()
375 final Obstacle obstacle = mObstacles.get(i); in step()
[all …]