class Player {
    private int x, y; // 玩家位置
    private int aimX, aimY; // 玩家瞄准的方向

    public Player(int x, int y) {
        this.x = x;
        this.y = y;
        this.aimX = x;
        this.aimY = y;
    }

    public void updateAim(int targetX, int targetY, int smoothFactor) {
        // 平滑移动瞄准方向
        aimX += (targetX - aimX) / smoothFactor;
        aimY += (targetY - aimY) / smoothFactor;
    }

    public int getAimX() {
        return aimX;
    }

    public int getAimY() {
        return aimY;
    }
}

class Target {
    private int x, y; // 目标位置

    public Target(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }
}