/******************************
*This method reads the cards for
*the player to be able to use
*@author - Bryan Wiseman
*@version - 1
********************************/
//Date: 3/13/07
//Section:1
//PA: 2

public class Card
{
	
	
	Rank rank;	//rank value of card
	Suit suit;	//suit value of card
	
	
	/*******************
	*This method reads the
	*cards for the deck.
	*@param - playing card
	**********************/
	public Card(Rank rank, Suit suit)
	{
		this.rank = rank;
		this.suit = suit;	
	}
	/**************
	*Method returns
	*the point value
	*of card
	*@return - points
	****************/
	public int getPoints()
	{
		int output;	//the points value of card
		
		output = rank.getPoints();
		
		return output;
	}
	/***************
	*Method outputs String
	*of the rank and suit of
	*card in a String form
	*@return - card rank in suit in String
	****************/
	public String toString()
	{
		String output;	//the value of card in string
		
		output = rank + " of " + suit;
		
		return output;
	}
}	