/*     */   public void updateUnits(Graphics g)
/*     */   {
/* 707 */     for (int i = 0; i < units.size(); i++) {
/* 708 */       Unit u = (Unit)units.get(i);
/* 709 */       if (!u.alive) {
/* 710 */         units.remove(u);
/*     */       }
/*     */       else {
/* 713 */         g.drawImage(u.getImage(), u.getX() + offsetX, u.getY() + 
/* 714 */           offsetY, this);
/* 715 */         if (this.debugMode) {
/* 716 */           g.drawRect(u.collision.x + offsetX, 
/* 717 */             u.collision.y + offsetY, u.collision.width, 
/* 718 */             u.collision.height);
/* 719 */           if (activeClass == u) {
/* 720 */             g.drawPolygon(u.fieldUp);
/* 721 */             g.drawPolygon(u.fieldDown);
/* 722 */             g.drawPolygon(u.fieldLeft);
/* 723 */             g.drawPolygon(u.fieldRight);
/*     */           }
/*     */         }
/*     */       }
/*     */     }
/*     */   }