|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGameField.Card
public class Card
Class Card Represents a card
| Field Summary | |
|---|---|
private int |
id
|
private int |
nbShapes
|
private Shape |
shape
|
| Constructor Summary | |
|---|---|
Card(Shape shape,
int id,
int nbShapes)
Constructeur |
|
| Method Summary | |
|---|---|
int |
getId()
Get the value of id |
int |
getNbShapes()
Get the value of nbShapes |
Shape |
getShape()
Get the value of shape |
void |
setId(int value)
Set the value of id |
void |
setNbShapes(int value)
Set the value of nbShapes |
void |
setShape(Shape value)
Set the value of shape |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int id
private int nbShapes
private Shape shape
| Constructor Detail |
|---|
public Card(Shape shape,
int id,
int nbShapes)
throws GameFieldException
shape - id - nbShapes -
GameFieldException| Method Detail |
|---|
public int getId()
public int getNbShapes()
public Shape getShape()
public void setId(int value)
throws GameFieldException
value -
GameFieldException
public void setNbShapes(int value)
throws GameFieldException
value -
GameFieldException
public void setShape(Shape value)
throws GameFieldException
value -
GameFieldExceptionpublic 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 | ||||||||