ctf.environment
Class LargeRandomSet

java.lang.Object
  |
  +--ctf.environment.LargeRandomSet

class LargeRandomSet
extends Object
implements ObstacleSet, BoardSet

A large completely randomized board setting. Note that this class only has package access enabled.

Author:
Jason Rohrer

Constructor Summary
(package private) LargeRandomSet()
           
 
Method Summary
 int getBoardSize()
          Gets the dimension of the board.
 EnvironmentLocation[] getObstacleLocations(int inBoardSize)
          Gets an array of obstacle locations specified by this set.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LargeRandomSet

LargeRandomSet()
Method Detail

getObstacleLocations

public EnvironmentLocation[] getObstacleLocations(int inBoardSize)
Description copied from interface: ObstacleSet
Gets an array of obstacle locations specified by this set.
Specified by:
getObstacleLocations in interface ObstacleSet
Tags copied from interface: ObstacleSet
Parameters:
inBoardSize - the dimension of the board.
Returns:
an array of obstacle locations.

getBoardSize

public int getBoardSize()
Description copied from interface: BoardSet
Gets the dimension of the board.
Specified by:
getBoardSize in interface BoardSet
Tags copied from interface: BoardSet
Returns:
the size of the board in number of spaces across.