jskat.control
Class SkatSeries
java.lang.Object
java.util.Observable
jskat.control.SkatSeries
- All Implemented Interfaces:
- java.util.Observer
public class SkatSeries
- extends java.util.Observable
- implements java.util.Observer
| 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 |
NEW_SERIES
public static final int NEW_SERIES
- See Also:
- Constant Field Values
NEW_GAME
public static final int NEW_GAME
- See Also:
- Constant Field Values
SERIES_FINISHED
public static final int SERIES_FINISHED
- See Also:
- Constant Field Values
SkatSeries
public SkatSeries(JSkatDataModel dataModel,
JSkatPlayer[] players,
long roundsToPlay)
- Constructor
- Parameters:
dataModel - The data model of JSkatplayers - All playersroundsToPlay - number of rounds to play in the series
getSkatSeriesData
public SkatSeriesData getSkatSeriesData()
- Gets the data for the skat series
- Returns:
- The data for the skat series
getCurrSkatGame
public SkatGame getCurrSkatGame()
- Gets the current skat game
- Returns:
- The current skat game
getCurrSkatGameData
public SkatGameData getCurrSkatGameData()
- Gets the data for the current skat game
- Returns:
- The data for the current skat game
startPlaying
public boolean startPlaying()
- Starts the skat series
update
public void update(java.util.Observable observ,
java.lang.Object obj)
- Specified by:
update in interface java.util.Observer