Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Responsible to update shots
- */
- public void updateShots() {
- Iterator<Bullet> itr = mBullets.iterator();
- while(itr.hasNext()) {
- Bullet bullet = itr.next();
- bullet.update();
- if(bullet.isDead()) {
- bullet.recycle();
- itr.remove();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement