GameField
Class Card

java.lang.Object
  extended by GameField.Card

public class Card
extends java.lang.Object

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

id

private int id

nbShapes

private int nbShapes

shape

private Shape shape
Constructor Detail

Card

public Card(Shape shape,
            int id,
            int nbShapes)
     throws GameFieldException
Constructeur

Parameters:
shape -
id -
nbShapes -
Throws:
GameFieldException
Method Detail

getId

public int getId()
Get the value of id

Returns:
the value of id

getNbShapes

public int getNbShapes()
Get the value of nbShapes

Returns:
the value of nbShapes

getShape

public Shape getShape()
Get the value of shape

Returns:
the value of shape

setId

public void setId(int value)
           throws GameFieldException
Set the value of id

Parameters:
value -
Throws:
GameFieldException

setNbShapes

public void setNbShapes(int value)
                 throws GameFieldException
Set the value of nbShapes

Parameters:
value -
Throws:
GameFieldException

setShape

public void setShape(Shape value)
              throws GameFieldException
Set the value of shape

Parameters:
value -
Throws:
GameFieldException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
représentation de l'objet