|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsjrd.tricktakinggame.remotable.Announce
sjrd.tricktakinggame.rules.whist.WhistAnnounce
sjrd.tricktakinggame.rules.whist.announces.GapAnnounce
public class GapAnnounce
Annonce Trou (royal ou non)
Field Summary | |
---|---|
private boolean |
royal
Indique si c'est un trou royal |
private Card |
stopgapCard
Carte qui doit boucher le trou |
Constructor Summary | |
---|---|
GapAnnounce(Player aPlayer,
Card aStopgapCard)
Crée l'annonce |
|
GapAnnounce(Player aPlayer,
String aID,
String aName,
boolean aRoyal,
Card aStopgapCard)
Crée l'annonce |
Method Summary | |
---|---|
static GapAnnounce |
checkForGap(Auction auction)
Teste s'il y a un trou |
private static Card |
findStopgapCard(Player player)
Détermine la carte qui doit boucher le trou |
int |
getOrderValue()
Valeur d'ordre |
Card |
getStopgapCard()
Carte qui doit bouché le trou |
boolean |
isRoyal()
Indique si c'est un trou royal |
void |
makeAvailableAnnounces(WhistAuction auction,
Player player,
List<WhistAnnounce> announces)
Construit les annonces disponibles après cette annonce Cette méthode peut ajouter et/ou retirer des annonces possibles à la liste announces passée en paramètre. |
private static String |
makeID(Card stopgapCard)
Construit l'ID d'une annonce Trou |
private static String |
makeName(Card stopgapCard)
Construit le nom d'une annonce Trou |
Methods inherited from class sjrd.tricktakinggame.rules.whist.WhistAnnounce |
---|
canOverride, equals, getPartner, getPlayer, replaced, selected |
Methods inherited from class sjrd.tricktakinggame.remotable.Announce |
---|
getID, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private boolean royal
private Card stopgapCard
Constructor Detail |
---|
public GapAnnounce(Player aPlayer, String aID, String aName, boolean aRoyal, Card aStopgapCard)
aPlayer
- Joueur qui fait l'annonceaID
- ID de l'annonceaName
- Nom de l'annonceaRoyal
- true si c'est un trou royalaStopgapCard
- Carte qui doit boucher le troupublic GapAnnounce(Player aPlayer, Card aStopgapCard)
aPlayer
- Joueur qui fait l'annonceaStopgapCard
- Carte qui doit boucher le trouMethod Detail |
---|
private static Card findStopgapCard(Player player)
player
- Joueur qui fait l'annonce
private static String makeID(Card stopgapCard)
stopgapCard
- Carte qui doit boucher le trou
private static String makeName(Card stopgapCard)
stopgapCard
- Carte qui doit boucher le trou
public static GapAnnounce checkForGap(Auction auction)
auction
- Enchères
public boolean isRoyal()
public Card getStopgapCard()
public int getOrderValue()
getOrderValue
in class WhistAnnounce
public void makeAvailableAnnounces(WhistAuction auction, Player player, List<WhistAnnounce> announces)
Cette méthode peut ajouter et/ou retirer des annonces possibles à la liste announces passée en paramètre.
makeAvailableAnnounces
in class WhistAnnounce
auction
- Enchèreplayer
- Joueurannounces
- Liste des annonces
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |