/*******************************************************************
 Name: Trevor Spalt
 Date: March 12, 2007
 Section: 2
 Lab: PA2
/*******************************************************************
 * This enum class simply makes a enum type for each of the four suits.
 * This allows the deck method to use these four different types 
 * efficiently
 */
   public class Card
   {
      private Rank rank;
      private Suit suit;		
   	
   	/*
   	* The cunstructor assigns a rank and suit to each card that is
		* called.
		*
		* @param r - the rank of a card
		* @param s - the suit of a card
   	*/
  		public Card(Rank r, Suit s)
		{
			rank = r;
			suit = s;
		} 
		
		/*
   	* This method simply returns the number of points assgned to a given
		* rank.
		*
		* @return rank.getPoints() - returns the point value of a rank
   	*/
		public int getPoints()
		{
			return rank.getPoints();
		}
		
		/*
   	* This method returns the name of the suit.
		*
		* @return suit - returns the suit value of the card
   	*/
		public Suit getSuit()
		{
			return suit;
		}
		
		/*
   	* The toString method just prints out the rank and suit of the
		* card object
		*
		* @return - returns the rank and suit
   	*/
      public String toString()
      {
			return rank + " of " + suit;
      }// end toString
   }// end Class