vutbr.checkers.client
Class ReplayGame

java.lang.Object
  extended by vutbr.checkers.game.Game
      extended by vutbr.checkers.client.ReplayGame

public class ReplayGame
extends Game

Trida ReplayGame - trida pro prehravani hry

Author:
Ondrej Novy

Nested Class Summary
 
Nested classes/interfaces inherited from class vutbr.checkers.game.Game
Game.GameColor
 
Constructor Summary
ReplayGame(MainWindow mainWindow)
          Konstruktor
 
Method Summary
 Game.GameColor getMyColor()
          Vrati barvu hrace
 void setMyColor(Game.GameColor myColor)
          Nastavi barvu hrace
 boolean turn(int x, int y, int toX, int toY)
          Provede tah figurkou
 boolean turnEnd()
          Ukonci tah
 
Methods inherited from class vutbr.checkers.game.Game
getBoard, getGameHistory, getOnTurn, isGameEnd, setOnTurn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplayGame

public ReplayGame(MainWindow mainWindow)
Konstruktor

Method Detail

turn

public boolean turn(int x,
                    int y,
                    int toX,
                    int toY)
Provede tah figurkou

Overrides:
turn in class Game
Parameters:
x - Zdrojova souradnice X
y - Zdrojova souradnice Y
toX - Cilova souradnice X
toY - Cilova souradnice Y
Returns:
True pokud se tah povedl

turnEnd

public boolean turnEnd()
Ukonci tah

Overrides:
turnEnd in class Game
Returns:
True pokud se konec tahu povedl

setMyColor

public void setMyColor(Game.GameColor myColor)
Nastavi barvu hrace

Parameters:
myColor - Barva hrace

getMyColor

public Game.GameColor getMyColor()
Vrati barvu hrace

Returns:
Barva hrace