rle.core.board
Class BoardUtil

java.lang.Object
  extended by rle.core.board.BoardUtil

public class BoardUtil
extends java.lang.Object

Provides Board creation utilities.


Constructor Summary
BoardUtil()
           
 
Method Summary
static void placeCreature(Board board, Creature c)
          Place a creature somewhere legal.
static void placeItem(Board board, Item item)
          Place an item somewhere legal.
static RLPoint randomFloor(Board board)
          Find a random floor space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardUtil

public BoardUtil()
Method Detail

placeItem

public static void placeItem(Board board,
                             Item item)
Place an item somewhere legal.

Parameters:
item -

randomFloor

public static RLPoint randomFloor(Board board)
Find a random floor space.


placeCreature

public static void placeCreature(Board board,
                                 Creature c)
Place a creature somewhere legal.

Parameters:
c -