org.ninm.games.cardgames.belot
Class BelotBid

java.lang.Object
  |
  +--org.ninm.games.cardgames.belot.BelotBid
All Implemented Interfaces:
Bid

public final class BelotBid
extends java.lang.Object
implements Bid

this is the bid which a belot game would use

Version:
1.0
Author:
Nikolay

Nested Class Summary
static class BelotBid.DoublingFactor
          This class represents the doubling factor for a belot game (e.g.
 
Field Summary
private  BelotGame m_belotGame
           
private  BelotBid.DoublingFactor m_doublingFactor
           
 
Constructor Summary
BelotBid(BelotBid.DoublingFactor doublingFactor, BelotGame belotGame)
          Constructor for BelotBid.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 BelotGame getBelotGame()
          Returns the belotGame.
 java.lang.String getDisplayValue()
          returns the display value for this bid
 BelotBid.DoublingFactor getDoublingFactor()
          Returns the doublingFactor.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_belotGame

private final BelotGame m_belotGame

m_doublingFactor

private final BelotBid.DoublingFactor m_doublingFactor
Constructor Detail

BelotBid

public BelotBid(BelotBid.DoublingFactor doublingFactor,
                BelotGame belotGame)
Constructor for BelotBid.

Parameters:
doublingFactor - the doubling factor (e.g. Doubled or Redoubled)
belotGame - a reference to the currant game
Method Detail

getDoublingFactor

public BelotBid.DoublingFactor getDoublingFactor()
Returns the doublingFactor.

Returns:
DoublingFactor

getBelotGame

public BelotGame getBelotGame()
Returns the belotGame.

Returns:
BelotGame

getDisplayValue

public java.lang.String getDisplayValue()
Description copied from interface: Bid
returns the display value for this bid

Specified by:
getDisplayValue in interface Bid
Returns:
String the display value for this bud

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

SourceForge.net Logo