|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jskat.data.BidStatus
public class BidStatus
Holds all bidding data during the bidding
| Constructor Summary | |
|---|---|
BidStatus()
Creates a new instance of BidStatus |
|
| Method Summary | |
|---|---|
int |
getBidValue(int hand)
Gets the current bid value for a hand |
boolean |
getButtonsEnabled()
Gets the information whether the buttons are enabled or not |
int |
getForeHandPlayer()
Gets the current Forehand player |
boolean |
getHandDoesBid(int hand)
Gets the status whether the hand does the bid or not |
int |
getHighestBidValue()
|
int |
getNextBidValue()
|
boolean |
getWasAsked(int hand)
|
void |
resetBidStatus(int foreHandPlayer)
Resets the BidStatus to default values at the beginning of the bidding |
void |
setBidValue(int hand,
int newBidValue)
Sets current bid value for a hand |
void |
setButtonsEnabled(boolean enabled)
Enable/Disable the Bidding buttons |
void |
setHandDoesBid(int hand,
boolean handDoesBid)
Sets the status whether the player does the bid or not |
void |
setWasAsked(int hand)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BidStatus()
| Method Detail |
|---|
public void resetBidStatus(int foreHandPlayer)
foreHandPlayer - The ID of the current Forehand playerpublic int getForeHandPlayer()
public void setButtonsEnabled(boolean enabled)
enabled - TRUE if the buttons should be enabled otherwise FALSEpublic boolean getButtonsEnabled()
public void setHandDoesBid(int hand,
boolean handDoesBid)
hand - Which hand should be set (SkatConstants.FORE_HAND, SkatConstants.MIDDLE_HAND,
SkatConstants.BACK_HAND)handDoesBid - TRUE if hand does the bid otherwise FALSEpublic boolean getHandDoesBid(int hand)
hand - The player that should be asked (SkatConstants.FORE_HAND,
SkatConstants.MIDDLE_HAND, SkatConstants.HINDHAND)
public void setBidValue(int hand,
int newBidValue)
hand - The hand for which the bid value should be setnewBidValue - The new bid value that should be setpublic int getBidValue(int hand)
hand - The hand from where the bid value should be retrieved.
public int getHighestBidValue()
public int getNextBidValue()
public void setWasAsked(int hand)
public boolean getWasAsked(int hand)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||