/*
 * Created on Apr 6, 2005
 *
 */

/**
 * @author Nicole Sullivan
 *
 */
public class Figure {
	String nom;
	int points;
	int pointsTrump;
	
	public static Figure Sept 	= new Figure("7");
	public static Figure Huit 	= new Figure("8");
	public static Figure Neuf 	= new Figure("9");
	public static Figure Dix 	= new Figure("10");
	public static Figure Valet 	= new Figure("V");
	public static Figure Dame 	= new Figure("D");
	public static Figure Roi 	= new Figure("R");
	public static Figure As 	= new Figure("A");

	public Figure (String nomFigure){
		this.nom = nomFigure;
		if (this.nom == "7"){
			this.points = 0;
			this.pointsTrump = 0;
		}else if (this.nom == "8"){
			this.points = 0;
			this.pointsTrump = 0;
		}else if (this.nom == "9"){
			this.points = 0;
			this.pointsTrump = 14;
		}else if (this.nom == "10"){
			this.points = 10;
			this.pointsTrump = 10;
		}else if (this.nom == "V"){
			this.points = 2;
			this.pointsTrump = 20;
		}else if (this.nom == "D"){
			this.points = 3;
			this.pointsTrump = 3;
		}else if (this.nom == "R"){
			this.points = 4;
			this.pointsTrump = 4;
		}else if (this.nom == "A"){
			this.points = 11;
			this.pointsTrump = 11;
		}
	}
}
