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
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. |
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
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.
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.