/*******************************************************************************
Author:				Rebecca Hasti, hasti@cs.wisc.edu
					copyright 2000, all rights reserved
Course:				CS 302, Summer 2000

Compiler:			Metrowerks CodeWarrior (JDK 1.2)
Platform:			Windows NT 4.0 (or Windows 95)
*******************************************************************************/

/**
 * An object from the PlayingCard class is used to represent a playing card 
 * object.  A playing card has a suit and a face value.
 *
 * Bugs:	none known
 **/
class PlayingCard {

	////////////////////////////////////////
	// Data Members
	////////////////////////////////////////

	private String suit;  // the card's suit, e.g. hearts
	private int face;     // the card's face value, between 1 and 13
	
	////////////////////////////////////////
	// Constructors
	////////////////////////////////////////
	
	/**
	 * Constructs a card with the given suit and face value.
	 * Note: it is assumed that both the suit and the face value given have
	 * appropriate values; no error checking is done.
	 * 
	 * @param suitName the suit of the card
	 * @param faceValue the face value of the card, 1 <= face value <= 13
	 **/
	public PlayingCard(String suitName, int faceValue) {
		suit = suitName;
		face = faceValue;
	}

	////////////////////////////////////////
	// Public Methods
	//	String	getSuit()
	//	int	getFaceValue()
	////////////////////////////////////////
	
	/**
	 * Returns the card's suit.
	 * @return a String representing the card's suit
	 **/
	public String getSuit() {
		return suit;
	}

	/**
	 * Returns the card's face value.
	 * @return an int (between 1 and 13) representing the card's face value
	 **/
	public int getFaceValue() {
		return face;
	}

}
