|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A data model for a game of ConwayGo played in another Thread in the background.
$Id: BackgroundGame.java,v 1.1 2004/07/30 21:05:58 mk Exp $
Method Summary | |
void |
abort()
Aborts the game. |
void |
destroy()
Aborts the game, kills all running processes, frees all resources. |
boolean |
isAlive()
Returns whether the game is stopped or running. |
void |
play()
Starts playing the game. |
Methods inherited from interface de.tabacha.cgo.Game |
addGameListener, getBoard, getPlayer, getPlayerToMove, removeGameListener, setPlayer |
Method Detail |
public void play() throws java.lang.IllegalStateException
play
in interface Game
java.lang.IllegalStateException
- If a player is null or the game is already running.public boolean isAlive()
public void abort()
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |