mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 09:02:41 +01:00
Removed redundant public access modifier for interface methods.
This commit is contained in:
@@ -31,26 +31,26 @@ public interface Player {
|
||||
* This makes it possible for the player to correctly handle
|
||||
* the draw by repetition rule.
|
||||
*/
|
||||
public String getCommand(Position pos, boolean drawOffer, List<Position> history);
|
||||
String getCommand(Position pos, boolean drawOffer, List<Position> history);
|
||||
|
||||
/** Return true if this player is a human player. */
|
||||
public boolean isHumanPlayer();
|
||||
boolean isHumanPlayer();
|
||||
|
||||
/**
|
||||
* Inform player whether or not to use an opening book.
|
||||
* Of course, a human player is likely to ignore this.
|
||||
*/
|
||||
public void useBook(boolean bookOn);
|
||||
void useBook(boolean bookOn);
|
||||
|
||||
/**
|
||||
* Inform player about min recommended/max allowed thinking time per move.
|
||||
* Of course, a human player is likely to ignore this.
|
||||
*/
|
||||
public void timeLimit(int minTimeLimit, int maxTimeLimit, boolean randomMode);
|
||||
void timeLimit(int minTimeLimit, int maxTimeLimit, boolean randomMode);
|
||||
|
||||
/**
|
||||
* Inform player that the transposition table should be cleared.
|
||||
* Of course, a human player has a hard time implementing this.
|
||||
*/
|
||||
public void clearTT();
|
||||
void clearTT();
|
||||
}
|
||||
|
||||
@@ -119,11 +119,11 @@ public class Search {
|
||||
* Used to get various search information during search
|
||||
*/
|
||||
public interface Listener {
|
||||
public void notifyDepth(int depth);
|
||||
public void notifyCurrMove(Move m, int moveNr);
|
||||
public void notifyPV(int depth, int score, int time, long nodes, int nps,
|
||||
void notifyDepth(int depth);
|
||||
void notifyCurrMove(Move m, int moveNr);
|
||||
void notifyPV(int depth, int score, int time, long nodes, int nps,
|
||||
boolean isMate, boolean upperBound, boolean lowerBound, ArrayList<Move> pv);
|
||||
public void notifyStats(long nodes, int nps, int time);
|
||||
void notifyStats(long nodes, int nps, int time);
|
||||
}
|
||||
|
||||
Listener listener;
|
||||
|
||||
@@ -24,35 +24,35 @@ import chess.Position;
|
||||
public interface GUIInterface {
|
||||
|
||||
/** Update the displayed board position. */
|
||||
public void setPosition(Position pos);
|
||||
void setPosition(Position pos);
|
||||
|
||||
/** Mark square i as selected. Set to -1 to clear selection. */
|
||||
public void setSelection(int sq);
|
||||
void setSelection(int sq);
|
||||
|
||||
/** Set the status text. */
|
||||
public void setStatusString(String str);
|
||||
void setStatusString(String str);
|
||||
|
||||
/** Update the list of moves. */
|
||||
public void setMoveListString(String str);
|
||||
void setMoveListString(String str);
|
||||
|
||||
/** Update the computer thinking information. */
|
||||
public void setThinkingString(String str);
|
||||
void setThinkingString(String str);
|
||||
|
||||
/** Get the current time limit. */
|
||||
public int timeLimit();
|
||||
int timeLimit();
|
||||
|
||||
/** Get "random move" setting. */
|
||||
public boolean randomMode();
|
||||
boolean randomMode();
|
||||
|
||||
/** Return true if "show thinking" is enabled. */
|
||||
public boolean showThinking();
|
||||
boolean showThinking();
|
||||
|
||||
/** Ask what to promote a pawn to. Should call reportPromotePiece() when done. */
|
||||
public void requestPromotePiece();
|
||||
void requestPromotePiece();
|
||||
|
||||
/** Run code on the GUI thread. */
|
||||
public void runOnUIThread(Runnable runnable);
|
||||
void runOnUIThread(Runnable runnable);
|
||||
|
||||
/** Report that user attempted to make an invalid move. */
|
||||
public void reportInvalidMove(Move m);
|
||||
void reportInvalidMove(Move m);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user