jaige
Class GameBoard

java.lang.Object
  extended by jaige.GameBoard
All Implemented Interfaces:
GameListener, MoveListener
Direct Known Subclasses:
AtaxxBoard, HexBoard

public abstract class GameBoard
extends java.lang.Object
implements MoveListener


Field Summary
protected  Player[] players
           
protected  Player turn
           
protected  Player winner
           
 
Constructor Summary
GameBoard()
           
 
Method Summary
 void abort()
           
 void destroy()
           
protected  void gameOver(Player winner)
           
abstract  Orientation[] getOrientations()
           
 Player[] getPlayers()
           
 Player getTurn()
           
 Player getWinner()
           
 boolean isGameOver()
           
protected abstract  void reset()
           
protected abstract  void setBoardSize(int... size)
           
 void setPlayers(Player... players)
           
 void start()
           
 Player startAndWaitForWinner()
           
 void switchTurns()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jaige.event.MoveListener
processMoveEvent
 

Field Detail

players

protected Player[] players

turn

protected Player turn

winner

protected Player winner
Constructor Detail

GameBoard

public GameBoard()
Method Detail

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)