Actually I realize I already have a list of players on clientside to keep track of Players that are logged in, I think I have an idea of how to do this, I will prob come back soon with problems though :-X
hmm right so I guess you can send any object, I was just missing a default no parameter constructor.
I have a design question, how would you handle telling the user what cards he has, and then telling the server which card he wants to play.
I was thinking of re creating the Player object with a list (Hand) which would hold the cards the player has, so server side it will add 13 cards to the Players hand and then tell the client which cards were added and then the client will add them and display them. Then the client side will display the cards on the board and if one of them is clicked then it will tell the server, the server will check and see if the player actually has that card and then notify the game that the user played the card. Also this method would require me to have a “Player object” created for each client also, but I believe I should keep the client as thin as possible, basically just being a Visual of what is happening on the server
Is this how you would do it?