ctf.environment
Class DefaultSet

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

class DefaultSet
extends Object
implements ObstacleSet, BoardSet

A default obstacle location preset for testing purposes. Note that this class only has package access enabled.

Author:
Jason Rohrer

Constructor Summary
(package private) DefaultSet()
           
 
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

DefaultSet

DefaultSet()
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.