Advertisement
FoguinhoS

Untitled

Jan 30th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. /*
  2. * Responsible to update shots
  3. */
  4. public void updateShots() {
  5. Iterator<Bullet> itr = mBullets.iterator();
  6. while(itr.hasNext()) {
  7. Bullet bullet = itr.next();
  8. bullet.update();
  9. if(bullet.isDead()) {
  10. bullet.recycle();
  11. itr.remove();
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement