|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ninm.games.cardgames.belot.StateAdapter | +--org.ninm.games.cardgames.belot.PlayingState | +--org.ninm.games.cardgames.belot.SpecificTrumpState
This state represents the logic of a "Specific Trumps" game e.g. (Spades, Clubs, Hearts and Diamonds).
Field Summary | |
private Suit |
m_trumpSuit
|
Fields inherited from class org.ninm.games.cardgames.belot.PlayingState |
m_hand, m_isFirstHand, m_isFirstMove, m_trumpSuits |
Fields inherited from class org.ninm.games.cardgames.belot.StateAdapter |
m_belotEngine |
Constructor Summary | |
SpecificTrumpState(BelotEngine belotEngine)
Constructor for SpecificTrumpState. |
Method Summary | |
java.util.Set |
getAllowedCards()
returns the allowed cards that the current player can play |
Methods inherited from class org.ninm.games.cardgames.belot.PlayingState |
announceTrick, beats, beats, beats, findAnnouncedBelots, getAllowedTricks, getCardsThatBeat, getCardsThatBeat, getScore, isTrump, isTrump, playCard, removeBelot, removeConflictingTricks, start |
Methods inherited from class org.ninm.games.cardgames.belot.StateAdapter |
bidMade, getAllowedBids |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final Suit m_trumpSuit
Constructor Detail |
public SpecificTrumpState(BelotEngine belotEngine)
belotEngine
-
java.lang.RuntimeException
- if in debug mode and trump suit is nullMethod Detail |
public java.util.Set getAllowedCards()
State
getAllowedCards
in interface State
getAllowedCards
in class PlayingState
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |