jfreerails.world.terrain
Class NullTerrainType

java.lang.Object
  extended by jfreerails.world.terrain.NullTerrainType
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable, TerrainType

public class NullTerrainType
extends java.lang.Object
implements TerrainType

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jfreerails.world.terrain.TerrainType
TerrainType.Category
 
Field Summary
static TerrainType INSTANCE
           
private static long serialVersionUID
           
 
Constructor Summary
private NullTerrainType()
           
 
Method Summary
 Money getBuildCost()
           
 TerrainType.Category getCategory()
           
 ImList<Consumption> getConsumption()
           
 ImList<Conversion> getConversion()
           
 java.lang.String getDisplayName()
           
 ImList<Production> getProduction()
           
 int getRGB()
           
 int getRightOfWay()
           
 java.lang.String getTerrainTypeName()
           
private  java.lang.Object readResolve()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TerrainType INSTANCE

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

NullTerrainType

private NullTerrainType()
Method Detail

getProduction

public ImList<Production> getProduction()
Specified by:
getProduction in interface TerrainType

getConsumption

public ImList<Consumption> getConsumption()
Specified by:
getConsumption in interface TerrainType

getConversion

public ImList<Conversion> getConversion()
Specified by:
getConversion in interface TerrainType

getTerrainTypeName

public java.lang.String getTerrainTypeName()
Specified by:
getTerrainTypeName in interface TerrainType

getCategory

public TerrainType.Category getCategory()
Specified by:
getCategory in interface TerrainType

getRGB

public int getRGB()
Specified by:
getRGB in interface TerrainType

getRightOfWay

public int getRightOfWay()
Specified by:
getRightOfWay in interface TerrainType

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface TerrainType

readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException

getBuildCost

public Money getBuildCost()
Specified by:
getBuildCost in interface TerrainType