|
|||||||||||
| 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.NoTrumpsState
This state represents the logic of the "No Trumps" game
| Field Summary |
| 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 | |
NoTrumpsState(BelotEngine belotEngine)
Constructor for NoTrumpsState. |
|
| Method Summary | |
java.util.Set |
getAllowedCards()
returns the allowed cards that the current player can play |
java.util.Set |
getAllowedTricks()
returns the allowed tricks that the current player can announce |
| Methods inherited from class org.ninm.games.cardgames.belot.PlayingState |
announceTrick, beats, beats, beats, findAnnouncedBelots, 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 |
| Constructor Detail |
public NoTrumpsState(BelotEngine belotEngine)
belotEngine - | Method Detail |
public java.util.Set getAllowedCards()
State
getAllowedCards in interface StategetAllowedCards in class PlayingStatepublic java.util.Set getAllowedTricks()
State
getAllowedTricks in interface StategetAllowedTricks in class PlayingState
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||