A few thoughts on your story, Tomski.
First of all the swelling on your knee was probably a joint effusion - knees readily over produce joint fluid in the presence of injury or inflammation. This not only restricts movement but is also very painful, as you have discovered!
Second, it's possible that the ligament that ruptured was the medial patello-femoral ligament. It can come away from your knee cap with a piece of bone attached and could well be connected with a displacement of the kneecap. Just removing the bone fragment doesn't seem to be an altogether good way of treating it.
So thirdly, please check that the surgeon you are seeing is a knee surgeon and preferably one who specialises in sports injuries. Mostly you can check his name on a Google search and see his CV. If he's not, find out which orthopaedic surgeon at your local hospital is in this field and ask your GP to refer you to him instead. You'll be the better for it in the long run.