vutbr.checkers.game
Class GamePieceMan
java.lang.Object
vutbr.checkers.game.GamePiece
vutbr.checkers.game.GamePieceMan
public class GamePieceMan
- extends GamePiece
Trida GamePieceMan - figurka pesce
- Author:
- Ondrej Novy
Method Summary |
protected boolean |
possibleTurn(int toX,
int toY,
GameTurnState gameTurnState)
Overi, zda je tento tah pescem mozny |
protected boolean |
turn(int toX,
int toY,
GameTurnState gameTurnState)
Provede tah pescem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GamePieceMan
public GamePieceMan(GameBoard board,
int x,
int y,
Game.GameColor color)
- Konstruktur
- Parameters:
board
- Hraci plochax
- Souradnice Xy
- Souradnice Ycolor
- Barva figurky
turn
protected boolean turn(int toX,
int toY,
GameTurnState gameTurnState)
- Provede tah pescem
- Specified by:
turn
in class GamePiece
- Parameters:
toX
- Cilova souradnice XtoY
- Cilova souradnice YgameTurnState
- Stav tahu hry
- Returns:
- True pokud se tah povedl
possibleTurn
protected boolean possibleTurn(int toX,
int toY,
GameTurnState gameTurnState)
- Overi, zda je tento tah pescem mozny
- Parameters:
toX
- Cilova souradnice XtoY
- Cilova souradnice YgameTurnState
- Stav tahu hry
- Returns:
- True pokud je tah mozny