|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.model.game.Result | +--de.kosi.model.game.NormalResult
This class is used as result for games that have been finished normally (it got finished after the 13 tricks had been played, time was not exceeded).
ChangeLog:
$Log: NormalResult.java,v $ Revision 1.9 2001/06/27 11:53:21 betacarotine Worked on the Rubber and added comments. Revision 1.8 2001/06/22 14:16:01 betacarotine Improved result handling Revision 1.7 2001/06/15 13:07:03 betacarotine added serial version UIDs to the Result-classes. Revision 1.6 2001/06/15 09:33:27 betacarotine Changed the Game-interface. Instead of int getLatestLeader() and List getLatestTrick() we now have Trick getLatestTrick() The internal representation and storage of the tricks is reimplemented too based on the new Trick-class. Revision 1.5 2001/06/13 12:30:05 jiriki Worked on Game/TableView Revision 1.4 2001/06/06 09:22:35 betacarotine updated documentation Revision 1.3 2001/06/01 15:07:07 betacarotine Updated documentation Revision 1.2 2001/06/01 14:49:54 betacarotine improved the result handling, added tournament scoring Revision 1.1 2001/05/25 14:51:23 betacarotine Added a result handling mechanism for the game.
Field Summary | |
static long |
serialVersionUID
The serial version UID |
Constructor Summary | |
NormalResult(Board board,
java.util.List bids,
SuitContract contract,
java.util.List tricks,
int trickCounter)
Creates a new NormalResult instance. |
Method Summary | |
boolean |
declarerVulnerable()
Checks if the declarer is vulnerable. |
boolean |
declarerWon()
Checks if the declarer made the contract. |
int |
getDeclarerTricks()
Returns the tricks that the declarer made. |
int |
getOverTricks()
Returns the number of overtricks that the declarer made. |
int |
getRubberAboveEastWest()
Returns the points that EastWest gets for this board above the line when playing Rubberbridge. |
int |
getRubberAboveNorthSouth()
Returns the points that NorthSouth gets for this board above the line when playing Rubberbridge. |
int |
getRubberBelowEastWest()
Returns the points that EastWest gets for this board below the line when playing Rubberbridge. |
int |
getRubberBelowNorthSouth()
Returns the points that NorthSouth gets for this board below the line when playing Rubberbridge. |
SuitContract |
getSuitContract()
Returns the contract of the game with correct type SuitContract. |
int |
getTournamentScore()
Calculates the points that the declarer gets according to the bridge scoring rules for Tournaments. |
int |
getUnderTricks()
Returns the number of undertricks that the declarer made. |
Methods inherited from class de.kosi.model.game.Result |
getBids, getBoard, getContract, getTricks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long serialVersionUID
Constructor Detail |
public NormalResult(Board board, java.util.List bids, SuitContract contract, java.util.List tricks, int trickCounter)
board
- The board that was played on.bids
- The list of bids that were bid in the bidding phase.contract
- The contract of the game.tricks
- The list cards that were played in the playing phase.trickCounter
- The number of tricks that the declarer made.Method Detail |
public int getOverTricks()
public int getUnderTricks()
public int getDeclarerTricks()
public SuitContract getSuitContract()
public boolean declarerWon()
public boolean declarerVulnerable()
public int getTournamentScore()
public int getRubberAboveNorthSouth()
public int getRubberAboveEastWest()
public int getRubberBelowNorthSouth()
public int getRubberBelowEastWest()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |