|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnanomunchers.NanoSystemAnalyzer
Ensures legal moves and runs the simulation the first time.
| Constructor Summary | |
NanoSystemAnalyzer()
|
|
| Method Summary | |
Graph |
getBoard()
|
heurgame.analysis.MoveAnalyzer |
getMoveAnalyzer()
|
java.lang.String |
getResponse(heurgame.PlayerToken owner,
NanoBot newBot)
Used to get a response about error conditions. |
heurgame.PlayerToken |
getWinningPlayer()
|
heurgame.PlayerToken[] |
getWinningPlayers()
|
boolean |
isDecisive()
|
boolean |
isGameOver()
|
boolean |
needMore(heurgame.PlayerToken owner)
Ensures everyone plays with the correct number of nanomunchers. |
void |
newGame()
|
void |
runSimulation(java.util.Vector playerTokens)
|
void |
setup(int maxBots,
Graph nanoField,
NanoSimulation ui)
Initalizes objects related to the system as a whole. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NanoSystemAnalyzer()
| Method Detail |
public Graph getBoard()
public boolean needMore(heurgame.PlayerToken owner)
owner - in question
public java.lang.String getResponse(heurgame.PlayerToken owner,
NanoBot newBot)
owner - in questionnewBot - in question
public void setup(int maxBots,
Graph nanoField,
NanoSimulation ui)
maxBots - desired allocation of nanomunchers per playernanoField - where the game will be played.ui - to be associated with the simulator.public void runSimulation(java.util.Vector playerTokens)
playerTokens - players to be used in the simulationpublic boolean isGameOver()
isGameOver in interface heurgame.analysis.SystemAnalyzerSystemAnalyzer.isGameOver()public boolean isDecisive()
isDecisive in interface heurgame.analysis.SystemAnalyzerSystemAnalyzer.isDecisive()public heurgame.PlayerToken getWinningPlayer()
getWinningPlayer in interface heurgame.analysis.SystemAnalyzerSystemAnalyzer.getWinningPlayer()public heurgame.PlayerToken[] getWinningPlayers()
getWinningPlayers in interface heurgame.analysis.SystemAnalyzerSystemAnalyzer.getWinningPlayers()public void newGame()
newGame in interface heurgame.analysis.SystemAnalyzerSystemAnalyzer.newGame()public heurgame.analysis.MoveAnalyzer getMoveAnalyzer()
getMoveAnalyzer in interface heurgame.analysis.SystemAnalyzerSystemAnalyzer.getMoveAnalyzer()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||