megamek.common
Class TerrainFactory

java.lang.Object
  extended by megamek.common.TerrainFactory
All Implemented Interfaces:
ITerrainFactory

public class TerrainFactory
extends java.lang.Object
implements ITerrainFactory


Constructor Summary
TerrainFactory()
           
 
Method Summary
 ITerrain createTerrain(int type, int level)
          Create terrain of cpecified type and level
 ITerrain createTerrain(int type, int level, boolean exitsSpecified, int exits)
          Create terrain of cpecified type, level , exitsSpecified flag and exits,
 ITerrain createTerrain(ITerrain other)
          Create terrain as copy of other
 ITerrain createTerrain(java.lang.String terrain)
          Create Terrain using string containing terrain info TODO I think this shoul be removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerrainFactory

public TerrainFactory()
Method Detail

createTerrain

public ITerrain createTerrain(int type,
                              int level)
Description copied from interface: ITerrainFactory
Create terrain of cpecified type and level

Specified by:
createTerrain in interface ITerrainFactory
Parameters:
type - terrain type
level - level
Returns:
new terrain

createTerrain

public ITerrain createTerrain(int type,
                              int level,
                              boolean exitsSpecified,
                              int exits)
Description copied from interface: ITerrainFactory
Create terrain of cpecified type, level , exitsSpecified flag and exits,

Specified by:
createTerrain in interface ITerrainFactory
Returns:
new terrain

createTerrain

public ITerrain createTerrain(java.lang.String terrain)
Description copied from interface: ITerrainFactory
Create Terrain using string containing terrain info TODO I think this shoul be removed. It's too much implementation specfic

Specified by:
createTerrain in interface ITerrainFactory
Returns:
new terrain

createTerrain

public ITerrain createTerrain(ITerrain other)
Description copied from interface: ITerrainFactory
Create terrain as copy of other

Specified by:
createTerrain in interface ITerrainFactory
Returns:
new terrain