civquest
Class MWFCRiverGenerator

java.lang.Object
  extended bycivquest.MWFCRiverGenerator
All Implemented Interfaces:
RiverGenerator

public class MWFCRiverGenerator
extends java.lang.Object
implements RiverGenerator

MWFCRiverGenerator generates waterflow and waterflowdirections for the whole map. It works that way: First, a number of rivers (a river here consists of one river-mouth and all fields that flow into the river-mouth) is calculated (each by starting using a RiverStarter and evolving using a RiverEvolver). In a second step, all fields which haven't got a waterflow yet get one using a RiverCompleter. A river isn't allowed to flow into itself. Volcano-fields don't get rivers. Unless otherwise defined, a neighborfield here is always the northern, the western, the southern or the eastern neighbor-field.


Constructor Summary
MWFCRiverGenerator(Registry nregistry)
           
 
Method Summary
 void generate(MapData nmapdata)
          This function generates waterflow and waterflowdirections for the whole map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MWFCRiverGenerator

public MWFCRiverGenerator(Registry nregistry)
Method Detail

generate

public void generate(MapData nmapdata)
This function generates waterflow and waterflowdirections for the whole map.

Specified by:
generate in interface RiverGenerator