public class Main extends Object implements com.google.gwt.core.client.EntryPoint, com.alonsoruibal.chess.search.SearchObserver
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
void |
addMove()
Add an event to the browser undo/redo stack
|
void |
bestMove(int bestMove,
int ponder)
Invoked by the carballo engine when the search is done
|
void |
confirmRestart(com.google.gwt.event.dom.client.ClickEvent event) |
int |
getHeight() |
void |
info(com.alonsoruibal.chess.search.SearchStatusInfo info)
Unused carballo chess engine event handler
|
void |
modeChange(com.google.gwt.event.dom.client.ChangeEvent event) |
void |
nextMove()
Invoked to make the game advance to the next move
|
void |
onModuleLoad()
GWT entry point
|
void |
redo(com.google.gwt.event.dom.client.ClickEvent event) |
void |
restart()
Start a new game
|
void |
undo(com.google.gwt.event.dom.client.ClickEvent event) |
void |
updateFen(com.google.gwt.event.dom.client.ClickEvent event) |
public int getHeight()
public void onModuleLoad()
onModuleLoad
in interface com.google.gwt.core.client.EntryPoint
public void nextMove()
public void bestMove(int bestMove, int ponder)
bestMove
in interface com.alonsoruibal.chess.search.SearchObserver
public void info(com.alonsoruibal.chess.search.SearchStatusInfo info)
info
in interface com.alonsoruibal.chess.search.SearchObserver
public void restart()
@UiHandler(value="fenButton") public void updateFen(com.google.gwt.event.dom.client.ClickEvent event)
@UiHandler(value="modeListBox") public void modeChange(com.google.gwt.event.dom.client.ChangeEvent event)
@UiHandler(value="restartButton") public void confirmRestart(com.google.gwt.event.dom.client.ClickEvent event)
@UiHandler(value="undoButton") public void undo(com.google.gwt.event.dom.client.ClickEvent event)
@UiHandler(value="redoButton") public void redo(com.google.gwt.event.dom.client.ClickEvent event)
public void addMove()
Copyright © 2017. All Rights Reserved.