megamek.common
Interface ITerrainFactory

All Known Implementing Classes:
TerrainFactory, Terrains

public interface ITerrainFactory


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.
 

Method Detail

createTerrain

ITerrain createTerrain(int type,
                       int level)
Create terrain of cpecified type and level

Parameters:
type - terrain type
level - level
Returns:
new terrain

createTerrain

ITerrain createTerrain(int type,
                       int level,
                       boolean exitsSpecified,
                       int exits)
Create terrain of cpecified type, level , exitsSpecified flag and exits,

Parameters:
type -
level -
exitsSpecified -
exits -
Returns:
new terrain

createTerrain

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

Parameters:
terrain -
Returns:
new terrain

createTerrain

ITerrain createTerrain(ITerrain other)
Create terrain as copy of other

Parameters:
other -
Returns:
new terrain