jagafa
Class JassRound

java.lang.Object
  extended by java.util.Observable
      extended by jagafa.JassRoundCore
          extended by jagafa.JassRound

public class JassRound
extends JassRoundCore


Field Summary
 
Fields inherited from class jagafa.JassRoundCore
aiTimer_, refreshTimer_, running_, scoreTable_
 
Constructor Summary
JassRound(RuleSet rules)
          Constructor: init the game with the ruleSet given
 
Method Summary
 void doComputer()
          Do all computer movements
protected  void initPlayers()
          Initialize all the players TODO: initPlayers() should be externalized or at least parameterized
 void playCard(Card card, Player player)
          Adds a card of Player p to the active Board, if valid
 void printScores()
          Print the score to stdout
 void start()
          Start the game by installing the main and refresh timers Only if the RuleSet is set!
 void start(Player startPlayer)
           
 
Methods inherited from class jagafa.JassRoundCore
activeBoard, activePlayer, activePlayerNr, addPlayer, getGoneHeap, getLastTurnWinner, getOpponents, getPartner, getPlayer, getPlayerNr, getRules, getScore, getScoreTable, getWinner, isRoundOver, isRunning, isValidPlay, nextPlayer, reportScores, reset, setActivePlayer, setLastTurnWinner, setRules, setScoreTable, stop, toggleNotify
 
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

JassRound

public JassRound(RuleSet rules)
Constructor: init the game with the ruleSet given

Method Detail

initPlayers

protected void initPlayers()
Initialize all the players TODO: initPlayers() should be externalized or at least parameterized

Specified by:
initPlayers in class JassRoundCore

start

public void start(Player startPlayer)

start

public void start()
Start the game by installing the main and refresh timers Only if the RuleSet is set!


playCard

public void playCard(Card card,
                     Player player)
Adds a card of Player p to the active Board, if valid


doComputer

public void doComputer()
Do all computer movements


printScores

public void printScores()
Print the score to stdout



Copyright 2005 MA Software. All Rights Reserved.