|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.java_chess.javaChess.GameController
This class controls the game.
Constructor Summary | |
GameController(Game game,
GameNotation gameNotation,
ChessEngine engine,
Board board)
Create a new controller instance. |
Method Summary | |
boolean |
computerPly()
Let the computer make a move. |
Game |
getGame()
Get the current game. |
GameNotation |
getGameNotation()
Get the current game notation. |
void |
setGame(Game game)
Set the current game. |
void |
setGameNotation(GameNotation gameNotation)
Set the current game notation. |
void |
signalUserInputError(java.lang.String errorMessage)
Signal a input error to the user. |
void |
toggleMoveRight()
Turn the right to move from one player to the other. |
void |
userPly(Ply ply)
The user moved a piece. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GameController(Game game, GameNotation gameNotation, ChessEngine engine, Board board)
Method Detail |
public final Game getGame()
public final void setGame(Game game)
The
- current game.public final GameNotation getGameNotation()
public final void setGameNotation(GameNotation gameNotation)
gameNotation
- The new game notation.public final boolean computerPly()
public final void userPly(Ply ply)
ply
- The ply of the user.public void toggleMoveRight()
public final void signalUserInputError(java.lang.String errorMessage)
errorMessage
- More information on the error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |