/***********************
*This class takes the name
*of the player and their
*hand and make it available
*to driver
*@author - Bryan Wiseman
*@version - 1
************************/
//Date: 3/18/07
//Section: 1
//PA: 2

public class Player
{
	String player;
	BridgeHand hand;
	//Player constructor
	public Player( String player1, BridgeHand hand1)
	{
		player = player1;
		hand = hand1;
	}
	/**********
	*Method returns
	*the name of player
	*@return - player's name
	**********/
	public String getName()
	{
		return player;
	}
	/************
	*Method returns
	*the hand of player
	*@return - hand of cards
	*************/
	public BridgeHand getHand()
	{
		return hand;
	}
	/*****************
	*This method adds the 
	*players name to the BridgeHand
	*string and outputs it
	*@return - The output string with name
	*******************/
	public String toString()
	{
		String output;	//the output of BridgeHand and the Name
		
		output = "Name: " + player + "\n\n";
		output = output + hand.toString();
		
		return output;
	} 
}