org.ninm.games.cardgames.belot
Class Hand

java.lang.Object
  |
  +--org.ninm.games.cardgames.belot.Hand

class Hand
extends java.lang.Object

Utility class used by the belot engine to store the currant state of the hand

Version:
1.0
Author:
Nikolay

Field Summary
private  Card m_firstCard
           
private  Card m_leadingCard
           
private  Player m_leadingPlayer
           
private  int m_totalScore
           
private  java.util.Set m_trumpSuits
           
 
Constructor Summary
protected Hand(java.util.Set trumpSuits)
           
 
Method Summary
 void addCard(Card card, Player player)
           
 Card getFirstCard()
          Returns the firstCard.
 Card getLeadingCard()
          Returns the leadingCard.
 Player getLeadingPlayer()
          Returns the leadingPlayer.
 int getTotalScore()
          Returns the totalScore.
 void reset()
          resets this hand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_trumpSuits

private final java.util.Set m_trumpSuits

m_firstCard

private Card m_firstCard

m_leadingCard

private Card m_leadingCard

m_leadingPlayer

private Player m_leadingPlayer

m_totalScore

private int m_totalScore
Constructor Detail

Hand

protected Hand(java.util.Set trumpSuits)
Method Detail

addCard

public void addCard(Card card,
                    Player player)

getLeadingCard

public Card getLeadingCard()
Returns the leadingCard.

Returns:
Card

getLeadingPlayer

public Player getLeadingPlayer()
Returns the leadingPlayer.

Returns:
Player

getTotalScore

public int getTotalScore()
Returns the totalScore.

Returns:
int

reset

public void reset()
resets this hand


getFirstCard

public Card getFirstCard()
Returns the firstCard.

Returns:
Card

SourceForge.net Logo