|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--world.World
Class that implements the World representation for the simulation in the ICFP-2002 programming contest.
| Constructor Summary | |
World()
Creates the World. |
|
| Method Summary | |
Board |
getBoard()
Method to get world's playing board. |
TreeSet |
getOpponentMoves()
Method to get the set of possible opponent robot moves. |
TreeSet |
getOpponentPositions()
Method to get the set of opponent robot positions. |
RobotMap |
getRobotMap()
Method to get robot map. |
TableModel |
getTableModel()
Returns a table model for displaying the world map. |
int |
getTurn()
Method to get the current turn. |
void |
setBoard(Board board)
Method to set world's playing board. |
void |
turn()
Method to move to the next turn. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public World()
| Method Detail |
public int getTurn()
public void turn()
public Board getBoard()
public void setBoard(Board board)
board - The playing board.public RobotMap getRobotMap()
public TreeSet getOpponentPositions()
Tilepublic TreeSet getOpponentMoves()
Tilepublic TableModel getTableModel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||