/*     */   public void update(Graphics g)
/*     */   {
/* 176 */     if (image == null) {
/* 177 */       image = createImage(getWidth(), getHeight());
/* 178 */       this.second = ((Graphics2D)image.getGraphics());
/*     */     }
/* 180 */     if ((state == Core.State.Pause) && (unitsDeployed)) {
/* 181 */       state = Core.State.Running;
/*     */     }
/* 183 */     if (state == Core.State.Running) {
/* 184 */       offsetY = -1 * activeClass.getY() + 240;
/*     */     }
/* 186 */     this.second.setColor(getBackground());
/* 187 */     this.second.fillRect(0, 0, getWidth(), getHeight());
/* 188 */     this.second.setColor(getForeground());
/* 189 */     paint(this.second);
/*     */ 
/* 191 */     g.drawImage(image, 0, 0, this);
/*     */   }