jfreerails.world.track
Class TrackRuleProperties

java.lang.Object
  extended by jfreerails.world.track.TrackRuleProperties
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public final class TrackRuleProperties
extends java.lang.Object
implements FreerailsSerializable

Stores some of the properties of a track type.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  TrackRule.TrackCategories category
           
private  boolean enableDoubleTrack
           
private  Money fixedCost
           
private  Money maintenanceCost
           
private  Money price
           
private  int rGBvalue
           
private static long serialVersionUID
           
private  int stationRadius
           
private  java.lang.String typeName
           
 
Constructor Summary
TrackRuleProperties(int rgb, boolean doubleTrack, java.lang.String name, TrackRule.TrackCategories c, int radius, int price, int maintenance, int fixedCost)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 TrackRule.TrackCategories getCategory()
           
 Money getFixedCost()
           
 Money getMaintenanceCost()
           
 Money getPrice()
           
private  int getRGBvalue()
           
 int getStationRadius()
           
 java.lang.String getTypeName()
           
 int hashCode()
           
 boolean isEnableDoubleTrack()
           
 boolean isStation()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

enableDoubleTrack

private final boolean enableDoubleTrack

maintenanceCost

private final Money maintenanceCost

price

private final Money price

fixedCost

private final Money fixedCost

category

private final TrackRule.TrackCategories category

rGBvalue

private final int rGBvalue

stationRadius

private final int stationRadius

typeName

private final java.lang.String typeName
Constructor Detail

TrackRuleProperties

public TrackRuleProperties(int rgb,
                           boolean doubleTrack,
                           java.lang.String name,
                           TrackRule.TrackCategories c,
                           int radius,
                           int price,
                           int maintenance,
                           int fixedCost)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getMaintenanceCost

public Money getMaintenanceCost()

getPrice

public Money getPrice()

getRGBvalue

private int getRGBvalue()

getStationRadius

public int getStationRadius()

getTypeName

public java.lang.String getTypeName()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isEnableDoubleTrack

public boolean isEnableDoubleTrack()

isStation

public boolean isStation()

getCategory

public TrackRule.TrackCategories getCategory()

getFixedCost

public Money getFixedCost()