Подскажите в чем проблема? void move() { if ( isFrozen == false){ dx = getSpeed()*Math.cos(getDirection()); dy = getSpeed()*Math.sin(getDirection()); x = getX()+dx; y = getY()+dy; }else { this.x = getX(); this.y = getY(); } }