|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jskat.data.SkatSeriesData
public class SkatSeriesData
A skat round
| Field Summary | |
|---|---|
int |
GAMES_IN_PROGRESS
|
(package private) static org.apache.log4j.Logger |
log
|
int |
NEW_SERIES
|
int |
PLAYERS_READY
|
int |
SERIES_FINISHED
|
| Constructor Summary | |
|---|---|
SkatSeriesData(JSkatPlayer[] players,
long roundsToPlay)
Creates a new instance of a skat round |
|
| Method Summary | |
|---|---|
void |
addNewGame(SkatGame newGame)
Adds a new skat game |
void |
addRamschGame()
Adds a new ramsch game |
void |
addRoundOfRamschGames()
Adds a new round of ramsch games |
java.util.Vector |
calculateWinsAndLosses()
Calculates all wins and losses of the players |
int |
countGames()
Returns the number of games already played |
int |
getBockGamesToPlay()
|
int |
getBockRoundsToPlay()
|
SkatGame |
getCurrGame()
|
SkatGameData |
getCurrGameData()
Get the data of the current skat game |
long |
getMaxRounds()
Gets the maximal number of rounds to be played |
JSkatPlayer[] |
getPlayers()
Get the player as ArrayList |
int |
getRamschGamesToPlay()
Returns the number of ramsch games to be played |
int |
getState()
Gets the state of the series |
boolean |
isGameLeft()
Gets whether there are games left to be played or not |
boolean |
isOpenRounds()
Checks whether there are still rounds to be played |
boolean |
isRamschGamesRemaining()
Checks, whether there are any ramsch games left to be played |
boolean |
isUnlimitedNumberOfGames()
Gets whether unlimited number of games should be played |
void |
ramschGameFinished()
|
void |
setBockGamesToPlay(int bockGamesToPlay)
|
void |
setBockRoundsToPlay(int bockRoundsToPlay)
|
void |
setMaxRounds(long maxRounds)
Sets the maximal number of rounds to be played |
void |
setPlayers(JSkatPlayer[] newPlayers)
Set the players |
void |
setRamschGamesToPlay(int ramschGameCount)
Sets the number of ramsch games to be played |
void |
setUnlimitedNumberOfGames(boolean unlimitedNumberOfGames)
Sets whether unlimited number of games should be played |
| 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 |
| Field Detail |
|---|
static org.apache.log4j.Logger log
public final int NEW_SERIES
public final int PLAYERS_READY
public final int GAMES_IN_PROGRESS
public final int SERIES_FINISHED
| Constructor Detail |
|---|
public SkatSeriesData(JSkatPlayer[] players,
long roundsToPlay)
| Method Detail |
|---|
public int getState()
public void addNewGame(SkatGame newGame)
newGame - The new gamepublic SkatGameData getCurrGameData()
public SkatGame getCurrGame()
public JSkatPlayer[] getPlayers()
public void setPlayers(JSkatPlayer[] newPlayers)
newPlayers - public java.util.Vector calculateWinsAndLosses()
public int getRamschGamesToPlay()
public void setRamschGamesToPlay(int ramschGameCount)
ramschGameCount - The number of ramsch games to be playedpublic void ramschGameFinished()
public void addRoundOfRamschGames()
public void addRamschGame()
public boolean isRamschGamesRemaining()
public int getBockGamesToPlay()
public int getBockRoundsToPlay()
public void setBockGamesToPlay(int bockGamesToPlay)
bockGamesToPlay - The bockGamesToPlay to set.public void setBockRoundsToPlay(int bockRoundsToPlay)
bockRoundsToPlay - The bockRoundsToPlay to set.public int countGames()
public boolean isOpenRounds()
public void setMaxRounds(long maxRounds)
maxRounds - Maximal number of rounds to be playedpublic long getMaxRounds()
public void setUnlimitedNumberOfGames(boolean unlimitedNumberOfGames)
unlimitedNumberOfGames - TRUE if unlimited number of games should be playedpublic boolean isUnlimitedNumberOfGames()
public boolean isGameLeft()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||