Searched refs:bullet (Results 1 – 2 of 2) sorted by relevance
310 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 …]
228 final Bullet bullet = mBullets.get(i); in onDraw() local229 bullet.draw(canvas); in onDraw()340 final Bullet bullet = mBullets.get(i); in step() local341 if (!bullet.step(tau)) { in step()361 final Bullet bullet = mBullets.get(i); in step() local364 if (bullet.collidesWith(obstacle)) { in step()365 bullet.destroy(); in step()736 Bullet bullet = new Bullet(); in fire() local737 bullet.setPosition(getBulletInitialX(), getBulletInitialY()); in fire()738 bullet.setVelocity(getBulletVelocityX(), in fire()[all …]