|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Card | |
org.ninm.games.cardgames | This package contains all the interfaces for a card game. |
org.ninm.games.cardgames.belot | This package contains the implementation of the Belot card game |
org.ninm.games.cardgames.common | Common classes and utilties used by card games. |
Uses of Card in org.ninm.games.cardgames |
Methods in org.ninm.games.cardgames that return Card | |
Card |
Deck.dealCard()
randomly removes a card from the deck and deals it out |
Methods in org.ninm.games.cardgames with parameters of type Card | |
boolean |
Engine.playCard(Player player,
Card card)
informs the engine of a played card |
void |
Deck.returnCard(Card card)
returns the card to the deck |
Uses of Card in org.ninm.games.cardgames.belot |
Fields in org.ninm.games.cardgames.belot declared as Card | |
private Card |
Hand.m_firstCard
|
private Card |
Hand.m_leadingCard
|
private Card[] |
BelotTrick.m_cards
|
Methods in org.ninm.games.cardgames.belot that return Card | |
Card |
Hand.getLeadingCard()
Returns the leadingCard. |
Card |
Hand.getFirstCard()
Returns the firstCard. |
Methods in org.ninm.games.cardgames.belot with parameters of type Card | |
boolean |
StateAdapter.playCard(Card card)
|
boolean |
State.playCard(Card card)
indicates a card has been played by a particular player |
boolean |
PlayingState.playCard(Card card)
|
static boolean |
PlayingState.beats(Card card1,
Card card2,
java.util.Set trumpSuits)
determines if the first card beats the second card in any game |
static boolean |
PlayingState.beats(Card card1,
Card card2,
java.util.Set trumpSuits)
determines if the first card beats the second card in any game |
static boolean |
PlayingState.isTrump(Card card,
java.util.Set trumpSuits)
|
boolean |
PlayingState.isTrump(Card card)
|
java.util.Set |
PlayingState.getCardsThatBeat(java.util.Set cards,
Card card)
|
static java.util.Set |
PlayingState.getCardsThatBeat(java.util.Set cards,
Card card,
java.util.Set trumpSuits)
|
boolean |
PlayingState.beats(Card card1,
Card card2)
|
boolean |
PlayingState.beats(Card card1,
Card card2)
|
static int |
PlayingState.getScore(Card card,
java.util.Set trumpSuits)
|
void |
Hand.addCard(Card card,
Player player)
|
static java.util.Set |
BelotTrick.findBelot(java.util.Set cards,
Player player,
java.util.Set trumps,
Card firstCard)
|
boolean |
BelotEngine.playCard(Player player,
Card card)
|
private void |
BelotEngine.dealCard(DefaultPlayer player,
Card card)
|
Uses of Card in org.ninm.games.cardgames.common |
Subclasses of Card in org.ninm.games.cardgames.common | |
class |
Joker
A special type of card |
Fields in org.ninm.games.cardgames.common declared as Card | |
private Card |
DealerEvent.m_card
|
Methods in org.ninm.games.cardgames.common that return Card | |
Card |
DefaultDeck.dealCard()
|
Card |
DealerEvent.getCard()
Returns the card. |
Methods in org.ninm.games.cardgames.common with parameters of type Card | |
void |
DefaultPlayer.addCard(Card card)
adds the card to the hand |
void |
DefaultPlayer.removeCard(Card card)
removes the card from the hand |
void |
DefaultDeck.returnCard(Card card)
|
boolean |
AbstractEngine.playCard(Player player,
Card card)
This implementation just checks weather the player is the currante player and weather the card is one of the allowed cards. |
protected boolean |
AbstractEngine.isAllowedCard(Card card)
a helper method used to determine if the card passed in is one of the allowed cards to be played now |
protected void |
AbstractEngine.fireCardDelt(Player player,
Team team,
Player dealer,
Card card)
helper method to let every listener know that a card has been delt |
Constructors in org.ninm.games.cardgames.common with parameters of type Card | |
DealerEvent(java.lang.Object source,
Player player,
Team team,
Player dealer,
Card card)
Constructor for DealerEvent. |
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |