Home | History | Annotate | Download | only in controllersample

Lines Matching refs:bullet

48  * a bullet is fired or the ship crashes into an obstacle. Otherwise, the system
66 private final List<Bullet> mBullets;
89 mBullets = new ArrayList<Bullet>();
228 final Bullet bullet = mBullets.get(i);
229 bullet.draw(canvas);
340 final Bullet bullet = mBullets.get(i);
341 if (!bullet.step(tau)) {
361 final Bullet bullet = mBullets.get(i);
364 if (bullet.collidesWith(obstacle)) {
365 bullet.destroy();
646 // The ship actually determines the speed of the bullet, not the bullet
730 * Firing is a unique case where a ship creates a bullet. A bullet needs
736 Bullet bullet = new Bullet();
737 bullet.setPosition(getBulletInitialX(), getBulletInitialY());
738 bullet.setVelocity(getBulletVelocityX(),
740 mBullets.add(bullet);
944 * Gets the initial x coordinate for the bullet.
946 * @return the x coordinate of the bullet adjusted for the position and
954 * Gets the initial y coordinate for the bullet.
956 * @return the y coordinate of the bullet adjusted for the position and
964 * Returns the bullet speed Y component.
966 * @return adjusted Y component bullet speed for the velocity and
974 * Returns the bullet speed X component
976 * @return adjusted X component bullet speed for the velocity and
1052 private class Bullet extends Sprite {
1054 public Bullet() {