Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java310 Bullet bullet = new Bullet();
311 bullet.setPosition(mShip.getBulletInitialX(), mShip.getBulletInitialY());
312 bullet.setVelocity(mShip.getBulletVelocityX(mBulletSpeed),
314 mBullets.add(bullet);
372 final Bullet bullet = mBullets.get(i);
373 if (!bullet.step(tau)) {
393 final Bullet bullet = mBullets.get(i);
396 if (bullet.collidesWith(obstacle)) {
397 bullet.destroy();
473 final Bullet bullet = mBullets.get(i);
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java228 final Bullet bullet = mBullets.get(i); in onDraw() local
229 bullet.draw(canvas); in onDraw()
340 final Bullet bullet = mBullets.get(i); in step() local
341 if (!bullet.step(tau)) { in step()
361 final Bullet bullet = mBullets.get(i); in step() local
364 if (bullet.collidesWith(obstacle)) { in step()
365 bullet.destroy(); in step()
736 Bullet bullet = new Bullet(); in fire() local
737 bullet.setPosition(getBulletInitialX(), getBulletInitialY()); in fire()
738 bullet.setVelocity(getBulletVelocityX(), in fire()
[all …]