|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.gui.GraphicUI
public class GraphicUI
Provides a window portrait of the game.
| Constructor Summary | |
|---|---|
GraphicUI()
constructor: Creates a new Window with an initialized chess board. |
|
| Method Summary | |
|---|---|
boolean |
makeMove(Cell a,
Cell b)
transformer(mutative): Executes the move which is provided by the parameter integers which define two cells,a source and a destination one. |
void |
nextGame()
transformer(mutative): Changes the chess board of the game to show to a next board. |
void |
previousGame()
transformer(mutative): Changes the chess board of the game to show to a previous move. |
void |
showGame()
accessor(selector): Displays the current game. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphicUI()
| Method Detail |
|---|
public void showGame()
showGame in interface UserInterface
public boolean makeMove(Cell a,
Cell b)
makeMove in interface UserInterfacea - source Cellb - destination Cell
public void nextGame()
throws IllegalViewException
nextGame in interface UserInterfaceIllegalViewException - When there is no next board to go.
public void previousGame()
throws IllegalViewException
previousGame in interface UserInterfaceIllegalViewException - When there is no previous board to go.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||