Class CardShading

java.lang.Object
  |
  +--CardShading

public class CardShading
extends Object

CardShading stores a single shading to be used in the SetMaster game.

Version:
Jan. 2004
Author:
David Kay

Field Summary
static int EMPTY
           
static int FILLED
           
static int STRIPED
           
 
Constructor Summary
CardShading(int shading)
          Constructor for objects of class SetShading.
 
Method Summary
 boolean equals(Object o)
          Returns true if and only if this object represents the same shading as o
static int getFirst()
           
static int getLast()
           
 int toInt()
           
 String toString()
          Returns simple text giving the Shading in English.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final int EMPTY
See Also:
Constant Field Values

FILLED

public static final int FILLED
See Also:
Constant Field Values

STRIPED

public static final int STRIPED
See Also:
Constant Field Values
Constructor Detail

CardShading

public CardShading(int shading)
Constructor for objects of class SetShading. Shading must be SetShading.SOLID, SetShading.LINED or CardShading.EMPTY. These shadings are adjacent int values between getFirst() and getLast() inclusive.

Method Detail

equals

public boolean equals(Object o)
Returns true if and only if this object represents the same shading as o

Overrides:
equals in class Object
Returns:
True if and only if this object represents the same shading as o

getFirst

public static int getFirst()

getLast

public static int getLast()

toInt

public int toInt()

toString

public String toString()
Returns simple text giving the Shading in English.

Overrides:
toString in class Object
Returns:
The shading in English.