org.ninm.games.cardgames.belot
Class BiddingState

java.lang.Object
  |
  +--org.ninm.games.cardgames.belot.StateAdapter
        |
        +--org.ninm.games.cardgames.belot.BiddingState
All Implemented Interfaces:
State

public final class BiddingState
extends StateAdapter

This class represents the state the game is in when the players are bidding for a game

Version:
1.0
Author:
Nikolay

Field Summary
private  int passes
           
 
Fields inherited from class org.ninm.games.cardgames.belot.StateAdapter
m_belotEngine
 
Constructor Summary
BiddingState(BelotEngine belotEngine)
           
 
Method Summary
 boolean bidMade(BelotBid bid)
          indicates a bid has been made by a particluar player
 java.util.Set getAllowedBids()
          returs the allowed bids the current player can make
 void start()
          starts the logic of this state!
 
Methods inherited from class org.ninm.games.cardgames.belot.StateAdapter
announceTrick, getAllowedCards, getAllowedTricks, playCard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passes

private int passes
Constructor Detail

BiddingState

public BiddingState(BelotEngine belotEngine)
Method Detail

bidMade

public boolean bidMade(BelotBid bid)
Description copied from interface: State
indicates a bid has been made by a particluar player

Specified by:
bidMade in interface State
Overrides:
bidMade in class StateAdapter
Parameters:
bid - the bid being made
Returns:
true if the bid was made successfully

getAllowedBids

public java.util.Set getAllowedBids()
Description copied from interface: State
returs the allowed bids the current player can make

Specified by:
getAllowedBids in interface State
Overrides:
getAllowedBids in class StateAdapter
Returns:
List a list of bids

start

public void start()
Description copied from interface: State
starts the logic of this state!


SourceForge.net Logo