|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGameField.Shape
public class Shape
Class Shape Represents the shape of a card
| Field Summary | |
|---|---|
static int |
BLUE
|
private int |
color
|
static int |
EMPTY
|
static int |
FULL
|
static int |
HATCHED
|
static int |
ONDULED_RECT
|
static int |
ORANGE
|
static int |
OVAL
|
private int |
pattern
|
static int |
RECTANGLE
|
static int |
RED
|
private int |
type
|
| Constructor Summary | |
|---|---|
Shape(int pattern,
int type,
int color)
|
|
| Method Summary | |
|---|---|
int |
getColor()
Get the value of color |
int |
getPattern()
Get the value of pattern |
int |
getType()
0 : rectangles 1 : ovals 2 : onduled rectangles |
void |
setColor(int value)
Set the value of color |
void |
setPattern(int value)
Set the value of pattern |
void |
setType(int value)
0 : rectangles 1 : ovals 2 : onduled rectangles |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BLUE
private int color
public static final int EMPTY
public static final int FULL
public static final int HATCHED
public static final int ONDULED_RECT
public static final int ORANGE
public static final int OVAL
private int pattern
public static final int RECTANGLE
public static final int RED
private int type
| Constructor Detail |
|---|
public Shape(int pattern,
int type,
int color)
throws GameFieldException
GameFieldException| Method Detail |
|---|
public int getColor()
public int getPattern()
public int getType()
public void setColor(int value)
public void setPattern(int value)
public void setType(int value)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||