/*     */   private void checkDirection(int tx, int ty)
/*     */   {
/* 153 */     if (Core.activeClass == this)
/* 154 */       if (this.y < ty) {
/* 155 */         if (this.x > tx) {
/* 156 */           if (Math.abs(this.x - tx) > Math.abs(this.y - ty))
/* 157 */             this.image = Core.unitDirections.getTileImage(3);
/*     */           else {
/* 159 */             this.image = Core.unitDirections.getTileImage(2);
/*     */           }
/*     */         }
/* 162 */         else if (Math.abs(this.x - tx) > Math.abs(this.y - ty))
/* 163 */           this.image = Core.unitDirections.getTileImage(1);
/*     */         else {
/* 165 */           this.image = Core.unitDirections.getTileImage(2);
/*     */         }
/*     */ 
/*     */       }
/* 169 */       else if (this.x > tx) {
/* 170 */         if (Math.abs(this.x - tx) > Math.abs(this.y - ty))
/* 171 */           this.image = Core.unitDirections.getTileImage(3);
/*     */         else {
/* 173 */           this.image = Core.unitDirections.getTileImage(0);
/*     */         }
/*     */       }
/* 176 */       else if (Math.abs(this.x - tx) > Math.abs(this.y - ty))
/* 177 */         this.image = Core.unitDirections.getTileImage(1);
/*     */       else
/* 179 */         this.image = Core.unitDirections.getTileImage(0);
/*     */   }