jaige
Class GameBoard
java.lang.Object
jaige.GameBoard
- All Implemented Interfaces:
- GameListener, MoveListener
- Direct Known Subclasses:
- AtaxxBoard, HexBoard
public abstract class GameBoard
- extends java.lang.Object
- implements MoveListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
players
protected Player[] players
turn
protected Player turn
winner
protected Player winner
GameBoard
public GameBoard()
destroy
public void destroy()
getOrientations
public abstract Orientation[] getOrientations()
setPlayers
public void setPlayers(Player... players)
getPlayers
public Player[] getPlayers()
switchTurns
public void switchTurns()
abort
public void abort()
start
public void start()
startAndWaitForWinner
public Player startAndWaitForWinner()
isGameOver
public boolean isGameOver()
getWinner
public Player getWinner()
gameOver
protected void gameOver(Player winner)
getTurn
public Player getTurn()
reset
protected abstract void reset()
setBoardSize
protected abstract void setBoardSize(int... size)