|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvutbr.checkers.game.Game
vutbr.checkers.client.ClientGame
public class ClientGame
Trida ClientGame - klientska cast hry
Nested Class Summary |
---|
Nested classes/interfaces inherited from class vutbr.checkers.game.Game |
---|
Game.GameColor |
Constructor Summary | |
---|---|
ClientGame(ClientThread clientThread,
Game.GameColor myColor,
MainWindow mainWindow)
Konstruktor |
Method Summary | |
---|---|
ClientThread |
getClientThread()
Vrati vlakno komunikace klientske strany |
Game.GameColor |
getMyColor()
Vrati barvu hrace |
boolean |
myTurn(int x,
int y,
int toX,
int toY)
Overi zda mohu tahnout a pripadne zavola turn() |
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 |
---|
public ClientGame(ClientThread clientThread, Game.GameColor myColor, MainWindow mainWindow)
clientThread
- Trida clientThreadmyColor
- Barva hraceMethod Detail |
---|
public boolean turn(int x, int y, int toX, int toY)
turn
in class Game
x
- Zdrojova souradnice Xy
- Zdrojova souradnice YtoX
- Cilova souradnice XtoY
- Cilova souradnice Y
public boolean turnEnd()
turnEnd
in class Game
public boolean myTurn(int x, int y, int toX, int toY)
x
- Zdrojova souradnice Xy
- Zdrojova souradnice YtoX
- Cilova souradnice XtoY
- Cilova souradnice Y
public Game.GameColor getMyColor()
public ClientThread getClientThread()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |