rescuecore.tools.mapgenerator
Class RoadSetFactory

java.lang.Object
  extended byrescuecore.tools.mapgenerator.RoadSetFactory

public class RoadSetFactory
extends java.lang.Object

A class that provides a factory method for creating and setting up a RescueMap.


Constructor Summary
RoadSetFactory()
           
 
Method Summary
static RescueMap createRoadSet(java.lang.String scheme, int width, int height, int density, java.util.Random rand)
          Creates a RescueMap, then initialises its nodes and roads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoadSetFactory

public RoadSetFactory()
Method Detail

createRoadSet

public static RescueMap createRoadSet(java.lang.String scheme,
                                      int width,
                                      int height,
                                      int density,
                                      java.util.Random rand)
Creates a RescueMap, then initialises its nodes and roads.

Parameters:
scheme - The name of the initialisation scheme to use.
width - Approximate width to make the map in millimeters.
height - Approximate height to make the map in millimeters.
density - How dense to make the roads of map - from 0..100.
rand - The random number generator.
Returns:
A new road map. Null if an invalid scheme is used.