|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGameField.Cards
public class Cards
Class Cards Represents a set of cards
| Field Summary | |
|---|---|
private static java.util.Random |
alea
|
private java.util.Vector<Card> |
cards
|
(package private) static int |
TAILLE_PAQUET
|
| Constructor Summary | |
|---|---|
Cards(int[] type,
int[] color,
int[] pattern)
|
|
| Method Summary | |
|---|---|
Card |
getCardById(int id)
Chercher la carte ayant id dans paquet Si carte non presente renvoie erreur (carte non presente) sinon recuperer la carte, la supprimer du paquet et renvoyer la carte |
java.util.Vector<Card> |
getCards()
Get the value of cards |
Card |
nextCard()
Returns a random card and REMOVE it from the set |
void |
setCards(java.util.Vector<Card> value)
Set the value of cards |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static java.util.Random alea
private java.util.Vector<Card> cards
static int TAILLE_PAQUET
| Constructor Detail |
|---|
public Cards(int[] type,
int[] color,
int[] pattern)
throws GameFieldException
GameFieldException| Method Detail |
|---|
public Card getCardById(int id)
throws GameFieldException
GameFieldExceptionpublic java.util.Vector<Card> getCards()
public Card nextCard()
throws GameFieldException
GameFieldException
public void setCards(java.util.Vector<Card> 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 | ||||||||