EndangeredMassa/ccg-engine — pull request #35 by xonev (2013-11-17 20:28:45+00:00)
Title: Draw to hand. Drag between hand and play area.

Cards are now drawn directly into the hand view. After that, it is possible to drag the card around in the hand view as well as drag cards between the hand view and the play area view.

Positioning should work like this:

* The card, when first drawn from the deck is put into the hand view.
* There are two containers in the game area -- the hand view and the play area view. (This can be expanded later, if needed.)
* If the card is dragged and then dropped outside of any containers (based on mouse position), it will be moved to the position closest to the "actual" dropped position in the container which it came from.
* If the card is dragged and then dropped in the same container, it will just be moved within that container.
* If the card is dragged and then dropped in a different container, it will be removed from the previous container and added to the new container and positioned in the new container.