jskat.control
Class BiddingThread

java.lang.Object
  extended by jskat.control.BiddingThread
All Implemented Interfaces:
java.lang.Runnable

public class BiddingThread
extends java.lang.Object
implements java.lang.Runnable

BiddingThread

Author:
Jan Schäfer

Field Summary
(package private) static org.apache.log4j.Logger log
           
 
Method Summary
 BidStatus getBidStatus()
          Gets the current bid status
static BiddingThread getInstance(JSkatDataModel dataModel, SkatGame game, int[] playerOrder)
           
 void notifyMe(boolean userBidsMore)
          Is called if a user places a higher bid
 void run()
          Runs the bidding thread
 void start()
          Starts a new thread for bidding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.log4j.Logger log
Method Detail

getInstance

public static BiddingThread getInstance(JSkatDataModel dataModel,
                                        SkatGame game,
                                        int[] playerOrder)

start

public void start()
Starts a new thread for bidding


notifyMe

public void notifyMe(boolean userBidsMore)
Is called if a user places a higher bid

Parameters:
userBidsMore -

getBidStatus

public BidStatus getBidStatus()
Gets the current bid status

Returns:
bid status

run

public void run()
Runs the bidding thread

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()