/*     */   public void moveToBest()
/*     */   {
/* 211 */     Random r = new Random();
/* 212 */     if ((Math.abs(this.x - this.bestPosX) < 2) && (Math.abs(this.y - this.bestPosY) < 2)) {
/* 213 */       this.speedX = 0.0F;
/* 214 */       this.speedY = 0.0F;
/* 215 */       setMoveTo(false);
/* 216 */       return;
/*     */     }
/*     */ 
/* 219 */     if (this.x - this.bestPosX > 0)
/* 220 */       this.speedX = -1.0F;
/*     */     else {
/* 222 */       this.speedX = 1.0F;
/*     */     }
/*     */ 
/* 225 */     if (this.y - this.bestPosY > 0)
/* 226 */       this.speedY = -1.0F;
/*     */     else {
/* 228 */       this.speedY = 1.0F;
/*     */     }
/*     */ 
/* 231 */     if (this.x - this.bestPosX > 40)
/* 232 */       this.speedX = (-2 + r.nextInt(2) * -1);
/* 233 */     else if (this.x - this.bestPosX < -40) {
/* 234 */       this.speedX = (2 + r.nextInt(2));
/*     */     }
/*     */ 
/* 237 */     if (this.y - this.bestPosY > 40)
/* 238 */       this.speedY = (-2 + r.nextInt(2) * -1);
/* 239 */     else if (this.y - this.bestPosY < -40)
/* 240 */       this.speedX = (2 + r.nextInt(2));
/*     */   }