Class Card

java.lang.Object
  |
  +--Card

public class Card
extends Object

Stores information for a single card .

Version:
January 2004
Author:
Tim Corica

Constructor Summary
Card(CardColor color, CardShading shading, CardShape shape, int number)
          Constructor for objects of class Card
 
Method Summary
 CardColor getColor()
           
 int getNumber()
           
 CardShading getShading()
           
 CardShape getShape()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Card

public Card(CardColor color,
            CardShading shading,
            CardShape shape,
            int number)
Constructor for objects of class Card

Method Detail

getColor

public CardColor getColor()
Returns:
the color of this card

getNumber

public int getNumber()
Returns:
the number of this card

getShading

public CardShading getShading()
Returns:
the number of this card

getShape

public CardShape getShape()
Returns:
the number of this card

toString

public String toString()
Overrides:
toString in class Object
Returns:
A string representation of this card