|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
ru.sstu.renju.core.Game
public class Game
GameField class represents field for Renju game.
| Field Summary | |
|---|---|
static int |
SIZE
Game field size. |
| Constructor Summary | |
|---|---|
Game(Player blackPlayer,
Player whitePlayer)
Initializes game. |
|
| Method Summary | |
|---|---|
CellType |
getCell(int x,
int y)
Provides cell type. |
List<Move> |
getHistory()
|
int |
getMoveCount()
|
GameResult |
getResult()
|
boolean |
isFreeCell(int x,
int y)
Checks current cell. |
Iterator<CellType> |
rowIterator(Row row)
Provides iterator over cells in given row. |
void |
run()
|
void |
setDelay(long delay)
|
void |
stop()
Stops the game. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE
| Constructor Detail |
|---|
public Game(Player blackPlayer,
Player whitePlayer)
blackPlayer - black player enginewhitePlayer - white player engine| Method Detail |
|---|
public CellType getCell(int x,
int y)
x - xy - y
public boolean isFreeCell(int x,
int y)
x - xy - y
true if cell is freepublic int getMoveCount()
public GameResult getResult()
public void setDelay(long delay)
delay - the delay to setpublic void stop()
public List<Move> getHistory()
public Iterator<CellType> rowIterator(Row row)
row - row
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||