|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
the abstract Game class is the parent of all types of games that will be supported. It needs to be generic enough to support all kinds of turn based games from Chess, to Go, to Scrabble, etc. Therefore, commonalities in these classes will increase the number of methods in this class. Note: this is only an interface because the implementation of these functions is so simple there's no need to make this a class . . .yet.
Method Summary | |
Board[] |
getBoards()
Board games with only one board return a single element Board[] array. |
Result |
getCurrentResult()
returns the current status of this Game. |
GameInfo |
getGameInfo()
this returns the GameInfo object for this game. |
History |
getHistory()
returns the move history for the entire game. |
int |
getNumberOfPlayers()
gets the number of players involved in this type of game, though there might not be two valid Player objects for this game. |
int[] |
getPlayersToMove()
returns an array containing the index number of the Players who have the ability to make a move at this time. |
Result |
getResult()
returns file final result of the game on the main line. |
void |
setGameInfo(GameInfo gi)
|
void |
setHistory(History history)
|
void |
setResult(Result result)
|
Method Detail |
public int getNumberOfPlayers()
public GameInfo getGameInfo()
public void setGameInfo(GameInfo gi)
public History getHistory()
public void setHistory(History history)
public Result getCurrentResult()
public Result getResult()
public void setResult(Result result)
public Board[] getBoards()
public int[] getPlayersToMove()
|
Submit a bug or feature Visit the Website Internet Chess ToolKit is licensed under the GPL v2 . |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |